{"repo":"bizley/yii2-migration","free":true,"listed":false,"github":"https://github.com/bizley/yii2-migration","clone":"git clone https://github.com/bizley/yii2-migration.git","description":"Yii 2 Migration Creator And Updater","language":"PHP","stars":291,"topics":["yii2","migration","php","database","database-migrations","generator","updater","hacktoberfest"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Yii 2 Migration Migration Creator And Updater In a perfect world you prepare migration files for your database first so you can run it when ready. But since this is not a perfect world, sometimes you start with a database already set - with this package you can easily create a migration file based on your DB schema with one console command . Furthermore, when your DB is updated later on you can generate a migration file updating the schema to the current state. The package is comparing it with the migration history: 1. History of applied migrations is scanned to gather all modifications made to the table. 2. Virtual table schema is prepared and compared with the current table schema. 3. Differences are generated as an update migration. 4. In case of the migration history not keeping information about the table, a creating migration is generated. Installation Run console command Or add the package to your composer.json file: then run composer update . Configuration Add the following in your configuration file (preferably console configuration file): Additional options are available as following (with their default values): Usage The following console command are available (assuming you named the controller migration like in the example above): - List all the tables in the database: or - Generate migration to create DB table table name : - Generate migration to update DB table table name : To generate migrations for all the tables in the database at once (except the excluded on","default_branch":null,"files":null,"tree":[],"storefront":"/r/bizley","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bizley/yii2-migration/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}