--- db/prgsrc/mkdb.pl 2001/12/25 04:05:46 1.12 +++ db/prgsrc/mkdb.pl 2003/01/08 21:54:49 1.15 @@ -23,7 +23,7 @@ The database, user and password are hard Dmitry Rubinstein -=head1 $Id: mkdb.pl,v 1.12 2001/12/25 04:05:46 roma7 Exp $ +=head1 $Id: mkdb.pl,v 1.15 2003/01/08 21:54:49 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,7 +67,7 @@ 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, @@ -75,6 +75,7 @@ print "Connected successfully\n"; Sources TEXT, Comments TEXT, Rating TEXT, + Topic TEXT, ProcessedBySearch INT )") or die "Can't create Questions table: $!\n";