Skip to content

Commit 5354017

Browse files
committed
drop index support in alter command
1 parent 5be8ae1 commit 5354017

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pegjs/mysql.pegjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,15 @@ ALTER_DROP_KEY
11941194
type: 'alter',
11951195
}
11961196
}
1197+
/ KW_DROP __ (KW_KEY / KW_INDEX) __ c:ident_name {
1198+
return {
1199+
action: 'drop',
1200+
index: c,
1201+
keyword: 'index',
1202+
resource: 'index',
1203+
type: 'alter',
1204+
}
1205+
}
11971206

11981207
ALTER_DROP_CONSTRAINT
11991208
= KW_DROP __ kc:'CHECK'i __ c:ident_name {

0 commit comments

Comments
 (0)