Skip to content

Commit 3810a2f

Browse files
authored
fix: use undefined when charset and collate options are not supported (#673)
1 parent 1640376 commit 3810a2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/storage/sequelize.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ export class SequelizeStorage implements UmzugStorage {
151151
tableName: this.tableName,
152152
schema: this.schema,
153153
timestamps: this.timestamps,
154-
charset: hasCharsetAndCollate ? 'utf8' : null,
155-
collate: hasCharsetAndCollate ? 'utf8_unicode_ci' : null,
154+
charset: hasCharsetAndCollate ? 'utf8' : undefined,
155+
collate: hasCharsetAndCollate ? 'utf8_unicode_ci' : undefined,
156156
},
157157
) as ModelClassType
158158
}

0 commit comments

Comments
 (0)