Skip to content

Add support for 'ON UPDATE SET NULL' clause in FK - #156

Merged
madtibo merged 1 commit into
dalibo:masterfrom
aminosbh:master
May 26, 2021
Merged

Add support for 'ON UPDATE SET NULL' clause in FK#156
madtibo merged 1 commit into
dalibo:masterfrom
aminosbh:master

Conversation

@aminosbh

Copy link
Copy Markdown
Contributor

Add support for "ON UPDATE SET NULL" clause in Foreign Key Constraints.

PostgreSQL (v7.3 -> v13) supports the following clause:
ON UPDATE <OPTION> where <OPTION> could be one of the following:
RESTRICT, NO ACTION, SET NULL and SET DEFAULT

Reference:
https://www.postgresql.org/docs/13/ddl-constraints.html
https://www.postgresql.org/docs/7.3/ddl-constraints.html

@madtibo
madtibo self-requested a review May 26, 2021 13:18
@madtibo

madtibo commented May 26, 2021

Copy link
Copy Markdown
Contributor

Thanks @aminosbh for this PR!

@madtibo
madtibo merged commit 4e14df7 into dalibo:master May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants