Changeset 855 for trunk/Application/UpdateTrace.php
- Timestamp:
- Apr 8, 2018, 7:40:10 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/UpdateTrace.php
r844 r855 2041 2041 { 2042 2042 $Manager->Execute('ALTER TABLE `DocumentLine` ADD `Yearly` BOOLEAN NOT NULL DEFAULT FALSE AFTER `Shortcut`;'); 2043 } 2044 2045 function UpdateTo855($Manager) 2046 { 2047 $Manager->Execute('CREATE TABLE IF NOT EXISTS `NetworkDeviceLog` ( 2048 `Id` int(11) NOT NULL AUTO_INCREMENT, 2049 `Time` datetime NOT NULL, 2050 `Device` int(11) NOT NULL, 2051 `Message` varchar(255) NOT NULL, 2052 `Tags` varchar(255) NOT NULL, 2053 PRIMARY KEY (`Id`), 2054 KEY `Device` (`Device`) 2055 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;'); 2056 $Manager->Execute('ALTER TABLE `NetworkDeviceLog` 2057 ADD CONSTRAINT `NetworkDeviceLog_ibfk_1` FOREIGN KEY (`Device`) REFERENCES `NetworkDevice` (`Id`);'); 2043 2058 } 2044 2059 … … 2138 2153 831 => array('Revision' => 838, 'Function' => 'UpdateTo838'), 2139 2154 838 => array('Revision' => 844, 'Function' => 'UpdateTo844'), 2155 844 => array('Revision' => 855, 'Function' => 'UpdateTo855'), 2140 2156 )); 2141 2157 }
Note:
See TracChangeset
for help on using the changeset viewer.