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
commit fbba7a41f7
2 changed files with 5 additions and 5 deletions

View file

@ -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 ;