From: Moritz Bunkus Date: Thu, 13 Jun 2013 10:06:30 +0000 (+0200) Subject: Mandanten-Spalten in Mandanten-DBs erzeugen, die nicht zum Umstellungszeitpunkt konfi... X-Git-Tag: release-3.1.0beta1~331^2~21 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e9c2de7f8b54ba0dc7b8aafba99a7de66d71ceef;p=kivitendo-erp.git Mandanten-Spalten in Mandanten-DBs erzeugen, die nicht zum Umstellungszeitpunkt konfiguriert war --- diff --git a/sql/Pg-upgrade2/clients.pl b/sql/Pg-upgrade2/clients.pl new file mode 100644 index 000000000..744909dcc --- /dev/null +++ b/sql/Pg-upgrade2/clients.pl @@ -0,0 +1,29 @@ +# @tag: clients +# @description: Mandanten +# @depends: release_3_0_0 +package SL::DBUpgrade2::clients; + +use strict; +use utf8; + +use parent qw(SL::DBUpgrade2::Base); + +sub run { + my ($self) = @_; + + my @queries = ( + qq|ALTER TABLE defaults ADD COLUMN company TEXT|, + qq|ALTER TABLE defaults ADD COLUMN address TEXT|, + qq|ALTER TABLE defaults ADD COLUMN taxnumber TEXT|, + qq|ALTER TABLE defaults ADD COLUMN co_ustid TEXT|, + qq|ALTER TABLE defaults ADD COLUMN duns TEXT|, + qq|ALTER TABLE defaults ADD COLUMN sepa_creditor_id TEXT|, + qq|ALTER TABLE defaults ADD COLUMN templates TEXT|, + ); + + $self->db_query($_) for @queries; + + return 1; +} + +1;