DBZ-2151 Completing support for ALTER TABLE DROP INDEX IF EXISTS
This commit is contained in:
parent
ae8f530d7e
commit
3e5f0cef38
@ -108,6 +108,7 @@ Joy Gao
|
||||
Juan Antonio Pedraza
|
||||
Jun Du
|
||||
Jure Kajzer
|
||||
Justin Hiza
|
||||
Keith Barber
|
||||
Kevin Pullin
|
||||
Kewei Shang
|
||||
|
@ -621,7 +621,7 @@ alterSpecification
|
||||
uid columnDefinition (FIRST | AFTER uid)? #alterByModifyColumn
|
||||
| DROP COLUMN? uid RESTRICT? #alterByDropColumn
|
||||
| DROP PRIMARY KEY #alterByDropPrimaryKey
|
||||
| DROP indexFormat=(INDEX | KEY) uid #alterByDropIndex
|
||||
| DROP indexFormat=(INDEX | KEY) ifExists? uid #alterByDropIndex
|
||||
| RENAME indexFormat=(INDEX | KEY) uid TO uid #alterByRenameIndex
|
||||
| DROP FOREIGN KEY uid #alterByDropForeignKey
|
||||
| DISABLE KEYS #alterByDisableKeys
|
||||
|
@ -2,7 +2,7 @@
|
||||
-- Alter Table
|
||||
alter table ship_class add column ship_spec varchar(150) first, add somecol int after start_build, algorithm=instant;
|
||||
alter table t3 add column (c2 decimal(10, 2) comment 'comment`' null, c3 enum('abc', 'cba', 'aaa')), add index t3_i1 using btree (c2) comment 'some index';
|
||||
alter table t3 add column (c4 decimal(10, 2) comment 'comment`' null, add index t3_i2 using btree (c4) comment 'some index';
|
||||
alter table t3 add column (c4 decimal(10, 2) comment 'comment`' null), add index t3_i2 using btree (c4) comment 'some index';
|
||||
alter table t2 add constraint t2_pk_constraint primary key (1c), alter column `_` set default 1;
|
||||
alter table ship_class change column somecol col_for_del tinyint first;
|
||||
alter table ship_class drop col_for_del;
|
||||
|
@ -24,6 +24,7 @@ drop event someevent;
|
||||
drop index index1 on t1 algorithm=default;
|
||||
drop index index2 on t2 algorithm=default lock none;
|
||||
drop index index3 on antlr_tokens algorithm default lock=none;
|
||||
drop index if exists index1 on t1 algorithm=default;
|
||||
#end
|
||||
#begin
|
||||
-- Drop logfile group
|
||||
|
Loading…
Reference in New Issue
Block a user