You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MySQL - JSON column should not have a DEFAULT value when creating table #8814
Output, either JSON or SQL
CREATE TABLE IF NOT EXISTS ... permissions JSON DEFAULT , ... ENGINE=InnoDB;
SequelizeDatabaseError: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' password_hash VARCHAR(255), password_salt VARCHAR(255), created_at DATETI' at line 1
Dialect: mysql Dialect version: 1.5.1 Database version: 5.7 Sequelize version: 4.26.0 Tested with latest release: 4.28.6 (If yes, specify that version)
Note :Your issue may be ignored OR closed by maintainers if it's not tested against latest version OR does not follow issue template.
JSON columns do not support a default value in MySQL. This should include JSON and GEOMETRY as well so as not to assign a default value.
Activity
test(query-generator.test): Some mysql datatypes are not allowed defa…
fix(query-generator): MySQL does not allow certain data types to have…
mccabemj commentedon Jan 4, 2018
I have added a pull request for this issue, stopping the SQL adding the default values if provided for all non-allowed data types #8839
sushantdhiman commentedon Jan 5, 2018
Fixed 74d2b5f
feat(sequelize): Added a 'random()' method for dealing with differenc…