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 7.9.0
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Latest
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-Line
Which database are you using? (Type & version)
SQL Server 2017
Which operating system are you using?
Windows
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
Execute migrate
It works successfully
Execute clean
It fails to drop Utility schema
Use the following configuration file:
flyway.url=jdbc:sqlserver://localhost;database=Test;integratedSecurity=true
flyway.locations=filesystem:Test
flyway.table=VER_FLYWAY_MIGRATION_HISTORY
flyway.defaultSchema=dbo
flyway.schemas=dbo,Framework,Utility
This is expected behavior - the schema cannot be dropped due to the type, so we clean the schema instead. We will consider attempting to drop the schema again after this clean, as the type shouldn't be a problem at this point
It makes no sense that's expected behavior because if you do that, run the clean, it doesn't drop the schema, it cleans it, and then you run a migrate, it FAILS. It tells you the schema already exists because is trying to create it. So either the clean needs to drop it or the migrate needs to not fail if it already exists.
Which version and edition of Flyway are you using?
Flyway 7.9.0
If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Latest
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-Line
Which database are you using? (Type & version)
SQL Server 2017
Which operating system are you using?
Windows
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
Execute migrate
It works successfully
Execute clean
It fails to drop Utility schema
Use the following configuration file:
flyway.url=jdbc:sqlserver://localhost;database=Test;integratedSecurity=true
flyway.locations=filesystem:Test
flyway.table=VER_FLYWAY_MIGRATION_HISTORY
flyway.defaultSchema=dbo
flyway.schemas=dbo,Framework,Utility
Test folder is below:
Test.zip
What did you expect to see?
It should drop the schemas but it fails to clean types
What did you see instead?
The text was updated successfully, but these errors were encountered: