From: timriker Date: Sat, 29 May 2004 06:51:57 +0000 (+0000) Subject: create database not needed for SQLite X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=63918f55e28fb8a28e4342b2e8535827ceba08fa;p=infobot.git create database not needed for SQLite git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@940 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/dbi.pl b/blootbot/src/dbi.pl index 6761b23..36f92a1 100644 --- a/blootbot/src/dbi.pl +++ b/blootbot/src/dbi.pl @@ -636,15 +636,10 @@ sub checkTables { $db{$_} = 1; } - # create database. - if (!scalar keys %db) { - &status("Creating database $param{'DBName'}..."); - my $query = "CREATE DATABASE $param{'DBName'}"; - &sqlRaw("create(db $param{'DBName'})", $query); - } + # create database not needed for SQLite } - foreach ( qw(factoids rootwarn seen stats botmail) ) { + foreach ( qw(botmail factoids rootwarn seen stats) ) { if (exists $db{$_}) { $cache{has_table}{$_} = 1; next;