-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schema-engine):
CHECK
and EXCLUDE
constraints stopgap for Po…
…stgres (#3860) * feat(schema-engine): add constraints_query.sql for postgres * feat(schema-engine): add check and exclusion constraints stopgap support for postgres * feat(schema-engine): add skeleton for stopgap warnings for check and exclusion constraints in postgres * feat(schema-engine): emit warnings when finding check and exclusion constraints when introspecting postgres * chore: remove comments * chore: remove dbg * test(schema-engine): add missing defaults in describer tests * chore: update warning messages so that they make more sense * feat(schema-engine): updated check and exclusion constraints warning messages * test(schema-engine): validate introspected schemas for check and exclusion constraints * feat(schema-engine): introspecting models with check or exclusion constraints now adds a comment to such models * feat(schema-engine): fix edge case of model having both check and exclusion constraints * feat(schema-engine): fix prisma/prisma#17515 * chore: remove dead code * chore: fix conflicts * fix: avoid duplicated model commments upon reintrospection * feat(schema-engine): use ModelAndConstraint rather than CheckConstraint and ExclusionConstraint * feat(schema-engine): replace IndexMap with BTreeMap for leaner flag "upsert" capabilities * chore: add TODO to answer Tom's review comment * Exclude constraints are PG only, lighten up the api (#3887) * Exclude constraints are PG only, lighten up the api * Split constraint tests into its own file * Fix describer tests * feat(schema-engine): apply review comments --------- Co-authored-by: Julius de Bruijn <julius+github@nauk.io>
- Loading branch information
Showing
18 changed files
with
649 additions
and
1 deletion.
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
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
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
Oops, something went wrong.