From 5877a734b38e3d0e1aaa7dbf57ae67615f872d90 Mon Sep 17 00:00:00 2001 From: Yohann Date: Tue, 22 Oct 2019 15:12:02 +0200 Subject: [PATCH] Ouverture des Correspondances --- .idea/.gitignore | 2 +- setup/create_database.sql | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.idea/.gitignore b/.idea/.gitignore index 3889a9e..03fd30e 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -3,4 +3,4 @@ /workspace.xml # Datasource local storage ignored files /dataSources/ -/dataSources.local.xml \ No newline at end of file +/dataSources.local.xml diff --git a/setup/create_database.sql b/setup/create_database.sql index 0283c8a..10aefe1 100644 --- a/setup/create_database.sql +++ b/setup/create_database.sql @@ -3,7 +3,7 @@ -- https://www.phpmyadmin.net/ -- -- Hôte : db --- Généré le : lun. 23 sep. 2019 à 22:14 +-- Généré le : mar. 22 oct. 2019 à 13:10 -- Version du serveur : 5.7.20 -- Version de PHP : 7.1.9 @@ -21,8 +21,6 @@ SET time_zone = "+00:00"; -- -- Base de données : `inscription_corres2math` -- -CREATE DATABASE IF NOT EXISTS `inscription_corres2math` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; -USE `inscription_corres2math`; -- -------------------------------------------------------- @@ -32,7 +30,7 @@ USE `inscription_corres2math`; CREATE TABLE IF NOT EXISTS `config` ( `key` varchar(64) NOT NULL, - `value` varchar(64) NOT NULL, + `value` varchar(8192) NOT NULL, PRIMARY KEY (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; @@ -68,7 +66,7 @@ CREATE TABLE IF NOT EXISTS `questions` ( `answer` varchar(1024) DEFAULT NULL, `attached_file_answer` varchar(64) DEFAULT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- @@ -88,14 +86,14 @@ CREATE TABLE IF NOT EXISTS `teams` ( `participant_4` int(8) DEFAULT NULL, `participant_5` int(8) DEFAULT NULL, `inscription_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `allow_publish` tinyint(1) DEFAULT 0, + `allow_publish` tinyint(1) NOT NULL DEFAULT '0', `validation_status` varchar(64) NOT NULL, `video_team1` int(11) DEFAULT NULL, `video_team2` int(11) DEFAULT NULL, `access_code` varchar(6) NOT NULL, `year` int(4) NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- @@ -110,6 +108,8 @@ CREATE TABLE IF NOT EXISTS `users` ( `surname` varchar(255) NOT NULL, `first_name` varchar(255) NOT NULL, `school` varchar(255) DEFAULT NULL, + `city` varchar(256) DEFAULT NULL, + `country` varchar(256) DEFAULT NULL, `class` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `role` varchar(64) NOT NULL, @@ -120,7 +120,7 @@ CREATE TABLE IF NOT EXISTS `users` ( `forgotten_password` varchar(64) DEFAULT NULL COMMENT 'Jeton de récupération de mot de passe', `inscription_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- @@ -138,9 +138,9 @@ CREATE TABLE IF NOT EXISTS `videos` ( `uploaded_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `year` int(4) NOT NULL, PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; +) ENGINE=InnoDB DEFAULT CHARSET=utf8; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; \ No newline at end of file +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;