Commit f66273a7 authored by Tom Käsler's avatar Tom Käsler

fix tables definition

parent 7ba68a7c
......@@ -103,21 +103,21 @@ CREATE TABLE features (
CREATE TABLE session_motds (
id INT NOT NULL AUTO_INCREMENT,
session_id INT NOT NULL,
startdate VARCHAR(30) NOT NULL,
enddate VARCHAR(30) NOT NULL,
title VARCHAR(255) NOT NULL,
content TEXT NOT NULL,
audience VARCHAR(255) NOT NULL,
PRIMARY KEY(id)
PRIMARY KEY(id),
CONSTRAINT global_motd_session_fk FOREIGN KEY (session_id) REFERENCES sessions(id) ON UPDATE CASCADE ON DELETE CASCADE
) ENGINE=INNODB;
CREATE TABLE global_motds (
id INT NOT NULL AUTO_INCREMENT,
session_id INT NOT NULL,
startdate VARCHAR(30) NOT NULL,
enddate VARCHAR(30) NOT NULL,
title VARCHAR(255) NOT NULL,
content TEXT NOT NULL,
PRIMARY KEY(id),
CONSTRAINT global_motd_session_fk FOREIGN KEY (session_id) REFERENCES sessions(id) ON UPDATE CASCADE ON DELETE CASCADE
audience VARCHAR(255) NOT NULL,
PRIMARY KEY(id)
) ENGINE=INNODB;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment