Merge pull request #1429 from sbwalker/dev
fix EF Core version value in upgrade scripts
This commit is contained in:
		| @ -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; | ||||
|         } | ||||
|  | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker