Code

Updated acl listUpdated acl list
[gosa.git] / gosa-si / modules / DBsqlite.pm
index 3fe6e059929be55806cf10e438a4c02e5fbea804..985963da4a01e994e99d87dd0a858d8eef26fd9a 100644 (file)
@@ -2,6 +2,7 @@ package GOSA::DBsqlite;
 
 use strict;
 use warnings;
+
 use Carp;
 use DBI;
 use GOSA::GosaSupportDaemon;
@@ -163,6 +164,14 @@ sub check_schema {
        my $res = $self->exec_statement($sql);   # [ ['0', 'id', 'INTEGER', '0', undef, '1' ], ['1', 'timestamp', 'VARCHAR(14)', '0', '\'none\'', '0'], ... ]
        my $db_table_length = @$res;
 
+       # Tabel does not exists, so no differences
+       if ($db_table_length == 0)
+       {
+               return 0;
+       }
+
+
+
        # The number of columns is diffrent
        if ($col_names_length != $db_table_length) 
        {