Skip to content

Commit

Permalink
adjusting some migration tests so that baselines dont depend on the p…
Browse files Browse the repository at this point in the history
…roduct version (#34977)
  • Loading branch information
maumar authored Nov 2, 2024
1 parent 919e5dd commit b7fc500
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
VALUES (N'00000000000000_Empty', N'9.0.0');
VALUES (N'00000000000000_Empty', N'7.0.0-test');
--Before
Expand Down Expand Up @@ -798,18 +798,18 @@ CONSTRAINT [PK_Blogs] PRIMARY KEY ([Id])
END
INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
VALUES (N'00000000000001_Migration1', N'9.0.0');
VALUES (N'00000000000001_Migration1', N'7.0.0-test');
--After
INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
VALUES (N'00000000000002_Migration2', N'9.0.0');
VALUES (N'00000000000002_Migration2', N'7.0.0-test');
DECLARE @result int;
EXEC @result = sp_releaseapplock @Resource = '__EFMigrationsLock', @LockOwner = 'Session';
SELECT @result
""",
Fixture.TestSqlLoggerFactory.Sql,
Fixture.TestSqlLoggerFactory.Sql.Replace(ProductInfo.GetVersion(), "7.0.0-test"),
ignoreLineEndingDifferences: true);
}

Expand Down Expand Up @@ -867,7 +867,7 @@ FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
VALUES (N'00000000000000_Empty', N'9.0.0');
VALUES (N'00000000000000_Empty', N'7.0.0-test');
--Before
Expand Down Expand Up @@ -910,18 +910,18 @@ CONSTRAINT [PK_Blogs] PRIMARY KEY ([Id])
END
INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
VALUES (N'00000000000001_Migration1', N'9.0.0');
VALUES (N'00000000000001_Migration1', N'7.0.0-test');
--After
INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
VALUES (N'00000000000002_Migration2', N'9.0.0');
VALUES (N'00000000000002_Migration2', N'7.0.0-test');
DECLARE @result int;
EXEC @result = sp_releaseapplock @Resource = '__EFMigrationsLock', @LockOwner = 'Session';
SELECT @result
""",
Fixture.TestSqlLoggerFactory.Sql,
Fixture.TestSqlLoggerFactory.Sql.Replace(ProductInfo.GetVersion(), "7.0.0-test"),
ignoreLineEndingDifferences: true);
}

Expand Down

0 comments on commit b7fc500

Please sign in to comment.