Changeset 662 for trunk/Common/Setup/Updates.php
- Timestamp:
- May 31, 2014, 11:53:31 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Updates.php
r661 r662 773 773 } 774 774 775 function UpdateTo662($Manager) 776 { 777 $Manager->Execute('INSERT INTO `Contact` (SELECT NULL AS `Id`, 2 AS `Category`, `ICQ` AS `Value`, NULL AS `Subject`, `Id` AS `User` FROM `User` 778 WHERE (`ICQ` != "") AND (`ICQ` != 0))'); 779 $Manager->Execute('ALTER TABLE `User` DROP `ICQ`;'); 780 $Manager->Execute('INSERT INTO `ActionIcon` (`Id`, `Name`) VALUES (NULL, "Contact.png");'); 781 $IconId = $Manager->Database->insert_id; 782 $Manager->Execute('UPDATE `Action` SET `Icon` = '.$IconId.' WHERE `Title`="Kontakty"'); 783 784 } 785 775 786 class Updates 776 787 { … … 814 825 647 => array('Revision' => 657, 'Function' => 'UpdateTo657'), 815 826 657 => array('Revision' => 661, 'Function' => 'UpdateTo661'), 827 661 => array('Revision' => 662, 'Function' => 'UpdateTo662'), 816 828 )); 817 829 }
Note:
See TracChangeset
for help on using the changeset viewer.