diff --git a/servatrice/servatrice.sql b/servatrice/servatrice.sql index dc2b48c3..6e83f1f2 100644 --- a/servatrice/servatrice.sql +++ b/servatrice/servatrice.sql @@ -115,9 +115,11 @@ CREATE TABLE IF NOT EXISTS `cockatrice_users` ( `avatar_bmp` blob NOT NULL, `registrationDate` datetime NOT NULL, `active` tinyint(1) NOT NULL, - `token` char(32) NOT NULL, + `token` binary(16) NOT NULL, PRIMARY KEY (`id`), - UNIQUE KEY `name` (`name`) + UNIQUE KEY `name` (`name`), + KEY `token` (`token`), + KEY `email` (`email`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; CREATE TABLE `cockatrice_uptime` (