]> wagnertech.de Git - kivitendo-erp.git/blob - sql/Pg-upgrade2/customer_vendor_ustid_length.sql
locale/en/locales.pl ausgef<FC>hrt.
[kivitendo-erp.git] / sql / Pg-upgrade2 / customer_vendor_ustid_length.sql
1 -- @tag: customer_vendor_ustid_length
2 -- @description: Setzt das Feld &quot;ustid&quot; in den Tabellen &quot;customer&quot; und &quot;vendor&quot; auf 14 Zeichen: zwei Zeichen L&auml;nderk&uuml;rzel und bis zu zw&ouml;lf Zeichen f&uuml;r die Nummer.
3 -- @depends:
4 ALTER TABLE customer ADD COLUMN tmp varchar(14);
5 UPDATE customer SET tmp = ustid;
6 ALTER TABLE customer DROP COLUMN ustid;
7 ALTER TABLE customer RENAME tmp TO ustid;
8
9 ALTER TABLE vendor ADD COLUMN tmp varchar(14);
10 UPDATE vendor SET tmp = ustid;
11 ALTER TABLE vendor DROP COLUMN ustid;
12 ALTER TABLE vendor RENAME tmp TO ustid;