From: Moritz Bunkus Date: Wed, 25 Jun 2014 07:32:00 +0000 (+0200) Subject: Spaltentyp Text anstelle von varchar() in diversen Tabellen Teil 3 X-Git-Tag: release-3.2.0beta~411^2~10 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=52e39117f738d3b3a3ff0a9f25c3e08d2225b5fc;p=kivitendo-erp.git Spaltentyp Text anstelle von varchar() in diversen Tabellen Teil 3 --- diff --git a/SL/DB/MetaSetup/Vendor.pm b/SL/DB/MetaSetup/Vendor.pm index 9a113fa7e..8367137a3 100644 --- a/SL/DB/MetaSetup/Vendor.pm +++ b/SL/DB/MetaSetup/Vendor.pm @@ -34,7 +34,7 @@ __PACKAGE__->meta->columns( iban => { type => 'text' }, id => { type => 'integer', not_null => 1, sequence => 'id' }, itime => { type => 'timestamp', default => 'now()' }, - language => { type => 'varchar', length => 5 }, + language => { type => 'text' }, language_id => { type => 'integer' }, mtime => { type => 'timestamp' }, name => { type => 'text', not_null => 1 }, diff --git a/sql/Pg-upgrade2/column_type_text_instead_of_varchar3.sql b/sql/Pg-upgrade2/column_type_text_instead_of_varchar3.sql new file mode 100644 index 000000000..4504dc919 --- /dev/null +++ b/sql/Pg-upgrade2/column_type_text_instead_of_varchar3.sql @@ -0,0 +1,6 @@ +-- @tag: column_type_text_instead_of_varchar3 +-- @description: Spaltentyp Text anstelle von varchar() in diversen Tabellen Teil 3 +-- @depends: column_type_text_instead_of_varchar2 + +-- vendor +ALTER TABLE vendor ALTER COLUMN language TYPE TEXT;