samilliken/openDCIM — pull request #465 by ferbarific (2014-05-09 03:15:13+00:00)
Title: Add FirmwareVersion to CreatePDU() INSERT statement

When adding a CDU to a rack we received the following error:

CreatePDU::PDO Error: Field 'FirmwareVersion' doesn't have a default value SQL=INSERT INTO fac_PowerDistribution SET Label="PDU1", \n\t\t\tCabinetID=229, TemplateID=2, \n\t\t\tIPAddress="", SNMPCommunity="", \n\t\t\tPanelID=0, BreakerSize=1, \n\t\t\tPanelPole=0, InputAmperage=0, \n\t\t\tFailSafe=0, PanelID2=0, PanelPole2=0;

Added the FirmwareVersion to the INSERT as the database field is marked NOT NULL and should explicitly exist in the query.