C
C
Cyrus2016-02-26 13:01:50
Yii
Cyrus, 2016-02-26 13:01:50

How to put migrations in common in yii2-starter-kit?

Hi all. I'm using the yii2-starter-kit
build Tell a newbie. How to correctly create migrations not in backend or frontend, but in common in order to use later both of them?

OpenServer\domains\mn\frontend
$ yii migrate/create create_test
Yii Migration Tool (based on Yii v2.0.7)
Create new migration 'E:\OpenServer\domains\mn\frontend/migrations\m160226_095908_create_test.php'? (yes|no) [no]:
^C
$ cd common
E:\OpenServer\domains\mn\common
$ yii migrate/create create_test
"yii" is not an internal or external
command, operable program, or batch file.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
serikd, 2016-02-26
@storm184

Migrations are created in the console directory and work accordingly from there too.
But you can set your own migration settings directory

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question