Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest list of commands for Yii 3.0 migration tool. #28

Open
6 of 7 tasks
terabytesoftw opened this issue May 9, 2020 · 2 comments
Open
6 of 7 tasks

Suggest list of commands for Yii 3.0 migration tool. #28

terabytesoftw opened this issue May 9, 2020 · 2 comments

Comments

@terabytesoftw
Copy link
Member

terabytesoftw commented May 9, 2020

  • generate/create - Creates a new migration.
  • database/list - List all tables from database.
  • migrate/up - Upgrades the application by applying new migrations.
  • migrate/down - Downgrades the application by reverting old migrations.
  • migrate/fresh - Drops all tables and related constraints. Starts the migration from the beginning.
  • migrate/history - Displays the migration history.
  • migrate/redo - Redoes the last few migrations.

You can suggest more commands.

@terabytesoftw terabytesoftw changed the title Suggest list of commands for Yii 3.0 migration tool.; Suggest list of commands for Yii 3.0 migration tool. May 9, 2020
@mbunyan
Copy link

mbunyan commented May 28, 2020

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

@terabytesoftw
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants