Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mysql-kit]: handle lowercase information_schema_table_constraints columns #4321

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all 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
6 changes: 3 additions & 3 deletions drizzle-kit/src/serializer/mysqlSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -968,9 +968,9 @@ AND
progressCallback('checks', checksCount, 'fetching');
}
for (const checkConstraintRow of checkConstraints) {
const constraintName = checkConstraintRow['CONSTRAINT_NAME'];
const constraintValue = checkConstraintRow['CHECK_CLAUSE'];
const tableName = checkConstraintRow['TABLE_NAME'];
const constraintName = checkConstraintRow['CONSTRAINT_NAME'] ?? checkConstraintRow['constraint_name'];
const constraintValue = checkConstraintRow['CHECK_CLAUSE'] ?? checkConstraintRow['check_clause'];
const tableName = checkConstraintRow['TABLE_NAME'] ?? checkConstraintRow['table_name'];

const tableInResult = result[tableName];
// if (typeof tableInResult === 'undefined') continue;
Expand Down