addConstraint, removeConstraint (#7108)
* Added add, remove & show constraints feat * Added showConstraintsQuery for postgres & mysql * [ci skip] Added docs for constraints usage * Added removeIndex support for mysql * Added altering constraints to sqlite dialect * Refactor onDelete, onUpdate to work in sqlite dialect * Throw non existent constraints in removeConstraint query as UnknownConstraintError, improve test coverage * Fix failing tests * Removed dialect naming check in favor of dialect.supports feature check * Improve code coverage, eslint fixes * Review fixes * Review fixes * Renamed model, key to table, field for foreign key contraint definition
Showing
with
1082 additions
and
5 deletions
test/unit/sql/add-constraint.test.js
0 → 100644
test/unit/sql/get-constraint-snippet.test.js
0 → 100644
test/unit/sql/remove-constraint.test.js
0 → 100644
test/unit/sql/show-constraints.test.js
0 → 100644
-
Please register or sign in to post a comment