slayer911 / yii2-dbcast
Auto migration
Package info
github.com/Slayer911/yii2-dbcast
Type:yii2-extension
pkg:composer/slayer911/yii2-dbcast
1.0.4
2025-04-15 14:58 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2: >=2.0.6
This package is auto-updated.
Last update: 2026-02-15 16:51:17 UTC
README
Automatic generation of migration when changing the database schema. The module creates a snapshot of the previous database schema and the current one.
Currently, supports only MySql
Install
composer require --dev "slayer911/yii2-dbcast:*"
After installing the vendor, create the first DBCast.
php yii migrate/cast-save
If in this step you have an error - add to console config (main-local.php) next data:
<?php
return [
...
'controllerMap' => [
'migrate' => [
'class' => \DBCast\controllers\MigrateController::class,
'develop' => true
]
]
...
];
Using
The standard Yii controller has been extended with the DbCast Migrate controller.
You now have the following commands:

- migrate/cast-commit
