From 5d3143fc42cc8b1f3f003a1c495ba773ecaad593 Mon Sep 17 00:00:00 2001 From: Bernd Blessmann Date: Fri, 27 Jul 2012 10:52:35 +0200 Subject: [PATCH] =?utf8?q?Keine=20L=C3=A4ngenbeschr=C3=A4nkung=20f=C3=BCr?= =?utf8?q?=20Spalte=20phone=20in=20den=20Tabellen=20customer=20und=20vendo?= =?utf8?q?r.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/CsvImport/CustomerVendor.pm | 1 - SL/DB/MetaSetup/Customer.pm | 2 +- SL/DB/MetaSetup/Vendor.pm | 2 +- sql/Pg-upgrade2/customer_vendor_phone_no_limits.sql | 7 +++++++ templates/webpages/ct/form_header.html | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 sql/Pg-upgrade2/customer_vendor_phone_no_limits.sql 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 %] - + -- 2.20.1