DB schema compatible with newer MySQL version
This commit is contained in:
parent
5ba2f121db
commit
fbba7a41f7
@ -231,5 +231,5 @@ VALUES (
|
||||
|
||||
|
||||
INSERT INTO `exercice_files` (`id`, `id_exercice`, `path`, `name`, `sha1`) VALUES
|
||||
('1', '22', 'theme/exo/file1.txt', 'file1.txt', '38be7d1b981f2fb6a4a0a052453f887373dc1fe8'),
|
||||
('2', '22', 'theme/exo/file2.txt', 'file2.txt', '639daad06642a8eb86821ff7649e86f5f59c6139');
|
||||
('1', '22', 'theme/exo/file1.txt', 'file1.txt', 0x38be7d1b981f2fb6a4a0a052453f887373dc1fe8),
|
||||
('2', '22', 'theme/exo/file2.txt', 'file2.txt', 0x639daad06642a8eb86821ff7649e86f5f59c6139);
|
||||
|
@ -118,7 +118,7 @@ CREATE TABLE IF NOT EXISTS `teams` (
|
||||
`key_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`auth_level` tinyint(1) NOT NULL,
|
||||
`slogan` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`revoked` boolean NOT NULL,
|
||||
`revoked` boolean NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`)
|
||||
) 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,
|
||||
`firstname` 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,
|
||||
`company` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`nickname` varchar(32) COLLATE utf8_unicode_ci NOT NULL UNIQUE DEFAULT "",
|
||||
`company` varchar(32) COLLATE utf8_unicode_ci NOT NULL DEFAULT "",
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE (firstname, lastname)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
|
||||
|
Loading…
Reference in New Issue
Block a user