mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
Use rerunable sql journal
This commit is contained in:
@ -98,7 +98,7 @@ public class DbMigrator
|
|||||||
cancellationToken.ThrowIfCancellationRequested();
|
cancellationToken.ThrowIfCancellationRequested();
|
||||||
var builder = DeployChanges.To
|
var builder = DeployChanges.To
|
||||||
.SqlDatabase(_connectionString)
|
.SqlDatabase(_connectionString)
|
||||||
.JournalToSqlTable("dbo", "Migration")
|
.JournalRerunableToSqlTable("dbo", "Migration")
|
||||||
.WithScriptsAndCodeEmbeddedInAssembly(Assembly.GetExecutingAssembly(),
|
.WithScriptsAndCodeEmbeddedInAssembly(Assembly.GetExecutingAssembly(),
|
||||||
s => s.Contains($".DbScripts.") && !s.Contains(".Archive."))
|
s => s.Contains($".DbScripts.") && !s.Contains(".Archive."))
|
||||||
.WithTransaction()
|
.WithTransaction()
|
||||||
|
Reference in New Issue
Block a user