diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/h2.sql b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/h2.sql index c9c70ce2da..a115e54575 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/h2.sql +++ b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/h2.sql @@ -2,7 +2,7 @@ -- Table `IOS_DEVICE` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `IOS_DEVICE` ( - `DEVICE_ID` VARCHAR(45) NOT NULL, + `MOBILE_DEVICE_ID` VARCHAR(45) NOT NULL, `APNS_PUSH_TOKEN` VARCHAR(100) DEFAULT NULL, `MAGIC_TOKEN` VARCHAR(100) DEFAULT NULL, `MDM_TOKEN` VARCHAR(100) DEFAULT NULL, @@ -18,7 +18,7 @@ `ICCID` VARCHAR(45) DEFAULT NULL, `LATITUDE` VARCHAR(45) DEFAULT NULL, `LONGITUDE` VARCHAR(45) DEFAULT NULL, - PRIMARY KEY (`DEVICE_ID`) + PRIMARY KEY (`MOBILE_DEVICE_ID`) ); -- ----------------------------------------------------- diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/mssql.sql b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/mssql.sql index 78cbc22c21..5205ff6f2b 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/mssql.sql +++ b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/mssql.sql @@ -13,7 +13,7 @@ CREATE TABLE IOS_FEATURE ( -- Table `IOS_DEVICE` -- ----------------------------------------------------- CREATE TABLE IOS_DEVICE ( - DEVICE_ID VARCHAR(45) NOT NULL, + MOBILE_DEVICE_ID VARCHAR(45) NOT NULL, APNS_PUSH_TOKEN VARCHAR(100) NULL DEFAULT NULL, MAGIC_TOKEN VARCHAR(100) NULL DEFAULT NULL, MDM_TOKEN VARCHAR(100) NULL DEFAULT NULL, @@ -29,5 +29,5 @@ CREATE TABLE IOS_FEATURE ( ICCID VARCHAR(45) NULL DEFAULT NULL, LATITUDE VARCHAR(45) NULL DEFAULT NULL, LONGITUDE VARCHAR(45) NULL DEFAULT NULL, - PRIMARY KEY (DEVICE_ID) + PRIMARY KEY (MOBILE_DEVICE_ID) ); diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/mysql.sql b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/mysql.sql index c71a332548..3f617b7c74 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/mysql.sql +++ b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/mysql.sql @@ -2,7 +2,7 @@ -- Table `IOS_DEVICE` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `IOS_DEVICE` ( - `DEVICE_ID` VARCHAR(45) NOT NULL, + `MOBILE_DEVICE_ID` VARCHAR(45) NOT NULL, `APNS_PUSH_TOKEN` VARCHAR(100) NULL DEFAULT NULL, `MAGIC_TOKEN` VARCHAR(100) NULL DEFAULT NULL, `MDM_TOKEN` VARCHAR(100) NULL DEFAULT NULL, @@ -18,7 +18,7 @@ CREATE TABLE IF NOT EXISTS `IOS_DEVICE` ( `ICCID` VARCHAR(45) NULL DEFAULT NULL, `LATITUDE` VARCHAR(45) NULL DEFAULT NULL, `LONGITUDE` VARCHAR(45) NULL DEFAULT NULL, - PRIMARY KEY (`DEVICE_ID`) + PRIMARY KEY (`MOBILE_DEVICE_ID`) ) ENGINE = InnoDB; -- ----------------------------------------------------- diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/oracle.sql b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/oracle.sql index 11e5212e1c..3e129477f5 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/oracle.sql +++ b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/oracle.sql @@ -2,7 +2,7 @@ -- Table `IOS_DEVICE` -- ----------------------------------------------------- CREATE TABLE IOS_DEVICE ( - DEVICE_ID VARCHAR(45) NOT NULL, + MOBILE_DEVICE_ID VARCHAR(45) NOT NULL, APNS_PUSH_TOKEN VARCHAR(100) DEFAULT NULL, MAGIC_TOKEN VARCHAR(100) DEFAULT NULL, MDM_TOKEN VARCHAR(100) DEFAULT NULL, @@ -18,7 +18,7 @@ ICCID VARCHAR(45) DEFAULT NULL, LATITUDE VARCHAR(45) DEFAULT NULL, LONGITUDE VARCHAR(45) DEFAULT NULL, - PRIMARY KEY (DEVICE_ID) + PRIMARY KEY (MOBILE_DEVICE_ID) ); / diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/postgresql.sql b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/postgresql.sql index 79b342ca3a..1ada59fdc7 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/postgresql.sql +++ b/features/device-mgt/org.wso2.carbon.device.mgt.mobile.feature/src/main/resources/dbscripts/plugins/ios/postgresql.sql @@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS IOS_FEATURE ( -- Table IOS_DEVICE -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS IOS_DEVICE ( - DEVICE_ID VARCHAR(45) NOT NULL, + MOBILE_DEVICE_ID VARCHAR(45) NOT NULL, APNS_PUSH_TOKEN VARCHAR(100) NULL DEFAULT NULL, MAGIC_TOKEN VARCHAR(100) NULL DEFAULT NULL, MDM_TOKEN VARCHAR(100) NULL DEFAULT NULL, @@ -29,5 +29,5 @@ CREATE TABLE IF NOT EXISTS IOS_DEVICE ( ICCID VARCHAR(45) NULL DEFAULT NULL, LATITUDE VARCHAR(45) NULL DEFAULT NULL, LONGITUDE VARCHAR(45) NULL DEFAULT NULL, - PRIMARY KEY (DEVICE_ID) + PRIMARY KEY (MOBILE_DEVICE_ID) );