--- db/prgsrc/mkdb.pl 2000/10/17 01:31:27 1.2 +++ db/prgsrc/mkdb.pl 2000/10/19 03:28:47 1.6 @@ -23,7 +23,7 @@ The database, user and password are hard Dmitry Rubinstein -=head1 $Id: mkdb.pl,v 1.2 2000/10/17 01:31:27 boris Exp $ +=head1 $Id: mkdb.pl,v 1.6 2000/10/19 03:28:47 boris Exp $ =cut @@ -67,14 +67,13 @@ print "Connected successfully\n"; KEY ParentIdKey (ParentId), Number TINYINT UNSIGNED NOT NULL, KEY NumberKey (Number), - # Currently there are 2 types of questions: 'Chto? Gde? Kogda?' - # and 'Brain ring'. - Type ENUM('þ','â') NOT NULL, + Type TEXT NOT NULL, Question TEXT, Answer TINYTEXT, Authors TINYTEXT, Sources TINYTEXT, - Comments TEXT + Comments TEXT, + Rating TEXT )") or die "Can't create Questions table: $!\n"; @@ -87,12 +86,13 @@ print "Connected successfully\n"; KEY ParentIdKey (ParentId), Title TINYTEXT NOT NULL, QuestionsNum INT UNSIGNED DEFAULT 0, - Type ENUM('ç','ô','þ'), - MetaId INT UNSIGNED, + Type ENUM('ç','ô','þ'), Copyright TEXT, Info TEXT, URL TINYTEXT, FileName CHAR(25), + Editors TINYTEXT, + EnteredBy TINYTEXT, PlayedAt DATE, CreatedAt DATE NOT NULL )")