Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision fa1b9d49

Von Tamino Steinert vor etwa 2 Jahren hinzugefügt

  • ID fa1b9d4958f141e3f9026de40361c0ada63b4267
  • Vorgänger b03da1a4
  • Nachfolger 1f53f425

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