-
Notifications
You must be signed in to change notification settings - Fork 489
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
parser: fix compatibility for OnDelete
,OnUpdate
clauses
#393
Conversation
I realized a similar PR has been already merged when I tried to fix merge conflict. |
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.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #393 +/- ##
==========================================
+ Coverage 70.17% 70.22% +0.04%
==========================================
Files 32 32
Lines 7437 7448 +11
==========================================
+ Hits 5219 5230 +11
Misses 1703 1703
Partials 515 515
Continue to review full report at Codecov.
|
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.
LGTM
What problem does this PR solve?
fix compatibility for
OnDelete
,OnUpdate
clausesthis pr support following syntax:
reference_definition:
REFERENCES tbl_name (key_part,...)
[MATCH FULL | MATCH PARTIAL | MATCH SIMPLE]
[ON DELETE reference_option]
[ON UPDATE reference_option]
reference_option:
RESTRICT | CASCADE | SET NULL | NO ACTION | SET DEFAULT
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes