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

Support for Create database patch files #29

Open
sndpl opened this issue Apr 3, 2012 · 1 comment
Open

Support for Create database patch files #29

sndpl opened this issue Apr 3, 2012 · 1 comment

Comments

@sndpl
Copy link
Member

sndpl commented Apr 3, 2012

If you add a create database statement in patch-001.sql the statement files because there is no database yet. Would be nice to have support for this kind of patches.

Idea's:

  • Add a new command that executes a create.sql
  • Detect the database doesn't exists error and then create the database automatically or execute a create.sql
  • Add a param to the update command to execute patch-001 first without doing other things
@lucasvanlierop
Copy link

Suggestion ask user if db should be created as alternative fot either autocreating it of requiring a parameter. That said, doe this work with CI etc?

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

2 participants