From 7e0075f0c68b17bd56304d911451f6be914de647 Mon Sep 17 00:00:00 2001 From: timriker Date: Sat, 29 May 2004 06:51:57 +0000 Subject: [PATCH] create database not needed for SQLite git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@940 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/dbi.pl | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/dbi.pl b/src/dbi.pl index 6761b23..36f92a1 100644 --- a/src/dbi.pl +++ b/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; -- 2.39.2