You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
When I try to execute locally against SQL Express the migrations work correctly. When I moved to Windows Azure using their SQL DB, I had to change the jar file but that wasn't the only issue.
Now when I try to run the migration it says:
Flyway (Command-line Tool) v.2.1.1
Creating Metadata table: [dbo].[schema_version]
ERROR: FlywayException: Unable to insert row for version '1' in metadata table [dbo].[schema_version]
ERROR: Occured in com.googlecode.flyway.core.metadatatable.MetaDataTableImpl.addAppliedMigration() at line 163
ERROR: Caused by com.microsoft.sqlserver.jdbc.SQLServerException: Built-in function 'SUSER_NAME' is not supported in this version of SQL Server.
ERROR: Occured in com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError() at line 216
C:\x\flyway-commandline-2.1.1> .\flyway.cmd init
It turns out that that function: SUSER_NAME is not in SQL Azure but is in SQL Express. How can I use this framework with a Windows Azure SQL DB?
Just thought I let you know that we built the latest version from master, and everything works fine for us now with SQL Azure as well.
Thanks for implementing the fix. Do you already know when the next "official" version will be released which includes this fix?