Skip to content

Commit

Permalink
11
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Dec 30, 2024
1 parent e30ffa7 commit 62713f7
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 96 deletions.
3 changes: 1 addition & 2 deletions drizzle-kit/src/serializer/mysqlSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ export type ViewSquashed = TypeOf<typeof viewSquashed>;
export const MySqlSquasher = {
squashIdx: (idx: Index) => {
index.parse(idx);
return `${idx.name};${idx.columns.join(',')};${idx.isUnique};${idx.vector};${idx.using ?? ''};${idx.algorithm ?? ''};${idx.lock ?? ''
};${idx.secondaryEngineAttribute ?? ''}`;
return `${idx.name};${idx.columns.join(',')};${idx.isUnique};${idx.vector};${idx.using ?? ''};${idx.algorithm ?? ''};${idx.lock ?? ''};${idx.secondaryEngineAttribute ?? ''}`;
},
unsquashIdx: (input: string): Index => {
const [name, columnsString, isUnique, vector, using, algorithm, lock, secondaryEngineAttribute] = input.split(';');
Expand Down
Loading

0 comments on commit 62713f7

Please sign in to comment.