Skip to content

Commit

Permalink
Remove "ProductVersion" from __ComplexMigrationHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Nov 22, 2024
1 parent 573cf0b commit 804e32e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Common/Utils/Migration/MigrationExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ private static void MigrationHistory_EnsureCreated(DatabaseFacade db)
$"""
CREATE TABLE IF NOT EXISTS "__ComplexMigrationHistory" (
"MigrationId" CHARACTER VARYING(150) NOT NULL PRIMARY KEY,
"ProductVersion" CHARACTER VARYING(32) NOT NULL,
"Completed" BOOLEAN NOT NULL DEFAULT FALSE,
"AppliedOn" TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP
);
Expand Down Expand Up @@ -88,10 +87,7 @@ private static void MigrationHistory_Create(DatabaseFacade db, string migrationI
{
db.ExecuteSql(
$"""
INSERT INTO "__ComplexMigrationHistory" (
"MigrationId",
"ProductVersion"
) VALUES ({migrationId}, {ProductInfo.GetVersion()});
INSERT INTO "__ComplexMigrationHistory" ("MigrationId") VALUES ({migrationId});
"""
);
}
Expand Down

0 comments on commit 804e32e

Please sign in to comment.