View | Details | Raw Unified | Return to bug 16354
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_16354.sql (+9 lines)
Line 0 Link Here
1
ALTER TABLE edifact_messages
2
  DROP FOREIGN KEY emfk_vendor,
3
  DROP FOREIGN KEY emfk_edi_acct,
4
  DROP FOREIGN KEY emfk_basketno;
5
6
ALTER TABLE edifact_messages
7
  ADD CONSTRAINT emfk_vendor FOREIGN KEY ( vendor_id ) REFERENCES aqbooksellers ( id ) ON DELETE CASCADE ON UPDATE CASCADE,
8
  ADD CONSTRAINT emfk_edi_acct FOREIGN KEY ( edi_acct ) REFERENCES vendor_edi_accounts ( id ) ON DELETE CASCADE ON UPDATE CASCADE,
9
  ADD CONSTRAINT emfk_basketno FOREIGN KEY ( basketno ) REFERENCES aqbasket ( basketno ) ON DELETE CASCADE ON UPDATE CASCADE;
(-)a/installer/data/mysql/kohastructure.sql (-4 / +3 lines)
Lines 3266-3274 CREATE TABLE IF NOT EXISTS edifact_messages ( Link Here
3266
  KEY vendorid ( vendor_id),
3266
  KEY vendorid ( vendor_id),
3267
  KEY ediacct (edi_acct),
3267
  KEY ediacct (edi_acct),
3268
  KEY basketno ( basketno),
3268
  KEY basketno ( basketno),
3269
  CONSTRAINT emfk_vendor FOREIGN KEY ( vendor_id ) REFERENCES aqbooksellers ( id ),
3269
  CONSTRAINT emfk_vendor FOREIGN KEY ( vendor_id ) REFERENCES aqbooksellers ( id ) ON DELETE CASCADE ON UPDATE CASCADE,
3270
  CONSTRAINT emfk_edi_acct FOREIGN KEY ( edi_acct ) REFERENCES vendor_edi_accounts ( id ),
3270
  CONSTRAINT emfk_edi_acct FOREIGN KEY ( edi_acct ) REFERENCES vendor_edi_accounts ( id ) ON DELETE CASCADE ON UPDATE CASCADE,
3271
  CONSTRAINT emfk_basketno FOREIGN KEY ( basketno ) REFERENCES aqbasket ( basketno )
3271
  CONSTRAINT emfk_basketno FOREIGN KEY ( basketno ) REFERENCES aqbasket ( basketno ) ON DELETE CASCADE ON UPDATE CASCADE
3272
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
3272
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
3273
3273
3274
--
3274
--
3275
- 

Return to bug 16354