Spaltentyp Text anstelle von varchar() in diversen Tabellen Teil 3
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 25 Jun 2014 07:32:00 +0000 (09:32 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 25 Jun 2014 07:32:00 +0000 (09:32 +0200)
SL/DB/MetaSetup/Vendor.pm
sql/Pg-upgrade2/column_type_text_instead_of_varchar3.sql [new file with mode: 0644]

index 9a113fa..8367137 100644 (file)
@@ -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 (file)
index 0000000..4504dc9
--- /dev/null
@@ -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;