10 lines
434 B
SQL
10 lines
434 B
SQL
|
|
ALTER TABLE variable DROP PRIMARY KEY;
|
|
ALTER TABLE variable ADD id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
|
|
ALTER TABLE variable ADD strata enum('DEFAULT','GLOBAL','FQDN', 'FQDN_CREATOR', 'CREATOR', 'MEMBER', 'DOMAIN') NOT NULL DEFAULT 'DEFAULT';
|
|
ALTER TABLE variable ADD strata_id bigint DEFAULT NULL;
|
|
ALTER TABLE variable ADD type text DEFAULT '';
|
|
ALTER TABLE variable ADD UNIQUE (name, strata, strata_id);
|
|
|
|
|