Ignore:
Timestamp:
May 31, 2014, 11:53:31 PM (10 years ago)
Author:
chronos
Message:
  • Upraveno: ICQ kontakty převedeny z tabulky uživatelů do tabulky Kontakty.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Setup/Updates.php

    r661 r662  
    773773}
    774774
     775function 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`
     778WHERE (`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
    775786class Updates
    776787{
     
    814825      647 => array('Revision' => 657, 'Function' => 'UpdateTo657'),
    815826      657 => array('Revision' => 661, 'Function' => 'UpdateTo661'),
     827      661 => array('Revision' => 662, 'Function' => 'UpdateTo662'),
    816828    ));
    817829  }
Note: See TracChangeset for help on using the changeset viewer.