|
|
|
@ -25,9 +25,7 @@ CREATE TABLE DM_DEVICE_CERTIFICATE (
|
|
|
|
|
TENANT_ID INTEGER DEFAULT 0,
|
|
|
|
|
DEVICE_IDENTIFIER VARCHAR(300),
|
|
|
|
|
USERNAME VARCHAR(500) DEFAULT NULL,
|
|
|
|
|
PRIMARY KEY (ID),
|
|
|
|
|
CONSTRAINT fk_DM_DEVICE_DM_DEVICE_CERTIFICATE FOREIGN KEY (DEVICE_IDENTIFIER)
|
|
|
|
|
REFERENCES DM_DEVICE (DEVICE_IDENTIFICATION)
|
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
IF NOT EXISTS (SELECT * FROM SYS.INDEXES WHERE NAME = 'IDX_DEVICE_TYPE' AND OBJECT_ID = OBJECT_ID('DM_DEVICE_TYPE'))
|
|
|
|
|