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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
Deferrable.INITIALLY_IMMEDIATE(), INITIALLY_DEFERRED() and NOT() work like in v6 (they threw is not a function). Differential test in tests/compat/deferrable-callable.test.ts. sync({ alter: true }) still does not update a changed mode (filed as B-alter-deferrable-not-updated). (#254)
queryInterface.addIndex accepts null options (it threw TypeError) and sequelize.sync() without models checks the connection like v6 (it resolved against an unreachable server). Differential tests in tests/compat/sync-addindex-inputs.test.ts. (#259)
Index field objects may name their column with v6's attribute key in model indexes and addIndex (sync threw TypeError). Differential test in tests/compat/index-attribute-key.test.ts. (#264)
Removing a constraint that does not exist rejects with UnknownConstraintError (it was a plain DatabaseError). Differential test in tests/compat/unknown-constraint.test.ts. (#265)
sequelize.drop() removes the foreign keys first when tables reference each other in a cycle (it failed with "other objects depend on it"). Differential test in tests/compat/drop-cyclic.test.ts. (#266)
A foreign key named like the column of another attribute (foreignKey: 'user_id' next to userId: { field: 'user_id' }) makes one column on sync (it failed with "column specified more than once"). Differential test in tests/compat/fk-field-collision.test.ts. (#268)
STRING, CHAR, TEXT, BLOB, DECIMAL, FLOAT, REAL and DOUBLE accept v6's options object (STRING({ length: 12 }) threw). Differential test in tests/compat/data-type-options-object.test.ts. (#270)
createFunction accepts null options and null / {} characteristics, and createFunction / dropFunction report missing arguments with v6's messages (some threw TypeError). Differential test in tests/compat/function-arguments.test.ts. (#271)
When several models are mapped to one table, sequelize.sync syncs only the last one (it synced each, which could fail). Differential test in tests/compat/two-models-one-table.test.ts. (#275)