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

First character in script column of schema_version table removed if double back slashes in location. #1782

Closed
mehta-m opened this issue Sep 28, 2017 · 2 comments
Labels
Milestone

Comments

@mehta-m
Copy link

@mehta-m mehta-m commented Sep 28, 2017

What version of Flyway are you using?

4.2.0

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks) Command-line
What database are you using (type & version)?

Microsoft SQL Server 2012

What operating system are you using?

Windows 10

What did you do?

If you have double back slashes \\ in flyway.locations the script column in schema_version table removed the first character from the script name.

i.e. If flyway.locations = D:\\Scripts\SQL and file name is
V17.5.0.0062__PROIRL-50.sql - it will appear in the script column as
17.5.0.0062__PROIRL-50.sql (V - removed)

However if flyway.locations = D:\Scripts\SQL the it works fine.

@axelfontaine
Copy link
Contributor

@axelfontaine axelfontaine commented Sep 28, 2017

I am afraid something went wrong with the formatting of your issue report as I don't see any difference between both locations.

@mehta-m
Copy link
Author

@mehta-m mehta-m commented Sep 28, 2017

I've just Updated the issue.

@axelfontaine axelfontaine added this to the Flyway 5.0.0 milestone Sep 28, 2017
axelfontaine added a commit to flyway/flywaydb.org that referenced this issue Nov 14, 2017
dohrayme pushed a commit to dohrayme/flyway that referenced this issue Feb 3, 2020
… table removed if double back slashes in location.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.