db-migration icon indicating copy to clipboard operation
db-migration copied to clipboard

Suggest list of commands for Yii 3.0 migration tool.

Open terabytesoftw opened this issue 5 years ago • 2 comments

  • [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.

terabytesoftw avatar May 09 '20 23:05 terabytesoftw

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

mbunyan avatar May 28 '20 09:05 mbunyan

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.

terabytesoftw avatar May 28 '20 14:05 terabytesoftw