From a73ec6748519530e690f7ecd0d47671412a55f2a Mon Sep 17 00:00:00 2001 From: amanda <74random.amanda@gmail.com> Date: Thu, 16 Apr 2020 16:26:48 +0530 Subject: [PATCH] Remove default value for ADAM_ID --- .../src/main/resources/dbscripts/cdm/application-mgt/h2.sql | 2 +- .../src/main/resources/dbscripts/cdm/application-mgt/mssql.sql | 2 +- .../src/main/resources/dbscripts/cdm/application-mgt/mysql.sql | 2 +- .../src/main/resources/dbscripts/cdm/application-mgt/oracle.sql | 2 +- .../main/resources/dbscripts/cdm/application-mgt/postgresql.sql | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/h2.sql b/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/h2.sql index d2255a78ffa..c624d004601 100644 --- a/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/h2.sql +++ b/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/h2.sql @@ -12,7 +12,7 @@ CREATE TABLE IF NOT EXISTS AP_APP( CURRENCY VARCHAR(45) NULL DEFAULT '$', RATING DOUBLE NULL DEFAULT NULL, DEVICE_TYPE_ID INTEGER NOT NULL, - ADAM_ID VARCHAR(45) NULL DEFAULT '0' UNIQUE , + ADAM_ID VARCHAR(45) NULL UNIQUE , PRIMARY KEY (ID) ); diff --git a/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/mssql.sql b/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/mssql.sql index b6899600b24..98b48194f46 100644 --- a/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/mssql.sql +++ b/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/mssql.sql @@ -12,7 +12,7 @@ CREATE TABLE AP_APP( CURRENCY VARCHAR(45) NULL DEFAULT '$', RATING FLOAT NULL DEFAULT NULL, DEVICE_TYPE_ID INTEGER NOT NULL, - ADAM_ID VARCHAR(45) NULL DEFAULT '0' , + ADAM_ID VARCHAR(45) NULL , CONSTRAINT ADAM_ID_CONSTRAINT UNIQUE (ADAM_ID), PRIMARY KEY (ID) ); diff --git a/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/mysql.sql b/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/mysql.sql index cb1dd50e59f..4802f08e0af 100644 --- a/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/mysql.sql +++ b/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/mysql.sql @@ -12,7 +12,7 @@ CREATE TABLE IF NOT EXISTS AP_APP( CURRENCY VARCHAR(45) NULL DEFAULT '$', RATING DOUBLE NULL DEFAULT NULL, DEVICE_TYPE_ID INTEGER NOT NULL, - ADAM_ID VARCHAR(45) NULL DEFAULT '0' UNIQUE , + ADAM_ID VARCHAR(45) NULL UNIQUE , PRIMARY KEY (ID) ); diff --git a/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/oracle.sql b/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/oracle.sql index c952127b974..f4e98e54189 100644 --- a/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/oracle.sql +++ b/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/oracle.sql @@ -228,7 +228,7 @@ INSERT INTO APPM_LC_STATE_TRANSITION(INITIAL_STATE, NEXT_STATE, PERMISSION, DESC CREATE TABLE APPM_APPLICATION ( ID INT UNIQUE, UUID VARCHAR(100) NOT NULL, - ADAM_ID VARCHAR(100) DEFAULT '0', + ADAM_ID VARCHAR(100) NULL, IDENTIFIER VARCHAR(255) NULL, NAME VARCHAR(100) NOT NULL, SHORT_DESCRIPTION VARCHAR(255) NULL, diff --git a/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/postgresql.sql b/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/postgresql.sql index e30249eb8fc..5c360e33c00 100644 --- a/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/postgresql.sql +++ b/features/application-mgt/org.wso2.carbon.device.application.mgt.server.feature/src/main/resources/dbscripts/cdm/application-mgt/postgresql.sql @@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS AP_APP( CURRENCY VARCHAR(45) NULL DEFAULT '$', RATING DOUBLE PRECISION NULL DEFAULT NULL, DEVICE_TYPE_ID INTEGER NOT NULL, - ADAM_ID VARCHAR(45) NULL DEFAULT '0' UNIQUE, + ADAM_ID VARCHAR(45) NULL UNIQUE, PRIMARY KEY (ID) );