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
Referential actions in the Prisma Schema Language #1947
Commits on Jun 2, 2021
-
Referential action support for IE, ME and PSL
Supported actions: `Cascade`, `Restrict`, `NoAction`, `SetNull` and `SetDefault`. Per-database validation, e.g. `Restrict` doesn't validate on SQL Server. Defaults to: - `onUpdate`: `SetNull` on optional and `Cascade` on required relations. - `onDelete`: `SetNull` on optional and `Restrict` on required relations. Currently ALWAYS renders the actions on introspection, due to the database always has some action set.
Julius de Bruijn committedJun 2, 2021 Configuration menu - View commit details
-
Copy full SHA for 619733a - Browse repository at this point
Copy the full SHA 619733aView commit details -
Do not render default referential actions
Julius de Bruijn committedJun 2, 2021 Configuration menu - View commit details
-
Copy full SHA for 18ac766 - Browse repository at this point
Copy the full SHA 18ac766View commit details
Commits on Jun 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for feef5f3 - Browse repository at this point
Copy the full SHA feef5f3View commit details
Commits on Jun 7, 2021
-
Julius de Bruijn committed
Jun 7, 2021 Configuration menu - View commit details
-
Copy full SHA for d4b9fc0 - Browse repository at this point
Copy the full SHA d4b9fc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for efa606e - Browse repository at this point
Copy the full SHA efa606eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 28634ef - Browse repository at this point
Copy the full SHA 28634efView commit details -
Configuration menu - View commit details
-
Copy full SHA for e6f8c48 - Browse repository at this point
Copy the full SHA e6f8c48View commit details -
Julius de Bruijn committed
Jun 7, 2021 Configuration menu - View commit details
-
Copy full SHA for 1f3bc2c - Browse repository at this point
Copy the full SHA 1f3bc2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e6ea45 - Browse repository at this point
Copy the full SHA 9e6ea45View commit details -
Add new prisma-fmt command referential-actions
Call it with starting prisma-fmt with subcommand referential actions. STDIN takes the data model and stdout lists all allowed actions.
Julius de Bruijn committedJun 7, 2021 Configuration menu - View commit details
-
Copy full SHA for a4032c5 - Browse repository at this point
Copy the full SHA a4032c5View commit details
Commits on Jun 8, 2021
-
Get the default actions from dml (if possible)
Julius de Bruijn committedJun 8, 2021 Configuration menu - View commit details
-
Copy full SHA for 4f4f04f - Browse repository at this point
Copy the full SHA 4f4f04fView commit details -
onUpdate should always CASCADE.
Julius de Bruijn committedJun 8, 2021 Configuration menu - View commit details
-
Copy full SHA for 7bef40a - Browse repository at this point
Copy the full SHA 7bef40aView commit details
Commits on Jun 9, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ecf9b5b - Browse repository at this point
Copy the full SHA ecf9b5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7eaaaf0 - Browse repository at this point
Copy the full SHA 7eaaaf0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a73614f - Browse repository at this point
Copy the full SHA a73614fView commit details -
Merge branch 'master' into referential-actions
Julius de Bruijn committedJun 9, 2021 Configuration menu - View commit details
-
Copy full SHA for 4054aba - Browse repository at this point
Copy the full SHA 4054abaView commit details -
Configuration menu - View commit details
-
Copy full SHA for af5b0fa - Browse repository at this point
Copy the full SHA af5b0faView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb2ff28 - Browse repository at this point
Copy the full SHA eb2ff28View commit details
Commits on Jun 11, 2021
-
No virtuals, foreign key capability, validations
Julius de Bruijn committedJun 11, 2021 Configuration menu - View commit details
-
Copy full SHA for bf26779 - Browse repository at this point
Copy the full SHA bf26779View commit details -
Add test for onUpdate on the wrong side
Julius de Bruijn committedJun 11, 2021 Configuration menu - View commit details
-
Copy full SHA for 486e285 - Browse repository at this point
Copy the full SHA 486e285View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40cd6b2 - Browse repository at this point
Copy the full SHA 40cd6b2View commit details
Commits on Jun 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a824868 - Browse repository at this point
Copy the full SHA a824868View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7d7858 - Browse repository at this point
Copy the full SHA b7d7858View commit details -
Configuration menu - View commit details
-
Copy full SHA for 63f2fa8 - Browse repository at this point
Copy the full SHA 63f2fa8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae2f024 - Browse repository at this point
Copy the full SHA ae2f024View commit details -
Configuration menu - View commit details
-
Copy full SHA for 912d03b - Browse repository at this point
Copy the full SHA 912d03bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 74b9cd8 - Browse repository at this point
Copy the full SHA 74b9cd8View commit details
Commits on Jun 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 21308fb - Browse repository at this point
Copy the full SHA 21308fbView commit details
Commits on Jun 16, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 065e991 - Browse repository at this point
Copy the full SHA 065e991View commit details
Commits on Jun 17, 2021
-
Feature-gating referential actions for IE/ME
Julius de Bruijn committedJun 17, 2021 Configuration menu - View commit details
-
Copy full SHA for a28c9ef - Browse repository at this point
Copy the full SHA a28c9efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 15acaff - Browse repository at this point
Copy the full SHA 15acaffView commit details -
Configuration menu - View commit details
-
Copy full SHA for da6661d - Browse repository at this point
Copy the full SHA da6661dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00ec7c1 - Browse repository at this point
Copy the full SHA 00ec7c1View commit details
Commits on Jun 18, 2021
-
Julius de Bruijn committed
Jun 18, 2021 Configuration menu - View commit details
-
Copy full SHA for b0b337a - Browse repository at this point
Copy the full SHA b0b337aView commit details -
TODO: a way to pass RA preview flag correctly (everywhere)
Julius de Bruijn committedJun 18, 2021 Configuration menu - View commit details
-
Copy full SHA for adcc20b - Browse repository at this point
Copy the full SHA adcc20bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d8e33f - Browse repository at this point
Copy the full SHA 2d8e33fView commit details -
Merge branch 'referential-actions' of github.com:prisma/prisma-engine…
… into referential-actions
Configuration menu - View commit details
-
Copy full SHA for f93151a - Browse repository at this point
Copy the full SHA f93151aView commit details
Commits on Jun 19, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4b1bbff - Browse repository at this point
Copy the full SHA 4b1bbffView commit details
Commits on Jun 21, 2021
-
Add preview_features test params for ME
Julius de Bruijn committedJun 21, 2021 Configuration menu - View commit details
-
Copy full SHA for 3c4c400 - Browse repository at this point
Copy the full SHA 3c4c400View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06c16b2 - Browse repository at this point
Copy the full SHA 06c16b2View commit details -
Merge branch 'query-engine/referential_actions_emulation_v2' into ref…
…erential-actions
Configuration menu - View commit details
-
Copy full SHA for d3f0ee4 - Browse repository at this point
Copy the full SHA d3f0ee4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea7a010 - Browse repository at this point
Copy the full SHA ea7a010View commit details -
Merge branch 'master' into referential-actions
Julius de Bruijn committedJun 21, 2021 Configuration menu - View commit details
-
Copy full SHA for 0ba0965 - Browse repository at this point
Copy the full SHA 0ba0965View commit details -
Julius de Bruijn committed
Jun 21, 2021 Configuration menu - View commit details
-
Copy full SHA for 68badc9 - Browse repository at this point
Copy the full SHA 68badc9View commit details -
Julius de Bruijn committed
Jun 21, 2021 Configuration menu - View commit details
-
Copy full SHA for 357ce5c - Browse repository at this point
Copy the full SHA 357ce5cView commit details -
Julius de Bruijn committed
Jun 21, 2021 Configuration menu - View commit details
-
Copy full SHA for 67a4939 - Browse repository at this point
Copy the full SHA 67a4939View commit details -
Make legacy compound defaults work again
Julius de Bruijn committedJun 21, 2021 Configuration menu - View commit details
-
Copy full SHA for d526152 - Browse repository at this point
Copy the full SHA d526152View commit details
Commits on Jun 22, 2021
-
Set referential action for compounds correctly
If even one underlying scalar field is required, the default referential action should not be `SetNull`.
Julius de Bruijn committedJun 22, 2021 Configuration menu - View commit details
-
Copy full SHA for 7931c4c - Browse repository at this point
Copy the full SHA 7931c4cView commit details -
Merge branch 'master' into referential-actions
Julius de Bruijn committedJun 22, 2021 Configuration menu - View commit details
-
Copy full SHA for 1926d49 - Browse repository at this point
Copy the full SHA 1926d49View commit details -
Julius de Bruijn committed
Jun 22, 2021 Configuration menu - View commit details
-
Copy full SHA for b5bd2f1 - Browse repository at this point
Copy the full SHA b5bd2f1View commit details -
Julius de Bruijn committed
Jun 22, 2021 Configuration menu - View commit details
-
Copy full SHA for d1b654c - Browse repository at this point
Copy the full SHA d1b654cView commit details -
Julius de Bruijn committed
Jun 22, 2021 Configuration menu - View commit details
-
Copy full SHA for ed65a0e - Browse repository at this point
Copy the full SHA ed65a0eView commit details -
Merge branch 'master' into referential-actions
Julius de Bruijn committedJun 22, 2021 Configuration menu - View commit details
-
Copy full SHA for 1cc068d - Browse repository at this point
Copy the full SHA 1cc068dView commit details -
Julius de Bruijn committed
Jun 22, 2021 Configuration menu - View commit details
-
Copy full SHA for de24f6b - Browse repository at this point
Copy the full SHA de24f6bView commit details -
Julius de Bruijn committed
Jun 22, 2021 Configuration menu - View commit details
-
Copy full SHA for 288f969 - Browse repository at this point
Copy the full SHA 288f969View commit details -
Julius de Bruijn committed
Jun 22, 2021 Configuration menu - View commit details
-
Copy full SHA for ea849b2 - Browse repository at this point
Copy the full SHA ea849b2View commit details -
Validation error if ref actions on both sides
Julius de Bruijn committedJun 22, 2021 Configuration menu - View commit details
-
Copy full SHA for de3b045 - Browse repository at this point
Copy the full SHA de3b045View commit details