From e9c6d4ba4909ae0aa46c8654835ec6843934ee57 Mon Sep 17 00:00:00 2001 From: janw Date: Wed, 16 Apr 2008 07:19:58 +0000 Subject: [PATCH] Removed dropping of tables. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10488 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/DBsqlite.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gosa-si/modules/DBsqlite.pm b/gosa-si/modules/DBsqlite.pm index 09ef7404a..bf6a63ac5 100644 --- a/gosa-si/modules/DBsqlite.pm +++ b/gosa-si/modules/DBsqlite.pm @@ -44,8 +44,7 @@ sub create_table { $col_names->{ $table_name } = $col_names_ref; my $col_names_string = join("', '", @col_names); - my $sql_statement = "CREATE TABLE $table_name ( '$col_names_string' )"; - $self->{dbh}->do("DROP TABLE IF EXISTS $table_name"); + my $sql_statement = "CREATE TABLE IF NOT EXISTS $table_name ( '$col_names_string' )"; $self->{dbh}->do($sql_statement); return 0; } -- 2.30.2