X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=sql%2FPg-upgrade2%2Fwarehouse.pl;h=a9b152f9e8bf2c4c652d817ea2ad0c491591da8c;hb=c696ba272784e16fbac7e3e9a09f2e18eb469217;hp=6efbe145aba4522a82fdced7e58ba46997f05f69;hpb=b7bb932078495375dc4ca1cd1b838f52c99d7df1;p=kivitendo-erp.git diff --git a/sql/Pg-upgrade2/warehouse.pl b/sql/Pg-upgrade2/warehouse.pl index 6efbe145a..a9b152f9e 100644 --- a/sql/Pg-upgrade2/warehouse.pl +++ b/sql/Pg-upgrade2/warehouse.pl @@ -2,9 +2,13 @@ # @description: Diverse neue Tabellen und Spalten zur Mehrlagerfähigkeit inkl. Migration # @depends: release_2_4_3 +use strict; die("This script cannot be run from the command line.") unless ($main::form); +my $do_sql_migration = 0; +my ($check_sql, $sqlcode); + sub mydberror { my ($msg) = @_; die($dbup_locale->text("Database update error:") . @@ -21,7 +25,6 @@ sub do_query { } } -$do_sql_migration = 0; sub print_question { print $main::form->parse_html_template("dbupgrade/warehouse_form"); @@ -46,26 +49,28 @@ sub do_update { my $warehouse = $main::form->{import_warehouse} ne '' ? $main::form->{import_warehouse} : "Transfer"; my $bin = $main::form->{bin_default} ne '' ? $main::form->{bin_default} : "1"; + $warehouse = $dbh->quote($warehouse); + $bin = $dbh->quote($bin); my $migration_code = <