Skip to content

Commit

Permalink
fix(mysql): fix auto create table typo
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Sep 14, 2020
1 parent 8254400 commit 4df7083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-mysql/src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class MysqlDatabase {
if (names.has(name)) return
const table = MysqlDatabase.tables[name]
const cols = Object.keys(table).map((key) => {
if (+key * 0 === +key) return table[key]
if (+key * 0 === 0) return table[key]
return `\`${key}\` ${table[key]}`
})
logger.info('auto creating table %c', name)
Expand Down

0 comments on commit 4df7083

Please sign in to comment.