PHPackages                             slayer911/yii2-dbcast - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. slayer911/yii2-dbcast

ActiveYii2-extension[Database &amp; ORM](/categories/database)

slayer911/yii2-dbcast
=====================

Auto migration

1.0.4(1y ago)21.4k[1 issues](https://github.com/Slayer911/yii2-dbcast/issues)BSD-3-ClausePHPPHP &gt;=5.4.0

Since Jul 17Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Slayer911/yii2-dbcast)[ Packagist](https://packagist.org/packages/slayer911/yii2-dbcast)[ RSS](/packages/slayer911-yii2-dbcast/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (5)Used By (0)

Yii2 DbCast
===========

[](#yii2-dbcast)

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

[](#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:

```
