mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
change port entry in database to unsigned, to allow ports > 32k (duh!)
git-svn-id: http://www.observium.org/svn/observer/trunk@2401 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+1
-1
@@ -216,7 +216,7 @@ CREATE TABLE IF NOT EXISTS `devices` (
|
||||
`sysName` varchar(128) CHARACTER SET latin1 DEFAULT NULL,
|
||||
`community` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`snmpver` varchar(4) CHARACTER SET latin1 NOT NULL DEFAULT 'v2c',
|
||||
`port` smallint(5) NOT NULL DEFAULT '161',
|
||||
`port` smallint(5) unsigned NOT NULL DEFAULT '161',
|
||||
`transport` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'udp',
|
||||
`timeout` int(11) DEFAULT NULL,
|
||||
`retries` int(11) DEFAULT NULL,
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ ALTER TABLE `storage` ADD UNIQUE `index_unique` ( `device_id` , `storage_mib
|
||||
ALTER TABLE `bgpPeers_cbgp` ADD `AcceptedPrefixes` INT NOT NULL ,ADD `DeniedPrefixes` INT NOT NULL ,ADD `PrefixAdminLimit` INT NOT NULL ,ADD `PrefixThreshold` INT NOT NULL ,ADD `PrefixClearThreshold` INT NOT NULL ,ADD `AdvertisedPrefixes` INT NOT NULL ,ADD `SuppressedPrefixes` INT NOT NULL ,ADD `WithdrawnPrefixes` INT NOT NULL;
|
||||
ALTER TABLE `bgpPeers_cbgp` ADD UNIQUE `unique_index` ( `device_id` , `bgpPeerIdentifier` , `afi` , `safi` );
|
||||
ALTER TABLE `ports` ADD UNIQUE `device_ifIndex` ( `device_id` , `ifIndex` );
|
||||
|
||||
ALTER TABLE `devices` CHANGE `port` `port` SMALLINT( 5 ) UNSIGNED NOT NULL DEFAULT '161';
|
||||
|
||||
Reference in New Issue
Block a user