diff --git a/Oqtane.Server/Migrations/Framework/MigrationUtils.cs b/Oqtane.Server/Migrations/Framework/MigrationUtils.cs index a905a310..f8ffaa59 100644 --- a/Oqtane.Server/Migrations/Framework/MigrationUtils.cs +++ b/Oqtane.Server/Migrations/Framework/MigrationUtils.cs @@ -43,7 +43,7 @@ namespace Oqtane.Migrations.Framework { var query = "IF NOT EXISTS(SELECT 1 FROM __EFMigrationsHistory WHERE MigrationId = '" + MigrationId + "') "; query += "INSERT INTO __EFMigrationsHistory(MigrationId, ProductVersion, AppliedDate, AppliedVersion) "; - query += "VALUES('" + MigrationId + "', '5.0.0', SYSDATETIME(), '" + Constants.Version + "')"; + query += "VALUES('" + MigrationId + "', '5.0.4', SYSDATETIME(), '" + Constants.Version + "')"; return query; } diff --git a/Oqtane.Server/Scripts/MigrateMaster.sql b/Oqtane.Server/Scripts/MigrateMaster.sql index 00952eee..197450c7 100644 --- a/Oqtane.Server/Scripts/MigrateMaster.sql +++ b/Oqtane.Server/Scripts/MigrateMaster.sql @@ -14,7 +14,7 @@ IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'dbo.SchemaVersion VALUES ('Master.01.00.00.00', '5.0.0', SYSDATETIME(), '{{Version}}') INSERT INTO __EFMigrationsHistory(MigrationId, ProductVersion, AppliedDate, AppliedVersion) SELECT REPLACE(REPLACE(ScriptName, 'Oqtane.Scripts.', ''), '.sql', '') As MigrationId, - ProductVersion = '5.0.0', + ProductVersion = '5.0.4', AppliedDate = CONVERT(datetime2(7), Applied), AppliedVersion = '{{Version}}' FROM SchemaVersions diff --git a/Oqtane.Server/Scripts/MigrateTenant.sql b/Oqtane.Server/Scripts/MigrateTenant.sql index 28717566..b80ed4ee 100644 --- a/Oqtane.Server/Scripts/MigrateTenant.sql +++ b/Oqtane.Server/Scripts/MigrateTenant.sql @@ -14,7 +14,7 @@ IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'dbo.SchemaVersion VALUES ('Tenant.01.00.00.00', '5.0.0', SYSDATETIME(), '{{Version}}') INSERT INTO __EFMigrationsHistory(MigrationId, ProductVersion, AppliedDate, AppliedVersion) SELECT REPLACE(REPLACE(ScriptName, 'Oqtane.Scripts.', ''), '.sql', '') As MigrationId, - ProductVersion = '5.0.0', + ProductVersion = '5.0.4', AppliedDate = CONVERT(datetime2(7), Applied), AppliedVersion = '{{Version}}' FROM SchemaVersions