mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
[PM-6938] Allow certain database operations to be skipped (#3914)
* Centralize database migration logic * Clean up unused usings * Prizatize * Remove verbose flag from Docker invocation * Allow certain database operations to be skipped * Readonly
This commit is contained in:
@ -10,7 +10,8 @@ public class SqlServerDbMigrator : IDbMigrator
|
||||
|
||||
public SqlServerDbMigrator(GlobalSettings globalSettings, ILogger<DbMigrator> logger)
|
||||
{
|
||||
_migrator = new DbMigrator(globalSettings.SqlServer.ConnectionString, logger);
|
||||
_migrator = new DbMigrator(globalSettings.SqlServer.ConnectionString, logger,
|
||||
globalSettings.SqlServer.SkipDatabasePreparation);
|
||||
}
|
||||
|
||||
public bool MigrateDatabase(bool enableLogging = true,
|
||||
|
Reference in New Issue
Block a user