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

Repeatable migrations produce invalid SQL during dry-run #2053

Closed
axelfontaine opened this issue Jun 26, 2018 · 1 comment
Closed

Repeatable migrations produce invalid SQL during dry-run #2053

axelfontaine opened this issue Jun 26, 2018 · 1 comment

Comments

@axelfontaine
Copy link
Contributor

The script generated for a repeatable migration looks like this:

INSERT INTO "MD_CUSTOMER"."flyway_schema_history" ("installed_rank","version","description","type","script","checksum","installed_by","execution_time","success") VALUES (5, 'null', 'create views', 'SQL', 'R__create_views.sql', -467597611, 'SYSTEM', 0, 1);

But the null is in quotes, so it inserts the string 'null' rather than a null value. If I apply the script to the DB then the subsequent migration fails:

 ERROR: Invalid version containing non-numeric characters. Only 0..9 and . are allowed. Invalid version: null
@axelfontaine
Copy link
Contributor Author

Fixed.

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