Changeset 505 for trunk/admin/Updates.php
- Timestamp:
- Apr 1, 2013, 12:29:37 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/Updates.php
r503 r505 56 56 $Manager->Execute("INSERT INTO `ISMenuItem` (`Id` ,`Name` ,`Parent` ,`Table` ,`IconName`) ". 57 57 "VALUES (NULL , 'Sítové služby', '1', 'NetworkConfiguration', '');"); 58 $Manager->Execute("INSERT INTO ` centrala`.`ISMenuItem` (`Id` ,`Name` ,`Parent` ,`Table` ,`IconName`) ".58 $Manager->Execute("INSERT INTO `ISMenuItem` (`Id` ,`Name` ,`Parent` ,`Table` ,`IconName`) ". 59 59 "VALUES (NULL , 'Fronta e-mailů', '23', 'EmailQueue', '');"); 60 60 $Manager->Execute("CREATE TABLE IF NOT EXISTS `FinanceVAT` ( … … 154 154 "VALUES (NULL , 'Banka', '2', '', '');"); 155 155 $Id = $Manager->Database->insert_id; 156 $Manager->Execute("UPDATE `ISMenuItem` SET `Parent` = '".$Id."' WHERE `ISMenuItem`.`Id` =10; ". 157 "UPDATE `ISMenuItem` SET `Parent` = '".$Id."' WHERE `ISMenuItem`.`Id` =48;". 158 "UPDATE `ISMenuItem` SET `Parent` = '".$Id."' WHERE `ISMenuItem`.`Id` =50;"); 156 $Manager->Execute("UPDATE `ISMenuItem` SET `Parent` = '".$Id."' WHERE `ISMenuItem`.`Id` =''Bankovní účty'; ". 157 "UPDATE `ISMenuItem` SET `Parent` = '".$Id."' WHERE `ISMenuItem`.`Id` ='Import z účtu';". 158 "UPDATE `ISMenuItem` SET `Parent` = '".$Id."' WHERE `ISMenuItem`.`Name` ='Banky';"); 159 } 160 161 function UpdateTo505($Manager) 162 { 163 $Manager->Execute("UPDATE `ISMenuItem` SET `Name` = 'Služby', `Table` = 'Service' WHERE `ISMenuItem`.`Name` ='Tarify';"); 164 $Manager->Execute("INSERT INTO `ISMenuItem` (`Id` ,`Name` ,`Parent` ,`Table` ,`IconName`) ". 165 "VALUES (NULL , 'Kategorie služeb', '2', 'ServiceCategory', '');"); 166 $Manager->Execute("CREATE TABLE IF NOT EXISTS `NetworkShareItem` ( 167 `Id` int(11) NOT NULL AUTO_INCREMENT, 168 `Name` varchar(255) NOT NULL DEFAULT '', 169 `Parent` int(11) NOT NULL DEFAULT '0', 170 `Host` int(11) NOT NULL DEFAULT '0', 171 `Size` bigint(20) NOT NULL DEFAULT '0', 172 `Ext` varchar(64) NOT NULL DEFAULT '', 173 `Date` date NOT NULL DEFAULT '0000-00-00', 174 `Type` int(11) NOT NULL DEFAULT '0', 175 PRIMARY KEY (`Id`), 176 KEY `Parent` (`Parent`), 177 KEY `Search` (`Name`,`Size`), 178 KEY `Name` (`Name`) 179 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;"); 180 $Manager->Execute("CREATE TABLE IF NOT EXISTS `NetworkShareError` ( 181 `Id` int(11) NOT NULL AUTO_INCREMENT, 182 `Host` varchar(16) NOT NULL DEFAULT '', 183 `Message` varchar(255) NOT NULL DEFAULT '', 184 PRIMARY KEY (`Id`) 185 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;"); 186 159 187 } 160 188 … … 168 196 499 => array('Revision' => 500, 'Function' => 'UpdateTo500'), 169 197 500 => array('Revision' => 502, 'Function' => 'UpdateTo502'), 198 502 => array('Revision' => 505, 'Function' => 'UpdateTo505'), 170 199 ); 171 200
Note:
See TracChangeset
for help on using the changeset viewer.