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 3223-3231 CREATE TABLE IF NOT EXISTS edifact_messages ( Link Here
3223
  KEY vendorid ( vendor_id),
3223
  KEY vendorid ( vendor_id),
3224
  KEY ediacct (edi_acct),
3224
  KEY ediacct (edi_acct),
3225
  KEY basketno ( basketno),
3225
  KEY basketno ( basketno),
3226
  CONSTRAINT emfk_vendor FOREIGN KEY ( vendor_id ) REFERENCES aqbooksellers ( id ),
3226
  CONSTRAINT emfk_vendor FOREIGN KEY ( vendor_id ) REFERENCES aqbooksellers ( id ) ON DELETE CASCADE ON UPDATE CASCADE,
3227
  CONSTRAINT emfk_edi_acct FOREIGN KEY ( edi_acct ) REFERENCES vendor_edi_accounts ( id ),
3227
  CONSTRAINT emfk_edi_acct FOREIGN KEY ( edi_acct ) REFERENCES vendor_edi_accounts ( id ) ON DELETE CASCADE ON UPDATE CASCADE,
3228
  CONSTRAINT emfk_basketno FOREIGN KEY ( basketno ) REFERENCES aqbasket ( basketno )
3228
  CONSTRAINT emfk_basketno FOREIGN KEY ( basketno ) REFERENCES aqbasket ( basketno ) ON DELETE CASCADE ON UPDATE CASCADE
3229
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
3229
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
3230
3230
3231
--
3231
--
3232
- 

Return to bug 16354