schema/mysql: require key column name for imports
This commit is contained in:
parent
d97d276156
commit
c00d708327
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE import_source ADD COLUMN key_column VARCHAR(64) NOT NULL AFTER source_name;
|
||||
ALTER TABLE import_source ADD INDEX search_idx (key_column);
|
|
@ -805,8 +805,10 @@ CREATE TABLE icinga_usergroup_parent (
|
|||
CREATE TABLE import_source (
|
||||
id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL,
|
||||
source_name VARCHAR(64) NOT NULL,
|
||||
key_column VARCHAR(64) NOT NULL,
|
||||
provider_class VARCHAR(72) NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
PRIMARY KEY (id),
|
||||
INDEX search_idx (key_column)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE import_source_setting (
|
||||
|
|
Loading…
Reference in New Issue