X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=create_database.sql;h=795dfe110000964b4c92d4fa545e2bdc7a6482ef;hp=71a6dfc2650c39a64232a26c781cd90f4d648393;hb=e2db7fab7569c20afa4f7915edb70842ae1aed8e;hpb=850378a3e2da48d387dc565cc6e3c2b47f12e34d diff --git a/create_database.sql b/create_database.sql index 71a6dfc..795dfe1 100644 --- a/create_database.sql +++ b/create_database.sql @@ -1,4 +1,4 @@ -/* Copyright 2006, 2007, 2008, 2009, 2010 Arun Persaud +/* Copyright 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Arun Persaud * * This file is part of e-DoKo. * @@ -38,7 +38,7 @@ DROP TABLE IF EXISTS `Version`; CREATE TABLE `Version` ( - `version` int NOT NULL default '0' + `version` int NOT NULL default '5' ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- @@ -88,6 +88,7 @@ CREATE TABLE `Comment` ( `id` int(11) NOT NULL auto_increment, `user_id` int(11) default NULL, `play_id` int(11) default NULL, + `game_id` int(11) default NULL, `comment` text, UNIQUE KEY `id` (`id`), KEY `play_id` (`play_id`) @@ -359,7 +360,7 @@ CREATE TABLE `User` ( `id` int(11) NOT NULL auto_increment, `fullname` varchar(64) default NULL, `email` varchar(64) default NULL, - `password` varchar(32) default NULL, + `password` varchar(62) default NULL, `timezone` varchar(64) default 'Europe/London', `last_login` timestamp NOT NULL default '0000-00-00 00:00:00', `create_date` timestamp NOT NULL default '0000-00-00 00:00:00', @@ -491,6 +492,8 @@ create table digest_email ( `id` int(11) NOT NULL auto_increment, `email` varchar(255) default null, `create_date` timestamp NOT NULL default '0000-00-00 00:00:00', + `type` enum('misc','your_turn') NOT NULL default 'misc', + `game_id` int(11) default NULL, `content` text, UNIQUE KEY `id` (`id`), index (email)