mysql schema: removed contraints from tables import_row_modifier_setting import_row_modifier

This commit is contained in:
Stefan Scheungrab 2015-07-23 17:30:45 +02:00
parent 60f563959d
commit 17f907489e
3 changed files with 5 additions and 30 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;