summaryrefslogtreecommitdiff
path: root/sql/sql_alter.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_alter.h')
-rw-r--r--sql/sql_alter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_alter.h b/sql/sql_alter.h
index 473208f0675..c6558c3bc8c 100644
--- a/sql/sql_alter.h
+++ b/sql/sql_alter.h
@@ -121,6 +121,9 @@ public:
// Set for ADD [COLUMN] FIRST | AFTER
static const uint ALTER_COLUMN_ORDER = 1L << 25;
+ static const uint ALTER_ADD_CHECK_CONSTRAINT = 1L << 27;
+ static const uint ALTER_DROP_CHECK_CONSTRAINT = 1L << 28;
+ static const uint ALTER_RENAME_COLUMN = 1L << 29;
enum enum_enable_or_disable { LEAVE_AS_IS, ENABLE, DISABLE };
@@ -169,6 +172,9 @@ public:
List<Key> key_list;
// List of columns, used by both CREATE and ALTER TABLE.
List<Create_field> create_list;
+
+ static const uint CHECK_CONSTRAINT_IF_NOT_EXISTS= 1;
+ List<Virtual_column_info> check_constraint_list;
// Type of ALTER TABLE operation.
uint flags;
// Enable or disable keys.
@@ -197,6 +203,7 @@ public:
alter_list.empty();
key_list.empty();
create_list.empty();
+ check_constraint_list.empty();
flags= 0;
keys_onoff= LEAVE_AS_IS;
num_parts= 0;