--- db/prgsrc/mkdb.pl 2000/10/17 01:31:27 1.2 +++ db/prgsrc/mkdb.pl 2000/10/23 01:00:20 1.7 @@ -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.7 2000/10/23 01:00:20 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 + Answer TEXT, + Authors TEXT, + Sources 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 TEXT, + EnteredBy TEXT, PlayedAt DATE, CreatedAt DATE NOT NULL )")