From 6e6d9b358d26d80b49f097bdaac8a886a304b60b Mon Sep 17 00:00:00 2001 From: rettenbe Date: Mon, 6 Jul 2009 12:03:27 +0000 Subject: [PATCH] bugfix: schema difference after installations are not considered git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13890 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/DBsqlite.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gosa-si/modules/DBsqlite.pm b/gosa-si/modules/DBsqlite.pm index 3fe6e0599..9f0b12b4a 100644 --- a/gosa-si/modules/DBsqlite.pm +++ b/gosa-si/modules/DBsqlite.pm @@ -163,6 +163,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) { -- 2.30.2