New DB revision

This commit is contained in:
Némunaire 2013-10-09 20:27:45 +02:00
parent 3d3af016e5
commit aaa5797313

View File

@ -2,29 +2,27 @@
-- version 3.5.1 -- version 3.5.1
-- http://www.phpmyadmin.net -- http://www.phpmyadmin.net
-- --
-- Host: localhost -- Client: localhost
-- Generation Time: Oct 09, 2013 at 03:38 PM -- Généré le: Mer 09 Octobre 2013 à 18:26
-- Server version: 5.5.32-log -- Version du serveur: 5.5.32-log
-- PHP Version: 5.4.9--pl0-gentoo -- Version de PHP: 5.5.0-pl0-gentoo
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00"; SET time_zone = "+00:00";
-- --
-- Database: `fic2014` -- Base de données: `fic2014`
-- --
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Table structure for table `exercices` -- Structure de la table `exercices`
-- --
CREATE TABLE IF NOT EXISTS `exercices` ( CREATE TABLE IF NOT EXISTS `exercices` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_theme` int(10) unsigned NOT NULL, `id_theme` int(10) unsigned NOT NULL,
`name` varchar(255) COLLATE utf16_unicode_ci NOT NULL,
`difficulty` tinyint(3) unsigned NOT NULL,
`points` smallint(6) NOT NULL, `points` smallint(6) NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_ci AUTO_INCREMENT=1 ; ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_ci AUTO_INCREMENT=1 ;
@ -32,7 +30,7 @@ CREATE TABLE IF NOT EXISTS `exercices` (
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Table structure for table `exercice_dependancies` -- Structure de la table `exercice_dependancies`
-- --
CREATE TABLE IF NOT EXISTS `exercice_dependancies` ( CREATE TABLE IF NOT EXISTS `exercice_dependancies` (
@ -40,12 +38,12 @@ CREATE TABLE IF NOT EXISTS `exercice_dependancies` (
`id_exercice` int(10) unsigned NOT NULL, `id_exercice` int(10) unsigned NOT NULL,
`id_dependence` int(10) unsigned NOT NULL, `id_dependence` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_ci AUTO_INCREMENT=1 ;
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Table structure for table `sessions` -- Structure de la table `sessions`
-- --
CREATE TABLE IF NOT EXISTS `sessions` ( CREATE TABLE IF NOT EXISTS `sessions` (
@ -53,16 +51,16 @@ CREATE TABLE IF NOT EXISTS `sessions` (
`uid` binary(16) NOT NULL, `uid` binary(16) NOT NULL,
`time` int(11) NOT NULL, `time` int(11) NOT NULL,
`ip` varbinary(16) NOT NULL, `ip` varbinary(16) NOT NULL,
`var` varchar(9999) COLLATE utf8_unicode_ci NOT NULL, `var` varchar(9999) COLLATE utf16_unicode_ci NOT NULL,
`level` tinyint(2) NOT NULL, `level` tinyint(2) NOT NULL,
`active` enum('1','0') COLLATE utf8_unicode_ci NOT NULL, `active` enum('1','0') COLLATE utf16_unicode_ci NOT NULL,
PRIMARY KEY (`session`) PRIMARY KEY (`session`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; ) ENGINE=MEMORY DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_ci;
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Table structure for table `solved` -- Structure de la table `solved`
-- --
CREATE TABLE IF NOT EXISTS `solved` ( CREATE TABLE IF NOT EXISTS `solved` (
@ -76,19 +74,19 @@ CREATE TABLE IF NOT EXISTS `solved` (
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Table structure for table `themes` -- Structure de la table `themes`
-- --
CREATE TABLE IF NOT EXISTS `themes` ( CREATE TABLE IF NOT EXISTS `themes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf16_unicode_ci NOT NULL, `filename` varchar(255) COLLATE utf16_unicode_ci NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_ci AUTO_INCREMENT=1 ; ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_ci AUTO_INCREMENT=1 ;
-- -------------------------------------------------------- -- --------------------------------------------------------
-- --
-- Table structure for table `users` -- Structure de la table `users`
-- --
CREATE TABLE IF NOT EXISTS `users` ( CREATE TABLE IF NOT EXISTS `users` (
@ -96,5 +94,8 @@ CREATE TABLE IF NOT EXISTS `users` (
`username` varchar(255) COLLATE utf16_unicode_ci NOT NULL, `username` varchar(255) COLLATE utf16_unicode_ci NOT NULL,
`password` binary(64) NOT NULL, `password` binary(64) NOT NULL,
`auth_level` tinyint(1) NOT NULL, `auth_level` tinyint(1) NOT NULL,
`firstname` varchar(255) COLLATE utf16_unicode_ci NOT NULL,
`lastname` varchar(255) COLLATE utf16_unicode_ci NOT NULL,
`company` varchar(255) COLLATE utf16_unicode_ci NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_ci AUTO_INCREMENT=1 ; ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_unicode_ci AUTO_INCREMENT=1 ;