Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private IReadOnlyList<MigrationCommand> SelectHistoryTableCommand() =>
new SqlOperation
{
Sql = $"SELECT * FROM {SqlGenerationHelper.DelimitIdentifier(TableName, TableSchema)}" +
$" WHERE MigrationId = '{LockKey}';"
$" WHERE '{MigrationIdColumnName}' = '{LockKey}';"
}
});

Expand Down
8 changes: 8 additions & 0 deletions src/EFCore.Ydb/src/Migrations/YdbMigrationsSqlGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,12 @@ protected override void Generate(
// Ignore bc YDB doesn't have foreign keys
}

protected override void Generate(EnsureSchemaOperation operation, IModel? model,
MigrationCommandListBuilder builder)
{
// Ignore bc YDB doesn't support schema
}

protected override void Generate(
AddPrimaryKeyOperation operation,
IModel? model,
Expand Down Expand Up @@ -400,4 +406,6 @@ private void EndStatementSuppressTransaction(MigrationCommandListBuilder builder

private string DelimitIdentifier(string name, string? schema = null)
=> Dependencies.SqlGenerationHelper.DelimitIdentifier(name, schema);


}
Loading