From d2ad852db19bcf0f8fdf4044c991cbd598d9182f Mon Sep 17 00:00:00 2001 From: madhawap Date: Fri, 5 Aug 2016 12:16:59 +0530 Subject: [PATCH] changes to certificate-mgt mysql dbscript, fix for the jira EMM-1487 --- .../src/main/resources/dbscripts/cdm/mysql.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mysql.sql b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mysql.sql index 098ebc5d98..8d1ddb215d 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mysql.sql +++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/mysql.sql @@ -585,3 +585,16 @@ ORDER BY TENANT_ID, DEVICE_ID; -- END OF DASHBOARD RELATED VIEWS -- +-- CERTIFICATES TABLES -- + +CREATE TABLE IF NOT EXISTS DM_DEVICE_CERTIFICATE ( + ID INTEGER auto_increment NOT NULL, + SERIAL_NUMBER VARCHAR(500) DEFAULT NULL, + CERTIFICATE BLOB DEFAULT NULL, + TENANT_ID INTEGER DEFAULT 0, + USERNAME VARCHAR(500) DEFAULT NULL, + PRIMARY KEY (ID) +)ENGINE = InnoDB; + +-- END CERTIFICATES TABLES -- +