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 more flexibility in schema-file naming? #25

Open
srcshelton opened this issue Nov 3, 2016 · 0 comments
Open

Allow more flexibility in schema-file naming? #25

srcshelton opened this issue Nov 3, 2016 · 0 comments

Comments

@srcshelton
Copy link
Owner

Flyway allows the following defaults to be changed:

  • sqlMigrationPrefix, default 'V'
  • repeatableSqlMigrationPrefix, default 'R'
  • sqlMigrationSeparator, default '__'
  • sqlMigrationSuffix, default '.sql'

... the question is whether this flexibility actually brings much benefit in comparison to the increase in complexity (or greater chance of confusion).

(It's also a validation nightmare - choosing the wrong values could break a migration or, worse, cause the wrong components to be identified and the wrong action to occur: 'V1.0__schema.sql' with a separator of '__' is clear, but with a separator of '.' becomes a placeholder/migration schema from V1 to V0__schema, which is still (almost) valid)

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

1 participant