Skip to content

Commit

Permalink
fix: use undefined when charset and collate options are not support…
Browse files Browse the repository at this point in the history
…ed (#673)
  • Loading branch information
EinfachHans committed May 16, 2024
1 parent 1640376 commit 3810a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/sequelize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ export class SequelizeStorage implements UmzugStorage {
tableName: this.tableName,
schema: this.schema,
timestamps: this.timestamps,
charset: hasCharsetAndCollate ? 'utf8' : null,
collate: hasCharsetAndCollate ? 'utf8_unicode_ci' : null,
charset: hasCharsetAndCollate ? 'utf8' : undefined,
collate: hasCharsetAndCollate ? 'utf8_unicode_ci' : undefined,
},
) as ModelClassType
}
Expand Down

0 comments on commit 3810a2f

Please sign in to comment.