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

Allow for override based on db type #19

Open
byrnedo opened this issue May 8, 2016 · 2 comments
Open

Allow for override based on db type #19

byrnedo opened this issue May 8, 2016 · 2 comments

Comments

@byrnedo
Copy link

byrnedo commented May 8, 2016

Would it be possible to read files from a dir, say ./sql, but if the driver is sqlite3 and there exists the same number revision in ./sql/sqlite3/, that one is run instead of the base migration?

@DavidHuie
Copy link
Owner

That's currently not supported, but that might be useful to add. I think this could be implemented without including the new directory, for example:

  • base migration: 001_create_tables_up.sql
  • sqlite migration: 001_create_tables_up_sqlite.sql
  • postgres migration: 001_create_tables_up_pg.sql
  • ...

How does that sound, @byrnedo?

@byrnedo
Copy link
Author

byrnedo commented May 12, 2016

Yeah that could work. Would be a bit more transparent too.

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

2 participants