-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: migrate constraints to typescript #15962
Conversation
1c94649
to
644723a
Compare
644723a
to
3d9d0ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work! Once again thank you so much :) I only glanced at the tests but I'll re-review them once these few notes are handled
packages/core/src/dialects/abstract/query-interface-typescript.ts
Outdated
Show resolved
Hide resolved
packages/core/src/dialects/abstract/query-generator-typescript.ts
Outdated
Show resolved
Hide resolved
packages/core/src/dialects/abstract/query-interface-typescript.ts
Outdated
Show resolved
Hide resolved
packages/core/src/dialects/abstract/query-interface-typescript.ts
Outdated
Show resolved
Hide resolved
packages/core/src/dialects/sqlite/query-generator-typescript.ts
Outdated
Show resolved
Hide resolved
bc267b9
to
3292c79
Compare
Thanks @ephys. |
8cb2fb1
to
0652e52
Compare
packages/core/src/dialects/abstract/query-generator-typescript.ts
Outdated
Show resolved
Hide resolved
aea1404
to
ab43bd6
Compare
packages/core/test/integration/query-interface/changeColumn.test.js
Outdated
Show resolved
Hide resolved
packages/core/test/integration/query-interface/remove-constraint.test.ts
Show resolved
Hide resolved
packages/core/test/integration/query-interface/show-constraint.test.ts
Outdated
Show resolved
Hide resolved
packages/core/test/unit/query-generator/add-constraint-query.test.ts
Outdated
Show resolved
Hide resolved
packages/core/test/unit/query-generator/add-constraint-query.test.ts
Outdated
Show resolved
Hide resolved
packages/core/test/unit/query-generator/add-constraint-query.test.ts
Outdated
Show resolved
Hide resolved
packages/core/test/unit/query-generator/add-constraint-query.test.ts
Outdated
Show resolved
Hide resolved
packages/core/test/unit/query-generator/set-constraint-checking-query.test.ts
Outdated
Show resolved
Hide resolved
53a7540
to
0df18b5
Compare
@WikiRik what can be done to fix the flaky test that failed in the merge queue. |
Yup, since the upgrade to MariaDB 11.0 this test is very flaky. There's not much to do apart from moving this PR back in the merge queue |
Pull Request Checklist
Description Of Change
From some testing, it turned out that the typing's for the constraint functions were either missing, invalid or missing valid option and rather than creating one PR per fix, I have bundled all the changes into this PR.
This closes #15407 as it implements the same fixes plus a few tweaks.
I've also moved MariaDB to its own
QueryInterface
as it supportsremoveConstraint
however this is not supported in all versions of MySQL.Also, MariaDB supports check constraints however this is also not supported in all versions of MySQL.
Closes #15964, #16115