Changeset 741 for trunk/Common/Setup/Updates.php
- Timestamp:
- Jul 5, 2015, 6:24:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Updates.php
r740 r741 1355 1355 `Domain` int(11) NOT NULL, 1356 1356 `Sequence` int(11) NOT NULL, 1357 PRIMARY KEY (`Id`) 1357 1358 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;'); 1358 1359 1359 $Manager->Execute('ALTER TABLE `NetworkDomainServer` 1360 ADD PRIMARY KEY (`Id`), ADD KEY `Domain` (`Domain`);'); 1360 $Manager->Execute('ALTER TABLE `NetworkDomainServer` ADD KEY `Domain` (`Domain`);'); 1361 1361 1362 1362 $Manager->Execute('ALTER TABLE `NetworkDomainServer` … … 1421 1421 $Manager->Execute('ALTER TABLE `FinanceInvoice` CHANGE `Direction` `ValueSign` INT(11) NOT NULL;'); 1422 1422 $Manager->Execute('ALTER TABLE `FinanceOperation` CHANGE `Direction` `ValueSign` INT(11) NOT NULL;'); 1423 } 1424 1425 function UpdateTo741($Manager) 1426 { 1427 // Add Direction column 1428 $Manager->Execute('ALTER TABLE `FinanceOperationGroup` ADD `Direction` INT NOT NULL ;'); 1429 $Manager->Execute('UPDATE `FinanceOperationGroup` SET `Direction` = 1 WHERE ValueSign=-1'); 1430 $Manager->Execute('ALTER TABLE `FinanceOperation` ADD `Direction` INT NOT NULL AFTER `Cash`;'); 1431 $Manager->Execute('UPDATE `FinanceOperation` SET `Direction` = 1 WHERE ValueSign=-1'); 1432 $Manager->Execute('ALTER TABLE `FinanceInvoiceGroup` ADD `Direction` INT NOT NULL ;'); 1433 $Manager->Execute('UPDATE `FinanceInvoiceGroup` SET `Direction` = 1 WHERE ValueSign=1'); 1434 $Manager->Execute('ALTER TABLE `FinanceInvoice` ADD `Direction` INT NOT NULL AFTER `TimePayment`;'); 1435 $Manager->Execute('UPDATE `FinanceInvoice` SET `Direction` = 1 WHERE ValueSign=1'); 1423 1436 } 1424 1437 … … 1490 1503 735 => array('Revision' => 736, 'Function' => 'UpdateTo736'), 1491 1504 736 => array('Revision' => 739, 'Function' => 'UpdateTo739'), 1505 739 => array('Revision' => 740, 'Function' => 'UpdateTo740'), 1506 740 => array('Revision' => 741, 'Function' => 'UpdateTo741'), 1492 1507 )); 1493 1508 }
Note:
See TracChangeset
for help on using the changeset viewer.