diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/dbscripts/cdm/h2.sql b/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/dbscripts/cdm/h2.sql index 1e52dfc6d52..1207b8c8335 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/dbscripts/cdm/h2.sql +++ b/features/device-mgt/org.wso2.carbon.device.mgt.basics.feature/src/main/resources/dbscripts/cdm/h2.sql @@ -509,11 +509,11 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_GROUP_POLICY ( -- END OF POLICY AND DEVICE GROUP MAPPING -- -CREATE TABLE IF NOT EXISTS DM_DEVICE_TYPE_PLATFORM( - ID int NOT NULL AUTO_INCREMENT, - DEVICE_TYPE_ID int NULL DEFAULT 0, - VERSION_NAME varchar(100) NULL, - VERSION_STATUS varchar(100) NULL DEFAULT 'ACTIVE', +CREATE TABLE IF NOT EXISTS DM_DEVICE_TYPE_PLATFORM ( + ID INT NOT NULL AUTO_INCREMENT, + DEVICE_TYPE_ID INT NULL DEFAULT 0, + VERSION_NAME VARCHAR(100) NULL, + VERSION_STATUS VARCHAR(100) NULL DEFAULT 'ACTIVE', PRIMARY KEY (ID), CONSTRAINT DM_DEVICE_TYPE_DM_DEVICE_TYPE_PLATFORM_MAPPING FOREIGN KEY (DEVICE_TYPE_ID) @@ -523,7 +523,7 @@ CREATE TABLE IF NOT EXISTS DM_DEVICE_TYPE_PLATFORM( DEVICE_TYPE_ID, VERSION_NAME ) -) +); -- DASHBOARD RELATED VIEWS -- CREATE VIEW POLICY_COMPLIANCE_INFO AS