From: Stéphane Jacob Date: Sat, 14 May 2011 13:35:37 +0000 (+0200) Subject: I forgot to commit the sql script for last commits. X-Git-Tag: xorg/1.1.2~89 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=69d311a9e667ba071af1070cfe9a6906a4f0ed32;p=platal.git I forgot to commit the sql script for last commits. Signed-off-by: Stéphane Jacob --- diff --git a/upgrade/1.1.2/01_groups.sql b/upgrade/1.1.2/01_groups.sql new file mode 100644 index 0000000..4f999db --- /dev/null +++ b/upgrade/1.1.2/01_groups.sql @@ -0,0 +1,11 @@ +CREATE TABLE group_former_members ( + asso_id SMALLINT(5) UNSIGNED NOT NULL DEFAULT 0, + uid INT(11) UNSIGNED NOT NULL DEFAULT 0, + unsubsciption_date DATE NOT NULL, + PRIMARY KEY (asso_id, uid), + KEY uid (uid), + CONSTRAINT group_former_members_ibfk_1 FOREIGN KEY (uid) REFERENCES accounts (uid) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT group_former_members_ibfk_2 FOREIGN KEY (asso_id) REFERENCES groups (id) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +-- vim:set syntax=mysql: