Skip to content

Commit

Permalink
Merge pull request #1679 from jim-lake/master
Browse files Browse the repository at this point in the history
drop index support in alter command
  • Loading branch information
taozhi8833998 authored Nov 27, 2023
2 parents aea80f7 + 5354017 commit c5d9d8b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pegjs/mysql.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -1194,6 +1194,15 @@ ALTER_DROP_KEY
type: 'alter',
}
}
/ KW_DROP __ (KW_KEY / KW_INDEX) __ c:ident_name {
return {
action: 'drop',
index: c,
keyword: 'index',
resource: 'index',
type: 'alter',
}
}

ALTER_DROP_CONSTRAINT
= KW_DROP __ kc:'CHECK'i __ c:ident_name {
Expand Down

0 comments on commit c5d9d8b

Please sign in to comment.