diff --git a/src/EFCore.Ydb/src/Migrations/Internal/YdbHistoryRepository.cs b/src/EFCore.Ydb/src/Migrations/Internal/YdbHistoryRepository.cs index 75f18ebc..a4de8c3e 100644 --- a/src/EFCore.Ydb/src/Migrations/Internal/YdbHistoryRepository.cs +++ b/src/EFCore.Ydb/src/Migrations/Internal/YdbHistoryRepository.cs @@ -180,7 +180,7 @@ private IReadOnlyList SelectHistoryTableCommand() => new SqlOperation { Sql = $"SELECT * FROM {SqlGenerationHelper.DelimitIdentifier(TableName, TableSchema)}" + - $" WHERE MigrationId = '{LockKey}';" + $" WHERE '{MigrationIdColumnName}' = '{LockKey}';" } });