Changeset 551 for trunk/admin/Updates.php
- Timestamp:
- Jul 7, 2013, 9:26:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/Updates.php
r550 r551 329 329 } 330 330 331 function UpdateTo551($Manager) 332 { 333 $Manager->Execute('ALTER TABLE `FinanceOperation` ADD `DocumentLine` INT NULL AFTER `Value` , 334 ADD INDEX ( `DocumentLine` ) ;'); 335 $Manager->Execute('ALTER TABLE `FinanceOperation` ADD FOREIGN KEY ( `DocumentLine` ) REFERENCES `DocumentLine` ( 336 `Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;'); 337 $Manager->Execute('ALTER TABLE `FinanceInvoice` ADD `DocumentLine` INT NULL AFTER `Id` , 338 ADD INDEX ( `DocumentLine` ) ;'); 339 $Manager->Execute('ALTER TABLE `FinanceInvoice` ADD FOREIGN KEY ( `DocumentLine` ) REFERENCES `DocumentLine` ( 340 `Id`) ON DELETE RESTRICT ON UPDATE RESTRICT ;'); 341 $Manager->Execute('DROP TABLE `FinanceBillsOld`'); 342 $Manager->Execute('DROP TABLE `FinanceBillsItemsOld`'); 343 } 344 345 331 346 $Updates = array( 332 347 491 => array('Revision' => 493, 'Function' => 'UpdateTo493'), … … 347 362 535 => array('Revision' => 549, 'Function' => 'UpdateTo549'), 348 363 549 => array('Revision' => 550, 'Function' => 'UpdateTo550'), 364 550 => array('Revision' => 551, 'Function' => 'UpdateTo551'), 349 365 );
Note:
See TracChangeset
for help on using the changeset viewer.