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