[x] I have checked to ensure this does not introduce an unintended breaking changes
[x] I have considered appropriate testing for my change
Description
Adds three additional extension methods for SupportedDatabasesForDropDatabase allowing MySql to be used
in the same manner as the DbUp.SqlServer package.
Method signatures and implementation are mainly taken from DbUp.SqlServer and the already existent SupportedDatabasesForEnsureDatabase extension methods.
DbUp.SqlServer introduces an additional alter statement before dropping
ALTER DATABASE [{databaseName}] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
There is no equivalent in MySql for this.
The possibility to read lock all databases with
FLUSH TABLES WITH READ LOCK;
was considered but not implemented as it affects all databases. The drop command will fail fast, if any connection is still present.
Checklist
Description
Adds three additional extension methods for
SupportedDatabasesForDropDatabase
allowing MySql to be used in the same manner as theDbUp.SqlServer
package.Method signatures and implementation are mainly taken from
DbUp.SqlServer
and the already existentSupportedDatabasesForEnsureDatabase
extension methods.DbUp.SqlServer
introduces an additional alter statement before droppingThere is no equivalent in MySql for this. The possibility to read lock all databases with
was considered but not implemented as it affects all databases. The drop command will fail fast, if any connection is still present.