Changeset 730 for trunk/Common/Setup/Updates.php
- Timestamp:
- Jan 13, 2015, 12:18:19 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Setup/Updates.php
r729 r730 1207 1207 1208 1208 $Manager->Execute('INSERT INTO `Module` (`Id`, `Name`, `Title`) VALUES (NULL, "Plánovač", "Scheduler");'); 1209 } 1210 1211 function UpdateTo730($Manager) 1212 { 1213 $Manager->Execute('CREATE TABLE IF NOT EXISTS `SchedulerAction` ( 1214 `Id` int(11) NOT NULL AUTO_INCREMENT, 1215 `Name` varchar(255) NOT NULL, 1216 `Class` varchar(255) NOT NULL 1217 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;'); 1218 $Manager->Execute('ALTER TABLE `SchedulerAction` ADD PRIMARY KEY (`Id`);'); 1219 1220 $Manager->Execute('ALTER TABLE `Scheduler` CHANGE `Class` `Action` INT(11) NOT NULL;'); 1221 $Manager->Execute("ALTER TABLE `Scheduler` ADD INDEX ( `Action` ) "); 1222 $Manager->Execute('ALTER TABLE `Scheduler` ADD CONSTRAINT `Schedule_ibfk_2` FOREIGN KEY (`Action`) REFERENCES `SchedulerAction` (`Id`);'); 1223 $Manager->Execute('INSERT INTO `SchedulerAction` (`Id`, `Name`, `Class`) VALUES (NULL, "Import bankovních účtů", "ScheduleBankImport");'); 1209 1224 } 1210 1225 … … 1271 1286 725 => array('Revision' => 726, 'Function' => 'UpdateTo726'), 1272 1287 726 => array('Revision' => 729, 'Function' => 'UpdateTo729'), 1288 729 => array('Revision' => 730, 'Function' => 'UpdateTo730'), 1273 1289 )); 1274 1290 }
Note:
See TracChangeset
for help on using the changeset viewer.