From 42d8b084b52f2655db875f8d844577068c0c6c49 Mon Sep 17 00:00:00 2001 From: inosh-perera Date: Fri, 30 Oct 2015 18:35:08 +0530 Subject: [PATCH] changing DEVICE_ID table name --- .../src/main/resources/dbscripts/plugins/ios/h2.sql | 4 ++-- .../src/main/resources/dbscripts/plugins/ios/mssql.sql | 4 ++-- .../src/main/resources/dbscripts/plugins/ios/mysql.sql | 4 ++-- .../src/main/resources/dbscripts/plugins/ios/oracle.sql | 4 ++-- .../src/main/resources/dbscripts/plugins/ios/postgresql.sql | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) 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) );