Skip to content
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

Implement ON UPDATE and ON DELETE with schemas #191

Closed
AliusDieMorietur opened this issue Aug 6, 2021 · 1 comment
Closed

Implement ON UPDATE and ON DELETE with schemas #191

AliusDieMorietur opened this issue Aug 6, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@AliusDieMorietur
Copy link

AliusDieMorietur commented Aug 6, 2021

Support CASCADE, RESTRICT, NO ACTION, SET NULL, SET DEFAULT for both ON UPDATE and ON DELETE

@tshemsedinov tshemsedinov changed the title Posibility to add DELETE ON CASADE with schemas Implement ON UPDATE and ON DELETE with schemas Aug 6, 2021
@tshemsedinov
Copy link
Member

tshemsedinov commented Aug 6, 2021

  • For common reference fields: entity: { type: 'Entity', delete: 'set null', update: 'set null' }
  • For many-to-many will be { many: 'Entity', delete: 'cascade', update: 'cascade' } by default

@tshemsedinov tshemsedinov self-assigned this Aug 6, 2021
@tshemsedinov tshemsedinov added the enhancement New feature or request label Aug 6, 2021
tshemsedinov added a commit to metarhia/metadomain that referenced this issue Aug 6, 2021
tshemsedinov added a commit to metarhia/metadomain that referenced this issue Aug 6, 2021
tshemsedinov added a commit that referenced this issue Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants