Skip to content

Commit c414e58

Browse files
committed
update README
1 parent b392d1b commit c414e58

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,25 @@ Example for [admin](https://github.com/NullRefExcep/yii2-admin) module
7676

7777
In 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

81100
Component for simple work with models, which have soft delete and typification.

0 commit comments

Comments
 (0)