From 0d43415484ef94840b9da7ad4d45cb4c3e83bb94 Mon Sep 17 00:00:00 2001 From: Dilshan Edirisuriya Date: Thu, 9 Apr 2015 18:53:24 +0530 Subject: [PATCH] Temporarily adding features into table. --- .../resources/dbscripts/plugins/h2_ios.sql | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/h2_ios.sql b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/h2_ios.sql index e04f68c47a..ed1cace790 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/h2_ios.sql +++ b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/h2_ios.sql @@ -30,4 +30,23 @@ CREATE TABLE IF NOT EXISTS `IOS_FEATURE` ( `ICCID` VARCHAR(45) NULL DEFAULT NULL, `LATITUDE` VARCHAR(45) NULL DEFAULT NULL, `LONGITUDE` VARCHAR(45) NULL DEFAULT NULL, - PRIMARY KEY (`MOBILE_DEVICE_ID`) ); \ No newline at end of file + PRIMARY KEY (`MOBILE_DEVICE_ID`) ); + + +-- ----------------------------------------------------- +-- TODO remove this later +-- ----------------------------------------------------- + +INSERT INTO IOS_FEATURE (CODE, NAME, DESCRIPTION) +VALUES + ('INSTALL_ENTERPRISE_APPLICATION', 'INSTALL_ENTERPRISE_APPLICATION', 'Enterprise application installation'), +
('INSTALL_STORE_APPLICATION', 'INSTALL_STORE_APPLICATION', 'Store application installation'), 
 +('REMOVE_APPLICATION', 'REMOVE_APPLICATION', 'Application removal'), +
('DEVICE_LOCK', 'DEVICE_LOCK', 'Lock device'), +
('CELLULAR', 'CELLULAR', 'Cellular operation'), +
('RESTRICTION', 'RESTRICTION', 'Restriction operation'), +
('WIFI', 'WIFI', 'WIFI operation'), +
('DEVICE_INFO', 'DEVICE_INFO', 'Device info operation'), 
 +('AIR_PLAY', 'AIR_PLAY', 'AirPlay operation'), 
 +('LOCATION', 'LOCATION', 'Fetch location'), 
 +('ALARM', 'ALARM', 'Alarm device');