fix EF Core version value in upgrade scripts
This commit is contained in:
parent
b76e8498d7
commit
c91b8e72c0
|
@ -43,7 +43,7 @@ namespace Oqtane.Migrations.Framework
|
||||||
{
|
{
|
||||||
var query = "IF NOT EXISTS(SELECT 1 FROM __EFMigrationsHistory WHERE MigrationId = '" + MigrationId + "') ";
|
var query = "IF NOT EXISTS(SELECT 1 FROM __EFMigrationsHistory WHERE MigrationId = '" + MigrationId + "') ";
|
||||||
query += "INSERT INTO __EFMigrationsHistory(MigrationId, ProductVersion, AppliedDate, AppliedVersion) ";
|
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;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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}}')
|
VALUES ('Master.01.00.00.00', '5.0.0', SYSDATETIME(), '{{Version}}')
|
||||||
INSERT INTO __EFMigrationsHistory(MigrationId, ProductVersion, AppliedDate, AppliedVersion)
|
INSERT INTO __EFMigrationsHistory(MigrationId, ProductVersion, AppliedDate, AppliedVersion)
|
||||||
SELECT REPLACE(REPLACE(ScriptName, 'Oqtane.Scripts.', ''), '.sql', '') As MigrationId,
|
SELECT REPLACE(REPLACE(ScriptName, 'Oqtane.Scripts.', ''), '.sql', '') As MigrationId,
|
||||||
ProductVersion = '5.0.0',
|
ProductVersion = '5.0.4',
|
||||||
AppliedDate = CONVERT(datetime2(7), Applied),
|
AppliedDate = CONVERT(datetime2(7), Applied),
|
||||||
AppliedVersion = '{{Version}}'
|
AppliedVersion = '{{Version}}'
|
||||||
FROM SchemaVersions
|
FROM SchemaVersions
|
||||||
|
|
|
@ -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}}')
|
VALUES ('Tenant.01.00.00.00', '5.0.0', SYSDATETIME(), '{{Version}}')
|
||||||
INSERT INTO __EFMigrationsHistory(MigrationId, ProductVersion, AppliedDate, AppliedVersion)
|
INSERT INTO __EFMigrationsHistory(MigrationId, ProductVersion, AppliedDate, AppliedVersion)
|
||||||
SELECT REPLACE(REPLACE(ScriptName, 'Oqtane.Scripts.', ''), '.sql', '') As MigrationId,
|
SELECT REPLACE(REPLACE(ScriptName, 'Oqtane.Scripts.', ''), '.sql', '') As MigrationId,
|
||||||
ProductVersion = '5.0.0',
|
ProductVersion = '5.0.4',
|
||||||
AppliedDate = CONVERT(datetime2(7), Applied),
|
AppliedDate = CONVERT(datetime2(7), Applied),
|
||||||
AppliedVersion = '{{Version}}'
|
AppliedVersion = '{{Version}}'
|
||||||
FROM SchemaVersions
|
FROM SchemaVersions
|
||||||
|
|
Loading…
Reference in New Issue
Block a user