-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migrations in modules #1776
Comments
it already does so - https://github.com/yiisoft/yii2/blob/master/framework/yii/console/controllers/MigrateController.php#L541. What is your console output? |
@Ragazzo I see two migrations. but I can't rollback them because yii don't find all migration files. |
duplicate of #384 |
Add your module's namespace to migrations in consol/config/main.php after that it will work like a charm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have 2 migrations. First is located in
@app/migrations
second@app/modules/modName/migrations
to apply them I run two command:
php yii migrate/up
andphp yii migrate/up --migrationPath=@app/modules/modName/migrations
but I can't rollback them like:
php yii migrate/down 2
orphp yii migrate/down --migrationPath=@app/modules/modName/migrations
I think migration/down should keep path or module name to migration files for a transparency rollback.
The text was updated successfully, but these errors were encountered: