From dd07101e3ddbf8b77648be174adf8894a80f6d37 Mon Sep 17 00:00:00 2001 From: Chatura Dilan Date: Fri, 26 May 2017 14:25:49 +0530 Subject: [PATCH] Fixed MySQL script --- .../main/resources/dbscripts/cdm/application-mgt/mysql.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 5fcf9864e7..d6df5614a6 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 @@ -69,6 +69,7 @@ CREATE TABLE IF NOT EXISTS `APPM_LIFECYCLE_STATE` ( CREATE TABLE IF NOT EXISTS `APPM_APPLICATION` ( `ID` INT NOT NULL AUTO_INCREMENT, `UUID` VARCHAR(100) NOT NULL, + `IDENTIFIER` VARCHAR(255) NULL, `NAME` VARCHAR(100) NOT NULL, `SHORT_DESCRIPTION` VARCHAR(255) NULL, `DESCRIPTION` TEXT NULL, @@ -79,6 +80,9 @@ CREATE TABLE IF NOT EXISTS `APPM_APPLICATION` ( `CREATED_BY` VARCHAR(255) NULL, `CREATED_AT` DATETIME NOT NULL, `MODIFIED_AT` DATETIME NULL, + `IS_FREE` TINYINT(1) NULL, + `PAYMENT_CURRENCY` VARCHAR(45) NULL, + `PAYMENT_PRICE` DECIMAL(10,2) NULL, `APPLICATION_CATEGORY_ID` INT NOT NULL, `PLATFORM_APPLICATION_MAPPING_ID` INT NOT NULL, `APPM_LIFECYCLE_STATE_ID` INT NOT NULL, @@ -307,7 +311,7 @@ CREATE TABLE IF NOT EXISTS `APPM_VISIBILITY` ( -- Table `APPM_SUBSCRIPTION_PROPERTIES` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `APPM_SUBSCRIPTION_PROPERTIES` ( - `PROP_KEY` TEXT NOT NULL, + `PROP_KEY` VARCHAR(255) NOT NULL, `PROP_VALUE` TEXT NULL, `APPM_SUBSCRIPTION_ID` INT NOT NULL, PRIMARY KEY (`PROP_KEY`, `APPM_SUBSCRIPTION_ID`),