Add profile_manageurs table to prepare the implementation Manageurs prefs.
authorThomas Minvielle <thomas.minvielle@polytechnique.org>
Mon, 3 Mar 2014 15:50:36 +0000 (16:50 +0100)
committerThomas Minvielle <thomas.minvielle@polytechnique.org>
Mon, 3 Mar 2014 15:50:36 +0000 (16:50 +0100)
upgrade/1.1.12/07_create_profile_manageurs.sql [new file with mode: 0644]

diff --git a/upgrade/1.1.12/07_create_profile_manageurs.sql b/upgrade/1.1.12/07_create_profile_manageurs.sql
new file mode 100644 (file)
index 0000000..894995c
--- /dev/null
@@ -0,0 +1,14 @@
+CREATE TABLE profile_manageurs (
+    pid INT(11) UNSIGNED NOT NULL DEFAULT 0,
+    title VARCHAR(255) NOT NULL DEFAULT '',
+    entry_year INT(4) NULL DEFAULT NULL,
+    project MEDIUMTEXT NULL DEFAULT NULL,
+    anonymity INT(1) UNSIGNED NOT NULL DEFAULT 0,
+    visibility ENUM('visible', 'visible_exceptions', 'blocked') NOT NULL DEFAULT 'blocked',
+    communication SET('novelties', 'nl', 'survey') NOT NULL DEFAULT '',
+    push ENUM('unique', 'weekly', 'never') NOT NULL DEFAULT 'never',
+    email VARCHAR(255) NOT NULL DEFAULT '',
+    network INT(1) UNSIGNED NOT NULL DEFAULT 0,
+    PRIMARY KEY (pid),
+    CONSTRAINT FOREIGN KEY (pid) REFERENCES profiles (pid) ON DELETE CASCADE ON UPDATE CASCADE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;