Skip to content

Commit

Permalink
Merge pull request #4020 from Karibash/bugfix/index-name
Browse files Browse the repository at this point in the history
bugfix: Fix bug that generates incorrect syntax when introspect in mysql
  • Loading branch information
AndriiSherman authored Jan 29, 2025
2 parents 3ded70f + c32d6a7 commit d9f609a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drizzle-kit/src/introspect-mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ const createTableIndexes = (

idxKey = casing(idxKey);

statement += `\t\t${idxKey}: `;
statement += `\n\t`;
statement += it.isUnique ? 'uniqueIndex(' : 'index(';
statement += `"${it.name}")`;
statement += `.on(${
Expand Down

0 comments on commit d9f609a

Please sign in to comment.