Skip to content

Commit

Permalink
Added db fields for opendcim#532
Browse files Browse the repository at this point in the history
  • Loading branch information
samilliken committed Jan 31, 2015
1 parent b27210f commit 17b58ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ CREATE TABLE fac_Device (
AssetTag varchar(20) NOT NULL,
PrimaryIP varchar(254) NOT NULL,
SNMPCommunity varchar(80) NOT NULL,
SNMPFailureCount TINYINT(1) NOT NULL,
ESX tinyint(1) NOT NULL,
Owner int(11) NOT NULL,
EscalationTimeID int(11) NOT NULL,
Expand Down
8 changes: 8 additions & 0 deletions db-3.3-to-4.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,11 @@ ALTER TABLE fac_PowerSource ADD OID2 VARCHAR( 80 ) NOT NULL AFTER LoadOID, ADD O
--
ALTER TABLE fac_Cabinet ADD LocationSortable VARCHAR( 20 ) NOT NULL AFTER Location;
UPDATE fac_Cabinet SET LocationSortable = REPLACE(Location, ' ', '');

--
-- Add a failure counter to all devices to keep track of whether or not they've gone silent
--

ALTER TABLE fac_Device ADD SNMPFailureCount TINYINT(1) NOT NULL AFTER SNMPCommunity;


0 comments on commit 17b58ad

Please sign in to comment.