]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Keine Längenbeschränkung für Spalte phone in den Tabellen customer und vendor.
authorBernd Blessmann <bibi@online.de>
Fri, 27 Jul 2012 08:52:35 +0000 (10:52 +0200)
committerBernd Blessmann <bibi@online.de>
Fri, 27 Jul 2012 09:01:48 +0000 (11:01 +0200)
SL/Controller/CsvImport/CustomerVendor.pm
SL/DB/MetaSetup/Customer.pm
SL/DB/MetaSetup/Vendor.pm
sql/Pg-upgrade2/customer_vendor_phone_no_limits.sql [new file with mode: 0644]
templates/webpages/ct/form_header.html

index c0d9ca288a4b25f996c2318cbe9becad16498775..02d84836c4b7a96668971f5827d5da708de2bee7 100644 (file)
@@ -182,7 +182,6 @@ sub field_lengths {
            city           => 75,
            country        => 75,
            contact        => 75,
            city           => 75,
            country        => 75,
            contact        => 75,
-           phone          => 30,
            fax            => 30,
            account_number => 15,
            bank_code      => 10,
            fax            => 30,
            account_number => 15,
            bank_code      => 10,
index 8735268c086a8d89e201f70deeeac3aa724a6d97..722ff9df694ecdae3b185757eeed72c4e53ea47b 100644 (file)
@@ -19,7 +19,7 @@ __PACKAGE__->meta->setup(
     city           => { type => 'varchar', length => 75 },
     country        => { type => 'varchar', length => 75 },
     contact        => { type => 'text' },
     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' },
     fax            => { type => 'varchar', length => 30 },
     homepage       => { type => 'text' },
     email          => { type => 'text' },
index 6511ea286d8adc27c74566f9f26d3651a31d45de..387b2d8575c83fa6c108a8666367170b03d2fe07 100644 (file)
@@ -19,7 +19,7 @@ __PACKAGE__->meta->setup(
     city           => { type => 'varchar', length => 75 },
     country        => { type => 'varchar', length => 75 },
     contact        => { type => 'varchar', length => 75 },
     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' },
     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 (file)
index 0000000..30998ea
--- /dev/null
@@ -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;
index 8263d873ddaff938bb304d71947ff5cc72e5bfdf..bdf22dfedd34c4e776de7b5fc2b01ef4a826ff7c 100644 (file)
 
      <tr>
       <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
 
      <tr>
       <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
-      <td><input name="phone" size="30" maxlength="30" value="[% HTML.escape(phone) %]"></td>
+      <td><input name="phone" size="30" value="[% HTML.escape(phone) %]"></td>
      </tr>
 
      <tr>
      </tr>
 
      <tr>