forked from opendcim/openDCIM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
db-1.2-to-1.3.sql
41 lines (29 loc) · 1.11 KB
/
db-1.2-to-1.3.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--
-- Changes to openDCIM database for migrating from 1.2 to 1.3
--
--
-- Bump version number up
--
UPDATE fac_Config SET Value = '1.3' WHERE fac_Config.Parameter = 'Version';
--
-- Adding a color option to reserved devices. Default will be white like any other device.
--
INSERT INTO fac_Config VALUES ( 'ReservedColor', '#00FFFF', 'HexColor', 'string', '#FFFFFF');
INSERT INTO fac_Config VALUES ( 'FreeSpaceColor', '#FFFFFF', 'HexColor', 'string', '#FFFFFF');
--
-- Adding a default panel voltage for new panels being created.
--
INSERT INTO fac_Config VALUES ('DefaultPanelVoltage', '208', 'Volts', 'int', '208' );
--
-- Extend the departments table to add a new color field
--
ALTER TABLE fac_Department ADD DeptColor VARCHAR( 7 ) NOT NULL DEFAULT '#FFFFFF';
--
-- Add field in fac_Cabinet for the Key (Lock) Information
--
ALTER TABLE fac_Cabinet ADD Keylock VARCHAR( 30 ) NOT NULL AFTER Model;
--
-- Add field in fac_Device for the Warranty Expiration and Warranty Holder
--
ALTER TABLE fac_Device ADD WarrantyCo VARCHAR(80) NOT NULL AFTER InstallDate;
ALTER TABLE fac_Device ADD WarrantyExpire DATE NULL AFTER WarrantyCo;