ADD informations concernant les jours pendant lesquels les participants sont présent...
[cl7.git] / php / update_db.php
index 5ff5904..c094a9e 100644 (file)
@@ -87,6 +87,7 @@ function update_db()
    if ($version == 1)
    {
       mysql_query("BEGIN TRANSACTION");
+      mysql_query("ALTER TABLE participants ADD CONSTRAINT UNIQUE INDEX pseudo_unique (pseudo);");
       mysql_query("
          CREATE TABLE IF NOT EXISTS periodes (
            id mediumint(3) unsigned NOT NULL auto_increment,