File tree 5 files changed +1088
-892
lines changed
5 files changed +1088
-892
lines changed Original file line number Diff line number Diff line change @@ -33,4 +33,12 @@ type ColumnDefine struct {
33
33
34
34
type ModifyColumnClause struct {
35
35
columnClause
36
+ }
37
+
38
+ type DropColumnClause struct {
39
+ columnClause
40
+ }
41
+
42
+ type RenameColumnClause struct {
43
+ columnClause
36
44
}
Original file line number Diff line number Diff line change @@ -182,6 +182,14 @@ var keywordMap = map[string]int{
182
182
"levels" : _levels ,
183
183
"substitutable" : _substitutable ,
184
184
"force" : _force ,
185
+ "columns" : _columns ,
186
+ "continue" : _continue ,
187
+ "unused" : _unused ,
188
+ "constraints" : _constraints ,
189
+ "invalidate" : _invalidate ,
190
+ "online" : _online ,
191
+ "checkpoint" : _checkpoint ,
192
+ "rename" : _rename ,
185
193
}
186
194
187
195
func init () {
Original file line number Diff line number Diff line change @@ -58,6 +58,15 @@ alter table db1.table1 add (id number default 123)
58
58
` ,
59
59
`
60
60
alter table db1.table1 modify (id number default 123)
61
+ ` ,
62
+ `
63
+ alter table db1.table1 drop column id
64
+ ` ,
65
+ `
66
+ alter table db1.table1 drop (id,name)
67
+ ` ,
68
+ `
69
+ alter table db1.table1 set unused column id
61
70
` ,
62
71
}
63
72
for _ , query := range querys {
You can’t perform that action at this time.
0 commit comments