Ignore:
Timestamp:
Apr 8, 2018, 7:40:10 PM (7 years ago)
Author:
chronos
Message:
  • Added: New table NetworkDeviceLog to store log messages received from network devices.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/UpdateTrace.php

    r844 r855  
    20412041{
    20422042  $Manager->Execute('ALTER TABLE `DocumentLine` ADD `Yearly` BOOLEAN NOT NULL DEFAULT FALSE AFTER `Shortcut`;');
     2043}
     2044
     2045function 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`);');
    20432058}
    20442059
     
    21382153      831 => array('Revision' => 838, 'Function' => 'UpdateTo838'),
    21392154      838 => array('Revision' => 844, 'Function' => 'UpdateTo844'),
     2155      844 => array('Revision' => 855, 'Function' => 'UpdateTo855'),
    21402156    ));
    21412157  }
Note: See TracChangeset for help on using the changeset viewer.