From: Bernd Blessmann Date: Fri, 27 Jul 2012 08:52:35 +0000 (+0200) Subject: Keine Längenbeschränkung für Spalte phone in den Tabellen customer und vendor. X-Git-Tag: release-3.0.0beta1~307^2~2^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5d3143fc42cc8b1f3f003a1c495ba773ecaad593;p=kivitendo-erp.git Keine Längenbeschränkung für Spalte phone in den Tabellen customer und vendor. --- diff --git a/SL/Controller/CsvImport/CustomerVendor.pm b/SL/Controller/CsvImport/CustomerVendor.pm index c0d9ca288..02d84836c 100644 --- a/SL/Controller/CsvImport/CustomerVendor.pm +++ b/SL/Controller/CsvImport/CustomerVendor.pm @@ -182,7 +182,6 @@ sub field_lengths { city => 75, country => 75, contact => 75, - phone => 30, fax => 30, account_number => 15, bank_code => 10, diff --git a/SL/DB/MetaSetup/Customer.pm b/SL/DB/MetaSetup/Customer.pm index 8735268c0..722ff9df6 100644 --- a/SL/DB/MetaSetup/Customer.pm +++ b/SL/DB/MetaSetup/Customer.pm @@ -19,7 +19,7 @@ __PACKAGE__->meta->setup( city => { type => 'varchar', length => 75 }, country => { type => 'varchar', length => 75 }, contact => { type => 'text' }, - phone => { type => 'varchar', length => 30 }, + phone => { type => 'text' }, fax => { type => 'varchar', length => 30 }, homepage => { type => 'text' }, email => { type => 'text' }, diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index 6511ea286..387b2d857 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -19,7 +19,7 @@ __PACKAGE__->meta->setup( city => { type => 'varchar', length => 75 }, country => { type => 'varchar', length => 75 }, contact => { type => 'varchar', length => 75 }, - phone => { type => 'varchar', length => 30 }, + phone => { type => 'text' }, fax => { type => 'varchar', length => 30 }, homepage => { type => 'text' }, email => { type => 'text' }, diff --git a/sql/Pg-upgrade2/customer_vendor_phone_no_limits.sql b/sql/Pg-upgrade2/customer_vendor_phone_no_limits.sql new file mode 100644 index 000000000..30998eacb --- /dev/null +++ b/sql/Pg-upgrade2/customer_vendor_phone_no_limits.sql @@ -0,0 +1,7 @@ +-- @tag: customer_vendor_phone_no_limits +-- @description: Keine Längenbeschränkung für Spalte phone in den Tabellen customer und vendor. +-- @depends: release_2_7_0 +-- @charset: utf-8 + +ALTER TABLE customer ALTER COLUMN phone TYPE text; +ALTER TABLE vendor ALTER COLUMN phone TYPE text; diff --git a/templates/webpages/ct/form_header.html b/templates/webpages/ct/form_header.html index 8263d873d..bdf22dfed 100644 --- a/templates/webpages/ct/form_header.html +++ b/templates/webpages/ct/form_header.html @@ -131,7 +131,7 @@ [% 'Phone' | $T8 %] - +