Skip to content

Commit

Permalink
feat: drop constraint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
MilkeeyCat committed Oct 21, 2024
1 parent c649cb9 commit 47892e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -1673,6 +1673,7 @@ module.exports = grammar({
_alter_specifications: $ => choice(
$.add_column,
$.add_constraint,
$.drop_constraint,
$.alter_column,
$.modify_column,
$.change_column,
Expand Down Expand Up @@ -1702,6 +1703,14 @@ module.exports = grammar({
$.constraint,
),

drop_constraint: $ => seq(
$.keyword_drop,
$.keyword_constraint,
optional($._if_exists),
$.identifier,
optional($._drop_behavior),
),

alter_column: $ => seq(
// TODO constraint management
$.keyword_alter,
Expand Down

0 comments on commit 47892e4

Please sign in to comment.