Closed QuentinFarizon closed 11 months ago
See #612 for earlier discussion about this
@WikiRik What do you think of my solution ?
With something like :
const charsetableDialects = ['mysql', 'mariadb', 'snowflake']
(...)
charset: charsetableDialects.includes(this.sequelize.dialect.name) ? 'utf8' : null,
collate: charsetableDialects.includes(this.sequelize.dialect.name) ? 'utf8_unicode_ci' : null
That looks good
@WikiRik I've pushed a PR : https://github.com/sequelize/umzug/pull/624
Released in v3.4.0.
Released in v3.4.0.
@WikiRik It would be great to update sequelize-cli to use this new version !
@qfarizon-qftech sequelize-cli is not meant tested with or updated for the v7 alphas and still uses umzug v2. The new CLI, which we started work on in the sequelize monorepo (and will be published as @sequelize/cli
), will be using umzug v3 with this update.
@WikiRik Can I test @sequelize/cli as of today ?
@WikiRik Can I test @sequelize/cli as of today ?
It only has the seed generate
and migration generate
commands so it's not usable yet. (We're doing a full rewrite)
If @mmkal agrees you might be able to backport your change to umzug v2 and see how much of the old CLI works with the v7 alphas.
For now I have patched umzug@2 using patch-package.
If anyone would like to backport anything to v2.x I'm fine to review a pull request and publish, just open it against v2.x branch. I won't check it beyond just building and publishing though.
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
umzug@2.3.0
for the project I'm working on.Sequelize v7.0.0-alpha.33 complains (rightly so), that collate and charset optinos are not supposed to be passed for postgres dialect. To my knowledge, this is only used for mysql
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.