Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sqlite): Fix removeColumn and changeColumn foreign key issues for…
… the sqlite dialect (#14070) * fix(sqlite): include fk constraints data * test(sqlite): test for constraints key presence * refactor(sqlite): reduce sql queries in removeColumnQuery * test(sqlite): remove sqlite exclude checks from test suite * test(sqlite): fix failing test for removeColumnQuery * test(sqlite): add tests for foreignKeyCheckQuery * fix(sqlite): prevent data loss when changeColumn is used * test(sqlite): add tests for sqlite changeColumn * fix(sqlite): fix removeColumn issues with fk constraints * test(sqlite): add tests for removeColumn sqlite issues * test(sqlite): move sqlite tests under a separate branch * test(sqlite): remove unused import * refactor: reduce code duplication in changeColumn and removeColumn * test(sqlite): enable new removeColumn tests for all dialects * test(sqlite): fix new removeColumn tests to work for postgres * fix(sqlite): fix constraint tests. add todos * fix: update expected removeColumnQuery sql for sqlite dialect * fix(sqlite): run a subset of removeColumn tests only for sqlite until support is added of other dialects Co-authored-by: Zoé <zoe@ephys.dev> Co-authored-by: Rik Smale <13023439+WikiRik@users.noreply.github.com>
- Loading branch information
1 parent
b53067f
commit ee1d07b
Showing
8 changed files
with
473 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.