From: Jan Büren Date: Wed, 18 Jan 2012 19:06:15 +0000 (+0100) Subject: Entfernen der Spalte datevexport in Tabelle vendor und customer. X-Git-Tag: release-2.7.0beta1~17^2~6 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2d193a2e8467c752922bb124c1f9495ee7413b9d;p=kivitendo-erp.git Entfernen der Spalte datevexport in Tabelle vendor und customer. Dieser Status wird beim Datevexport überhaupt nicht berücksichtigt. Entsprechend auch die Funktion setdatevexport und die beiden Trigger customer_datevexport und vendor_datevexport rausgenommen. --- diff --git a/SL/DB/MetaSetup/Customer.pm b/SL/DB/MetaSetup/Customer.pm index 181f6e658..1279c4e9c 100644 --- a/SL/DB/MetaSetup/Customer.pm +++ b/SL/DB/MetaSetup/Customer.pm @@ -37,7 +37,6 @@ __PACKAGE__->meta->setup( bank_code => { type => 'text' }, bank => { type => 'text' }, language => { type => 'varchar', length => 5 }, - datevexport => { type => 'integer' }, itime => { type => 'timestamp', default => 'now()' }, mtime => { type => 'timestamp' }, obsolete => { type => 'boolean', default => 'false' }, @@ -51,9 +50,9 @@ __PACKAGE__->meta->setup( taxzone_id => { type => 'integer', default => '0', not_null => 1 }, greeting => { type => 'text' }, ustid => { type => 'text' }, - direct_debit => { type => 'boolean', default => 'false' }, iban => { type => 'varchar', length => 100 }, bic => { type => 'varchar', length => 100 }, + direct_debit => { type => 'boolean', default => 'false' }, curr => { type => 'character', length => 3 }, ], diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index 2fc47cc18..e32563f3b 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -38,7 +38,6 @@ __PACKAGE__->meta->setup( bank_code => { type => 'varchar', length => 10 }, bank => { type => 'text' }, language => { type => 'varchar', length => 5 }, - datevexport => { type => 'integer' }, itime => { type => 'timestamp', default => 'now()' }, mtime => { type => 'timestamp' }, obsolete => { type => 'boolean', default => 'false' }, @@ -51,16 +50,14 @@ __PACKAGE__->meta->setup( taxzone_id => { type => 'integer', default => '0', not_null => 1 }, greeting => { type => 'text' }, ustid => { type => 'varchar', length => 14 }, - direct_debit => { type => 'boolean', default => 'false' }, iban => { type => 'varchar', length => 100 }, bic => { type => 'varchar', length => 100 }, + direct_debit => { type => 'boolean', default => 'false' }, curr => { type => 'character', length => 3 }, ], primary_key_columns => [ 'id' ], - allow_inline_column_values => 1, - foreign_keys => [ business => { class => 'SL::DB::Business', diff --git a/sql/Pg-upgrade2/drop_datevexport.sql b/sql/Pg-upgrade2/drop_datevexport.sql new file mode 100644 index 000000000..c33a4ce2b --- /dev/null +++ b/sql/Pg-upgrade2/drop_datevexport.sql @@ -0,0 +1,9 @@ +-- @tag: drop_datevexport +-- @description: Entfernen der Spalte datevexport in Tabelle chart, vendor und customer. Dieser Status wird beim Datevexport überhaupt nicht berücksichtigt. +-- @charset: utf-8 +-- @depends: release_2_6_3 +ALTER TABLE vendor DROP COLUMN datevexport; +ALTER TABLE customer DROP COLUMN datevexport; +DROP TRIGGER vendor_datevexport on vendor; +DROP TRIGGER customer_datevexport on customer; +DROP FUNCTION set_datevexport();