DB schema compatible with newer MySQL version

This commit is contained in:
Némunaire 2015-01-14 08:41:45 +01:00 committed by Nemunaire
parent 5ba2f121db
commit fbba7a41f7
2 changed files with 5 additions and 5 deletions

View File

@ -231,5 +231,5 @@ VALUES (
INSERT INTO `exercice_files` (`id`, `id_exercice`, `path`, `name`, `sha1`) VALUES INSERT INTO `exercice_files` (`id`, `id_exercice`, `path`, `name`, `sha1`) VALUES
('1', '22', 'theme/exo/file1.txt', 'file1.txt', '38be7d1b981f2fb6a4a0a052453f887373dc1fe8'), ('1', '22', 'theme/exo/file1.txt', 'file1.txt', 0x38be7d1b981f2fb6a4a0a052453f887373dc1fe8),
('2', '22', 'theme/exo/file2.txt', 'file2.txt', '639daad06642a8eb86821ff7649e86f5f59c6139'); ('2', '22', 'theme/exo/file2.txt', 'file2.txt', 0x639daad06642a8eb86821ff7649e86f5f59c6139);

View File

@ -118,7 +118,7 @@ CREATE TABLE IF NOT EXISTS `teams` (
`key_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `key_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`auth_level` tinyint(1) NOT NULL, `auth_level` tinyint(1) NOT NULL,
`slogan` varchar(64) COLLATE utf8_unicode_ci NOT NULL, `slogan` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`revoked` boolean NOT NULL, `revoked` boolean NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
@ -133,8 +133,8 @@ CREATE TABLE IF NOT EXISTS `team_members` (
`id_team` int(10) unsigned NOT NULL, `id_team` int(10) unsigned NOT NULL,
`firstname` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `firstname` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`lastname` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `lastname` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`nickname` varchar(32) COLLATE utf8_unicode_ci NOT NULL UNIQUE, `nickname` varchar(32) COLLATE utf8_unicode_ci NOT NULL UNIQUE DEFAULT "",
`company` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `company` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT "",
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE (firstname, lastname) UNIQUE (firstname, lastname)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;