Skip to content

Commit d057e29

Browse files
authored
Add some fixes for migration (#305)
* Add some fixes for migration * Removed "Generate EnsureSchemaOperation" bypass
1 parent 445c025 commit d057e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EFCore.Ydb/src/Migrations/Internal/YdbHistoryRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private IReadOnlyList<MigrationCommand> SelectHistoryTableCommand() =>
180180
new SqlOperation
181181
{
182182
Sql = $"SELECT * FROM {SqlGenerationHelper.DelimitIdentifier(TableName, TableSchema)}" +
183-
$" WHERE MigrationId = '{LockKey}';"
183+
$" WHERE '{MigrationIdColumnName}' = '{LockKey}';"
184184
}
185185
});
186186

0 commit comments

Comments
 (0)