Skip to content

Commit

Permalink
Make sure the hsitory we are editing is not completed
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Nov 22, 2024
1 parent cbff0ea commit ac06e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/Utils/Migration/MigrationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static void MigrationHistory_MarkCompleted(DatabaseFacade db, string mig
{
if (db.ExecuteSql(
$"""
UPDATE "__ComplexMigrationHistory" SET "Completed" = TRUE WHERE "MigrationId" = '{migrationId}';
UPDATE "__ComplexMigrationHistory" SET "Completed" = TRUE WHERE "MigrationId" = '{migrationId}' AND "Completed" = FALSE;
"""
) != 1)
{
Expand Down

0 comments on commit ac06e8d

Please sign in to comment.