Changeset 693 for trunk/Common
- Timestamp:
- Sep 14, 2014, 8:26:20 PM (10 years ago)
- Location:
- trunk/Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Updates.php
r689 r693 899 899 } 900 900 901 function UpdateTo692($Manager) 902 { 903 // Convert user emails to contacts 904 $DbResult = $Manager->Execute('SELECT `Id` FROM `ContactCategory` WHERE `Name` = "Telefón"'); 905 $DbRow = $DbResult->fetch_assoc(); 906 $ContactCategoryId = $DbRow['Id']; 907 908 $Manager->Execute('INSERT INTO `Contact` (SELECT NULL AS `Id`, '.$ContactCategoryId.' AS `Category`, '. 909 '`PhoneNumber` AS `Value`, NULL AS `Subject`, `Id` AS `User`, "" AS `Descriptions`, 1 AS `Receive` FROM `User` 910 WHERE (`PhoneNumber` != "") AND (`PhoneNumber` != 0))'); 911 $Manager->Execute('ALTER TABLE `User` DROP `PhoneNumber`;'); 912 } 913 901 914 class Updates 902 915 { … … 948 961 678 => array('Revision' => 679, 'Function' => 'UpdateTo679'), 949 962 679 => array('Revision' => 688, 'Function' => 'UpdateTo688'), 963 688 => array('Revision' => 692, 'Function' => 'UpdateTo692'), 950 964 )); 951 965 } -
trunk/Common/VCL/General.php
r666 r693 1 1 <?php 2 2 3 session_start();4 3 5 4 //print_r($_SESSION);
Note:
See TracChangeset
for help on using the changeset viewer.