From: Moritz Bunkus Date: Wed, 25 Jun 2014 07:01:13 +0000 (+0200) Subject: Spaltentyp Text anstelle von varchar() in diversen Tabellen Teil 2 X-Git-Tag: release-3.2.0beta~411^2~12 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b50f89e56d91662eb69a47351c430ff6270c7d39;p=kivitendo-erp.git Spaltentyp Text anstelle von varchar() in diversen Tabellen Teil 2 Tabelle »shipto« --- diff --git a/SL/DB/MetaSetup/Shipto.pm b/SL/DB/MetaSetup/Shipto.pm index bb3a9bcd7..b0a9f991b 100644 --- a/SL/DB/MetaSetup/Shipto.pm +++ b/SL/DB/MetaSetup/Shipto.pm @@ -13,18 +13,18 @@ __PACKAGE__->meta->columns( module => { type => 'text' }, mtime => { type => 'timestamp' }, shipto_id => { type => 'integer', not_null => 1, sequence => 'id' }, - shiptocity => { type => 'varchar', length => 75 }, - shiptocontact => { type => 'varchar', length => 75 }, - shiptocountry => { type => 'varchar', length => 75 }, + shiptocity => { type => 'text' }, + shiptocontact => { type => 'text' }, + shiptocountry => { type => 'text' }, shiptocp_gender => { type => 'text' }, - shiptodepartment_1 => { type => 'varchar', length => 75 }, - shiptodepartment_2 => { type => 'varchar', length => 75 }, + shiptodepartment_1 => { type => 'text' }, + shiptodepartment_2 => { type => 'text' }, shiptoemail => { type => 'text' }, - shiptofax => { type => 'varchar', length => 30 }, - shiptoname => { type => 'varchar', length => 75 }, - shiptophone => { type => 'varchar', length => 30 }, - shiptostreet => { type => 'varchar', length => 75 }, - shiptozipcode => { type => 'varchar', length => 75 }, + shiptofax => { type => 'text' }, + shiptoname => { type => 'text' }, + shiptophone => { type => 'text' }, + shiptostreet => { type => 'text' }, + shiptozipcode => { type => 'text' }, trans_id => { type => 'integer' }, ); diff --git a/sql/Pg-upgrade2/column_type_text_instead_of_varchar2.sql b/sql/Pg-upgrade2/column_type_text_instead_of_varchar2.sql new file mode 100644 index 000000000..20c3589ac --- /dev/null +++ b/sql/Pg-upgrade2/column_type_text_instead_of_varchar2.sql @@ -0,0 +1,17 @@ +-- @tag: column_type_text_instead_of_varchar2 +-- @description: Spaltentyp auf Text anstelle von varchar() für diverse Spalten Teil 2 +-- @depends: column_type_text_instead_of_varchar + +-- shipto +ALTER TABLE shipto + ALTER COLUMN shiptocity TYPE TEXT + , ALTER COLUMN shiptocontact TYPE TEXT + , ALTER COLUMN shiptocountry TYPE TEXT + , ALTER COLUMN shiptodepartment_1 TYPE TEXT + , ALTER COLUMN shiptodepartment_2 TYPE TEXT + , ALTER COLUMN shiptofax TYPE TEXT + , ALTER COLUMN shiptoname TYPE TEXT + , ALTER COLUMN shiptophone TYPE TEXT + , ALTER COLUMN shiptostreet TYPE TEXT + , ALTER COLUMN shiptozipcode TYPE TEXT + ;