From: Moritz Bunkus Date: Wed, 11 Mar 2020 11:43:52 +0000 (+0100) Subject: ZUGFeRD: Bankkonten: Standardwert »use_for_zugferd« auf FALSE gesetzt X-Git-Tag: release-3.5.6.1~245^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9dbe6a5cc3980073abd4988f99e3471297cd0f35;p=kivitendo-erp.git ZUGFeRD: Bankkonten: Standardwert »use_for_zugferd« auf FALSE gesetzt --- diff --git a/SL/DB/MetaSetup/BankAccount.pm b/SL/DB/MetaSetup/BankAccount.pm index cd3ffce45..5589ee43d 100644 --- a/SL/DB/MetaSetup/BankAccount.pm +++ b/SL/DB/MetaSetup/BankAccount.pm @@ -21,7 +21,7 @@ __PACKAGE__->meta->columns( reconciliation_starting_balance => { type => 'numeric', precision => 15, scale => 5 }, reconciliation_starting_date => { type => 'date' }, sortkey => { type => 'integer', not_null => 1 }, - use_for_zugferd => { type => 'boolean', not_null => 1 }, + use_for_zugferd => { type => 'boolean', default => 'false', not_null => 1 }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); diff --git a/sql/Pg-upgrade2/bank_account_flag_for_zugferd_usage.sql b/sql/Pg-upgrade2/bank_account_flag_for_zugferd_usage.sql index d62d7ee1c..793575471 100644 --- a/sql/Pg-upgrade2/bank_account_flag_for_zugferd_usage.sql +++ b/sql/Pg-upgrade2/bank_account_flag_for_zugferd_usage.sql @@ -11,4 +11,5 @@ SET use_for_zugferd = ( ) = 1; ALTER TABLE bank_accounts +ALTER COLUMN use_for_zugferd SET DEFAULT FALSE, ALTER COLUMN use_for_zugferd SET NOT NULL;