Skip to content

Commit

Permalink
fix: collate after character set
Browse files Browse the repository at this point in the history
  • Loading branch information
confuser committed Oct 30, 2022
1 parent 8a1b594 commit 0e26175
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ const MysqlDriver = Base.extend({
tableOpts.push(`ROW_FORMAT ${spec.rowFormat}`);
}

if (spec.collate && typeof spec.collate === 'string') {
tableOpts.push(`COLLATE '${spec.collate}'`);
}

if (spec.charset && typeof spec.charset === 'string') {
tableOpts.push(`CHARACTER SET ${spec.charset}`);
}

if (spec.collate && typeof spec.collate === 'string') {
tableOpts.push(`COLLATE '${spec.collate}'`);
}

return tableOpts.join(' ');
},

Expand Down

0 comments on commit 0e26175

Please sign in to comment.