Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ea5ff1b9

Von Tamino Steinert vor fast 2 Jahren hinzugefügt

  • ID ea5ff1b91b61da98b508946ccc00a13ad8441dfd
  • Vorgänger 65b5a66d
  • Nachfolger 0c1f1697

DB::Reclamation: Persistenter Record-Type

Unterschiede anzeigen:

SL/DB/MetaSetup/Reclamation.pm
notes => { type => 'text' },
payment_id => { type => 'integer' },
record_number => { type => 'text', not_null => 1 },
record_type => { type => 'text', not_null => 1 },
reqdate => { type => 'date' },
salesman_id => { type => 'integer' },
shippingpoint => { type => 'text' },
sql/Pg-upgrade2/reclamation_type.sql
-- @tag: reclamation_type
-- @description: Persistente Typen in Reklamationen
-- @depends: release_3_7_0
ALTER TABLE reclamations ADD COLUMN record_type TEXT;
UPDATE reclamations SET record_type = 'sales_reclamaiton' WHERE customer_id IS NOT NULL;
UPDATE reclamations SET record_type = 'purchase_reclamation' WHERE vendor_id IS NOT NULL;
ALTER TABLE reclamations ALTER COLUMN record_type SET NOT NULL;

Auch abrufbar als: Unified diff