Missing context complete

This commit is contained in:
Bjarke Berg
2024-09-26 09:54:43 +02:00
parent 009394982c
commit fdb9cfa3e7

View File

@@ -23,6 +23,7 @@ public class AddGuidsToUserGroups : UnscopedMigrationBase
// If the new column already exists we'll do nothing.
if (ColumnExists(Constants.DatabaseSchema.Tables.UserGroup, NewColumnName))
{
Context.Complete();
return;
}
@@ -31,10 +32,12 @@ public class AddGuidsToUserGroups : UnscopedMigrationBase
if (DatabaseType != DatabaseType.SQLite)
{
MigrateSqlServer();
Context.Complete();
return;
}
MigrateSqlite();
Context.Complete();
}
private void MigrateSqlServer()