X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=sql%2FPg-upgrade2%2Fglobalprojectnumber_ap_ar_oe.pl;h=608e44207a625aa2cc04a7e91e7588b2fd24c06a;hb=3a7d0b6be7c5b679e8b2a00d326998a39c6e0529;hp=a9de59f1d2a1a201c9b5397b747b8544eef33418;hpb=1e2a4a3836d317a33166b34f514ca6863e4824c1;p=kivitendo-erp.git
diff --git a/sql/Pg-upgrade2/globalprojectnumber_ap_ar_oe.pl b/sql/Pg-upgrade2/globalprojectnumber_ap_ar_oe.pl
index a9de59f1d..608e44207 100644
--- a/sql/Pg-upgrade2/globalprojectnumber_ap_ar_oe.pl
+++ b/sql/Pg-upgrade2/globalprojectnumber_ap_ar_oe.pl
@@ -2,8 +2,16 @@
# @description: Neue Spalte für eine globale Projektnummer in Einkaufs- und Verkaufsbelegen
# @depends: release_2_4_1
+use strict;
+
die("This script cannot be run from the command line.") unless ($main::form);
+sub mydberror {
+ my ($msg) = @_;
+ die($dbup_locale->text("Database update error:") .
+ "
$msg
" . $DBI::errstr);
+}
+
sub do_query {
my ($query, $may_fail) = @_;