db-migration
db-migration copied to clipboard
Suggest list of commands for Yii 3.0 migration tool.
- [x] generate/create - Creates a new migration.
- [x] database/list - List all tables from database.
- [x] migrate/up - Upgrades the application by applying new migrations.
- [x] migrate/down - Downgrades the application by reverting old migrations.
- [ ] migrate/fresh - Drops all tables and related constraints. Starts the migration from the beginning.
- [x] migrate/history - Displays the migration history.
- [x] migrate/redo - Redoes the last few migrations.
You can suggest more commands.
I am assuming migrate/create would work similar to yii2 and provide a skeleton based on parameters like 'create_mytable_table'. bizley/yii2-migration has useful command that pulls schema from database and creates skeleton. A command like migrate/createfrom might be appropriate. Mike B
I am assuming migrate/create would work similar to yii2 and provide a skeleton based on parameters like 'create_mytable_table'. bizley/yii2-migration has useful command that pulls schema from database and creates skeleton. A command like migrate/createfrom might be appropriate. Mike B
I already have it working, the migration will be created from the database, it will be added once we have the base ready.