Code

Removed dropping of tables.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 07:19:58 +0000 (07:19 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 07:19:58 +0000 (07:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10488 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/DBsqlite.pm

index 09ef7404a2d0bf52ed7a4ddcdbc947cba4d86e98..bf6a63ac5dfbb6cc3d1c44d5e6f7eaaaf9c2a210 100644 (file)
@@ -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;
 }