fix group name column error mysql

This commit is contained in:
osaajani 2019-11-08 18:21:34 +01:00
parent 493859a688
commit dc94c46bea
1 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ CREATE TABLE IF NOT EXISTS contact
UNIQUE (name)
);
CREATE TABLE IF NOT EXISTS group
CREATE TABLE IF NOT EXISTS `group`
(
id INT NOT NULL AUTO_INCREMENT,
id_user INT NOT NULL,
@ -76,7 +76,7 @@ CREATE TABLE IF NOT EXISTS group_contact
id_group INT NOT NULL,
id_contact INT NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (id_group) REFERENCES group (id) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (id_group) REFERENCES `group` (id) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (id_contact) REFERENCES contact (id) ON DELETE CASCADE ON UPDATE CASCADE
);
@ -97,7 +97,7 @@ CREATE TABLE IF NOT EXISTS scheduled_group
id_group INT NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (id_scheduled) REFERENCES scheduled (id) ON DELETE CASCADE ON UPDATE CASCADE,
FOREIGN KEY (id_group) REFERENCES group (id) ON DELETE CASCADE ON UPDATE CASCADE
FOREIGN KEY (id_group) REFERENCES `group` (id) ON DELETE CASCADE ON UPDATE CASCADE
);
CREATE TABLE IF NOT EXISTS scheduled_number