queryInterface.renameColumn drop unique constraint in SQLite #11243
Labels
dialect: sqlite
For issues and PRs. Things that involve SQLite (and do not involve all dialects).
status: awaiting response
For issues and PRs. OP must respond (or change something, if it is a PR). Maintainers have no action
type: bug
What are you doing?
demo:
https://github.com/eugene-matvejev/node-explorer/pull/10/files
To Reproduce
1 run migration in file 1 correct output
2 run migration in file 2, 'UNIQUE' constrain gone from name column
What do you expect to happen?
state column to be renamed to seq, other columns shouldn't be affected
What is actually happening?
'UNIQUE' constrain gone from name column
see example above
Environment
Dialect:
Sequelize CLI [Node: 10.16.0, CLI: 5.5.0, ORM: 5.10.1]
Dialect library version: 5.10.1
Database version: 4.0.9
Sequelize version: 5.5.0
Node Version: 10.16.0
OS: MacOs
If TypeScript related: TypeScript version: n/a
Tested with latest release:
The text was updated successfully, but these errors were encountered: