3 -- Depending on how your edi_message table was created, one of the constraints
4 -- may be wrong. The following will fix it if it's wrong, and have no effect
7 INSERT INTO config.upgrade_log (version) VALUES ('0266'); -- Scott McKellar
9 ALTER TABLE acq.edi_message
10 DROP CONSTRAINT valid_message_type;
12 ALTER TABLE acq.edi_message
13 ADD CONSTRAINT valid_message_type CHECK