mysql_schema: because of rename of the tables the key has to be updated:wq

This commit is contained in:
Stefan Scheungrab 2015-07-23 16:57:48 +02:00
parent 7564989981
commit 60f563959d
2 changed files with 3 additions and 3 deletions

View File

@ -17,8 +17,8 @@ CREATE TABLE import_row_modifier_settings (
modifier_id INT UNSIGNED NOT NULL,
settings_name VARCHAR(64) NOT NULL,
settings_value TEXT DEFAULT NULL,
PRIMARY KEY (modifier_id, param_name),
CONSTRAINT sync_modifier_param_modifier
PRIMARY KEY (modifier_id, settings_name),
CONSTRAINT sync_modifier_settings_modifier
FOREIGN KEY modifier (modifier_id)
REFERENCES sync_modifier (id)
ON DELETE CASCADE

View File

@ -4,7 +4,7 @@ CREATE TABLE import_row_modifier_setting (
modifier_id INT UNSIGNED NOT NULL,
setting_name VARCHAR(64) NOT NULL,
setting_value TEXT DEFAULT NULL,
PRIMARY KEY (modifier_id, param_name),
PRIMARY KEY (modifier_id, setting_name),
CONSTRAINT sync_modifier_param_modifier
FOREIGN KEY modifier (modifier_id)
REFERENCES sync_modifier (id)