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.Dismiss alert
Which version and edition of Flyway are you using?
Flyway Community Edition 5.2.0 by Boxfuse
If this is not the latest version, can you reproduce the issue with the latest one as well?
I think we are on the latest v, if not - very close to it.
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
flyway.cmd
Which database are you using (type & version)?
Microsoft SQL Server Enterprise 64-bit (v14.0.3037.1)
Which operating system are you using?
Microsoft Windows 10 Enterprise 64bit (v10.0.17134)
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
Defined afterMigrate.sql, with a "exec sp_addsubscription @Publication ="
command in it.
Profile is using: flyway.mixed=true
SQL State : S0001
Error Code : 15002
Message : The procedure 'sp_addsubscription' cannot be executed within a transaction.
Could I suggest that a new flag is introduced in the profile, which would let me toggle if (or which) before or after Migrate callback scripts are executed within the TRAN BEGIN-COMMIT wrapper or NOT ?
The text was updated successfully, but these errors were encountered:
Which version and edition of Flyway are you using?
Flyway Community Edition 5.2.0 by Boxfuse
If this is not the latest version, can you reproduce the issue with the latest one as well?
I think we are on the latest v, if not - very close to it.
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
flyway.cmd
Which database are you using (type & version)?
Microsoft SQL Server Enterprise 64-bit (v14.0.3037.1)
Which operating system are you using?
Microsoft Windows 10 Enterprise 64bit (v10.0.17134)
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
Defined afterMigrate.sql, with a
"exec sp_addsubscription @Publication ="
command in it.
Profile is using:
flyway.mixed=true
What did you expect to see?
Clean execution.
What did you see instead?
Executing SQL callback: afterMigrate
ERROR: Error while executing afterMigrate callback:
Migration afterMigrate.sql failed
SQL State : S0001
Error Code : 15002
Message : The procedure 'sp_addsubscription' cannot be executed within a transaction.
Could I suggest that a new flag is introduced in the profile, which would let me toggle if (or which) before or after Migrate callback scripts are executed within the TRAN BEGIN-COMMIT wrapper or NOT ?
The text was updated successfully, but these errors were encountered: