Changeset 632 for trunk/Common/Setup/Updates.php
- Timestamp:
- Jan 3, 2014, 5:55:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Updates.php
r627 r632 542 542 } 543 543 544 function UpdateTo632($Manager) 545 { 546 $Manager->Execute('CREATE TABLE IF NOT EXISTS `FinanceInvoiceOperationRel` ( 547 `Id` int(11) NOT NULL AUTO_INCREMENT, 548 `Invoice` int(11) NOT NULL, 549 `Operation` int(11) NOT NULL, 550 PRIMARY KEY (`Id`), 551 KEY `Invoice` (`Invoice`), 552 KEY `Operation` (`Operation`) 553 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;'); 554 $Manager->Execute('ALTER TABLE `FinanceInvoiceOperationRel` 555 ADD CONSTRAINT `FinanceInvoiceOperationRel_ibfk_2` FOREIGN KEY (`Operation`) REFERENCES `FinanceOperation` (`Id`), 556 ADD CONSTRAINT `FinanceInvoiceOperationRel_ibfk_1` FOREIGN KEY (`Invoice`) REFERENCES `FinanceInvoice` (`Id`);'); 557 } 558 544 559 class Updates 545 560 { … … 576 591 619 => array('Revision' => 620, 'Function' => 'UpdateTo620'), 577 592 620 => array('Revision' => 627, 'Function' => 'UpdateTo627'), 593 627 => array('Revision' => 632, 'Function' => 'UpdateTo632'), 578 594 )); 579 595 }
Note:
See TracChangeset
for help on using the changeset viewer.