From: janw Date: Wed, 16 Apr 2008 07:19:58 +0000 (+0000) Subject: Removed dropping of tables. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e9c6d4ba4909ae0aa46c8654835ec6843934ee57;p=gosa.git Removed dropping of tables. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10488 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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; }