diff --git a/schema/mysql-changes/upgrade_29.sql b/schema/mysql-changes/upgrade_29.sql index 2764bd4c..68470674 100644 --- a/schema/mysql-changes/upgrade_29.sql +++ b/schema/mysql-changes/upgrade_29.sql @@ -5,22 +5,12 @@ CREATE TABLE import_row_modifier ( id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL, property_id INT(10) UNSIGNED NOT NULL, provider_class VARCHAR(72) NOT NULL, - PRIMARY KEY (id), - CONSTRAINT sync_modifier_property - FOREIGN KEY sync_property (property_id) - REFERENCES sync_property (id) - ON DELETE CASCADE - ON UPDATE CASCADE + PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 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, settings_name), - CONSTRAINT sync_modifier_settings_modifier - FOREIGN KEY modifier (modifier_id) - REFERENCES sync_modifier (id) - ON DELETE CASCADE - ON UPDATE CASCADE + PRIMARY KEY (modifier_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/schema/mysql-changes/upgrade_30.sql b/schema/mysql-changes/upgrade_30.sql index 3df66dd3..1cd60b8f 100644 --- a/schema/mysql-changes/upgrade_30.sql +++ b/schema/mysql-changes/upgrade_30.sql @@ -4,10 +4,5 @@ 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, setting_name), - CONSTRAINT sync_modifier_param_modifier - FOREIGN KEY modifier (modifier_id) - REFERENCES sync_modifier (id) - ON DELETE CASCADE - ON UPDATE CASCADE + PRIMARY KEY (modifier_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/schema/mysql.sql b/schema/mysql.sql index d20c4fe7..cfae06d9 100644 --- a/schema/mysql.sql +++ b/schema/mysql.sql @@ -931,22 +931,12 @@ CREATE TABLE import_row_modifier ( id INT(10) UNSIGNED AUTO_INCREMENT NOT NULL, property_id INT(10) UNSIGNED NOT NULL, provider_class VARCHAR(72) NOT NULL, - PRIMARY KEY (id), - CONSTRAINT sync_modifier_property - FOREIGN KEY sync_property (property_id) - REFERENCES sync_property (id) - ON DELETE CASCADE - ON UPDATE CASCADE + PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 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), - CONSTRAINT sync_modifier_param_modifier - FOREIGN KEY modifier (modifier_id) - REFERENCES sync_modifier (id) - ON DELETE CASCADE - ON UPDATE CASCADE + PRIMARY KEY (modifier_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;