Changeset 754
- Timestamp:
- Oct 21, 2015, 11:05:08 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r751 r754 1 1 <?php 2 2 3 $Revision = 75 1; // Subversion revision4 $DatabaseRevision = 7 48; // SQL structure revision5 $ReleaseTime = strtotime('2015-10- 04');3 $Revision = 752; // Subversion revision 4 $DatabaseRevision = 752; // SQL structure revision 5 $ReleaseTime = strtotime('2015-10-21'); -
trunk/Common/Setup/Updates.php
r748 r754 1517 1517 } 1518 1518 } 1519 1520 function UpdateTo752($Manager) 1521 { 1522 $Manager->Database->query('INSERT INTO `SchedulerAction` (`Id`, `Name`, `Class`) '. 1523 'VALUES (NULL, "Kontrola změn stavů", "SchedulerNotifyCheck");'); 1524 1525 $this->Database->query(' 1526 CREATE TABLE IF NOT EXISTS `NotifyUser` ( 1527 `Id` int(11) NOT NULL AUTO_INCREMENT, 1528 `User` int(11) NOT NULL, 1529 `Contact` int(11) NOT NULL, 1530 `Period` int(11) NOT NULL, 1531 PRIMARY KEY (`Id`), 1532 KEY `User` (`User`), 1533 KEY `Contact` (`Contact`) 1534 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;'); 1535 $this->Database->query('ALTER TABLE `NotifyUser` 1536 ADD CONSTRAINT `NotifyUser_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`Id`), 1537 ADD CONSTRAINT `NotifyUser_ibfk_2` FOREIGN KEY (`Contact`) REFERENCES `Contact` (`Id`);'); 1538 1539 $this->Database->query('CREATE TABLE IF NOT EXISTS `NotifyCategory` ( 1540 `Id` int(11) NOT NULL AUTO_INCREMENT, 1541 `Name` varchar(255) NOT NULL, 1542 `SysName` varchar(255) NOT NULL, 1543 PRIMARY KEY (`Id`) 1544 ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;'); 1545 1546 $this->Database->query("INSERT INTO `NotifyCategory` (`Id`, `Name`, `SysName`) VALUES 1547 (1, 'Dostupnost zařízení (ping)', 'NetworkReachability'), 1548 (2, 'Dostupnost URL', 'URL'), 1549 (3, 'Minimální úroveň signálu', 'WirelessSignal'), 1550 (4, 'Dostupnost síťového portu', 'NetworkPort'), 1551 (5, 'Minimální odezva', 'NetworkLatency'), 1552 (6, 'Minimální propustnost', 'NetworkBandwidth');"); 1553 } 1554 1519 1555 1520 1556 class Updates … … 1590 1626 742 => array('Revision' => 747, 'Function' => 'UpdateTo747'), 1591 1627 747 => array('Revision' => 748, 'Function' => 'UpdateTo748'), 1628 748 => array('Revision' => 752, 'Function' => 'UpdateTo752'), 1592 1629 )); 1593 1630 } -
trunk/Modules/Scheduler/Scheduler.php
r738 r754 75 75 $Class = new $DbRow['Class']($this->System); 76 76 $Output = $Class->Execute(); 77 echo($Output); 77 78 } else echo('Class '.$DbRow['Class'].' not found'."\n"); 78 79 $this->Database->update('Scheduler', 'Id='.$DbRow['Id'], -
trunk/Modules/Subject/Subject.php
r747 r754 112 112 ), 113 113 )); 114 $this->System->FormManager->RegisterFormType('TContact', array( 115 'Type' => 'Reference', 116 'Table' => 'Contact', 117 'Id' => 'Id', 118 'Name' => 'Value', 119 'Filter' => '1', 120 )); 114 121 $this->System->FormManager->RegisterFormType('TSubject', array( 115 122 'Type' => 'Reference',
Note:
See TracChangeset
for help on using the changeset viewer.