--- db/prgsrc/mkdb.pl 2002/01/07 01:31:00 1.13 +++ db/prgsrc/mkdb.pl 2004/08/28 23:47:41 1.16 @@ -23,7 +23,7 @@ The database, user and password are hard Dmitry Rubinstein -=head1 $Id: mkdb.pl,v 1.13 2002/01/07 01:31:00 boris Exp $ +=head1 $Id: mkdb.pl,v 1.16 2004/08/28 23:47:41 roma7 Exp $ =cut @@ -37,7 +37,7 @@ sub CheckTable my ($TabName) = @_; my ($ans); - if (scalar(grep(/^$TabName$/, @tbl_list))) { + if (scalar(grep(/^$TabName$/i, @tbl_list))) { print "Table $TabName exists. Do you want to delete it? "; $ans = ; if ($ans =~ /[yY]/) { @@ -67,10 +67,11 @@ print "Connected successfully\n"; KEY ParentIdKey (ParentId), Number SMALLINT UNSIGNED NOT NULL, KEY NumberKey (Number), - Type CHAR(5), + Type CHAR(5) NOT NULL DEFAULT 'þ', KEY TypeKey (Type), Question TEXT, Answer TEXT, + PassCriteria TEXT, Authors TEXT, Sources TEXT, Comments TEXT,