feat: introduce SetIndexes and UnsetIndexes (#253)
This commit is contained in:
@@ -112,9 +112,13 @@ message AlterTableExpr {
|
||||
ModifyColumnTypes modify_column_types = 7;
|
||||
SetTableOptions set_table_options = 8;
|
||||
UnsetTableOptions unset_table_options = 11;
|
||||
// Deprecated: use set_indexes instead.
|
||||
SetIndex set_index = 12;
|
||||
// Deprecated: use unset_indexes instead.
|
||||
UnsetIndex unset_index = 13;
|
||||
DropDefaults drop_defaults = 14;
|
||||
SetIndexes set_indexes = 15;
|
||||
UnsetIndexes unset_indexes = 16;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -122,6 +126,14 @@ message DropDefault {
|
||||
string column_name = 1;
|
||||
}
|
||||
|
||||
message SetIndexes {
|
||||
repeated SetIndex set_indexes = 1;
|
||||
}
|
||||
|
||||
message UnsetIndexes {
|
||||
repeated UnsetIndex unset_indexes = 1;
|
||||
}
|
||||
|
||||
message SetIndex {
|
||||
oneof options {
|
||||
SetFulltext fulltext = 1;
|
||||
|
||||
@@ -158,9 +158,13 @@ message AlterRequest {
|
||||
ModifyColumnTypes modify_column_types = 5;
|
||||
SetTableOptions set_table_options = 6;
|
||||
UnsetTableOptions unset_table_options = 9;
|
||||
// Deprecated: use set_indexes instead.
|
||||
SetIndex set_index = 10;
|
||||
// Deprecated: use unset_indexes instead.
|
||||
UnsetIndex unset_index = 11;
|
||||
DropDefaults drop_defaults = 12;
|
||||
SetIndexes set_indexes = 13;
|
||||
UnsetIndexes unset_indexes = 14;
|
||||
}
|
||||
// The version of the schema before applying the alteration.
|
||||
uint64 schema_version = 4;
|
||||
|
||||
Reference in New Issue
Block a user