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

Migration Generation Automation #291

Closed
ravage84 opened this issue Nov 14, 2016 · 3 comments
Closed

Migration Generation Automation #291

ravage84 opened this issue Nov 14, 2016 · 3 comments

Comments

@ravage84
Copy link
Contributor

I thought about fully automating the generation of migration scripts or at least autome as much as possible.

So after adding the --compare parameter for comparing to the schema.php in #221 and adding the --overwrite paramater for overwriting the schema.php in #220, there are only two manual steps left to generate a migration script, which cannot be provided by the CLI right now:

  1. Answering the question "Do you want to preview the file before generation?" https://github.com/CakeDC/migrations/blob/2.5.0/Console/Command/MigrationShell.php#L643
  2. Entering a migration script name https://github.com/CakeDC/migrations/blob/2.5.0/Console/Command/MigrationShell.php#L672

Thus, I propose three new parameters:

  1. --no-preview to disable the preview
  2. --preview for showing the preview
  3. --name XYZ to provide a migration script name
@andretefras
Copy link
Contributor

👍 from me. I will discuss with others.

@andretefras andretefras mentioned this issue Feb 2, 2017
5 tasks
@pmoraes
Copy link

pmoraes commented Feb 9, 2017

Hi @ravage84, it already was merged. Closing this issue. Thanks.

@pmoraes pmoraes closed this as completed Feb 9, 2017
@ravage84
Copy link
Contributor Author

ravage84 commented Feb 9, 2017

@CakeDC cool guys.
Thanks! 🍻

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

No branches or pull requests

3 participants