File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,25 @@ Example for [admin](https://github.com/NullRefExcep/yii2-admin) module
7676
7777In this case messages from category ` admin ` from application directory will be merged with default messages from module.
7878
79+ ### Modules migrations
80+
81+ Module contains ` MigrateController ` controller which allows work with migrations of modules.
82+
83+ e.g.:
84+
85+ ` php yii core/module --moduleId=admin ` -- apply migrations for module with id ` admin `
86+
87+ Keep in mind: Migrations should have namespaces
88+
89+ Also, is possible work with migrations off all modules:
90+
91+ ` php yii core/module ` -- collect all possible places of migrations.
92+
93+ By default, migrations are looked for directory ` migrations ` in directory of module class.
94+
95+ If you want to override this behavior, you can implement ` IHasMigrateNamespace ` interface by module class.
96+
97+
7998### EntityManager
8099
81100Component for simple work with models, which have soft delete and typification.
You can’t perform that action at this time.
0 commit comments