From 2b25d2bd2c98753ae76ee428c0d1bb4d0aebac61 Mon Sep 17 00:00:00 2001 From: Geeth Munasinghe Date: Wed, 3 Dec 2014 15:19:07 +0530 Subject: [PATCH 1/4] Fixing pom issues --- .../org.wso2.carbon.device.mgt.core/pom.xml | 21 +++++++++++++++-- components/device-mgt/pom.xml | 18 +++++++++++++++ pom.xml | 23 +++++++++++-------- 3 files changed, 50 insertions(+), 12 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml b/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml index 4249d8f6c26..91b34069d7c 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml @@ -1,4 +1,21 @@ + @@ -54,8 +71,8 @@ org.apache.axis2.*; version="${axis2.osgi.version.range}", - org.osgi.framework, - org.osgi.service.component, + org.osgi.framework, + org.osgi.service.component, org.apache.commons.logging, diff --git a/components/device-mgt/pom.xml b/components/device-mgt/pom.xml index 399870d93fe..0340cc35b2b 100644 --- a/components/device-mgt/pom.xml +++ b/components/device-mgt/pom.xml @@ -1,4 +1,22 @@ + + diff --git a/pom.xml b/pom.xml index 876336192c0..528fa0fee67 100644 --- a/pom.xml +++ b/pom.xml @@ -43,17 +43,7 @@ product/modules/integration - - 4.2.0 - 1.5.4 - 1.3 - - 4.3.1 - 6.8 - 4.3.0-SNAPSHOT - 1.1.0 - @@ -102,5 +92,18 @@ + + 4.2.0 + 1.5.4 + 1.3 + [1.6.1.wso2v11, 1.7.0) + + + 4.3.1 + 6.8 + 4.3.0-SNAPSHOT + 1.1.0 + + From 62ce7444fb7671df149f9af5ebb3d459dc2c45c2 Mon Sep 17 00:00:00 2001 From: prabathabey Date: Wed, 3 Dec 2014 15:19:48 +0530 Subject: [PATCH 2/4] cleaning up poms --- .../org.wso2.carbon.device.mgt.core/pom.xml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml b/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml index 4249d8f6c26..51a5d42a51d 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml @@ -69,21 +69,6 @@ - - - org.testng - testng - test - - - junit - junit - test - - - - - From c05bfdbe29f7a333e936968a5c3ba505f20b1eee Mon Sep 17 00:00:00 2001 From: inosh-perera Date: Wed, 3 Dec 2014 15:25:36 +0530 Subject: [PATCH 3/4] basic db scripts for h2 and mysql --- .../src/repository/dbscripts/cdm/h2.sql | 23 ++++++++++++ .../src/repository/dbscripts/cdm/h2.sql~ | 23 ++++++++++++ .../src/repository/dbscripts/cdm/mysql.sql | 34 ++++++++++++++++++ .../src/repository/dbscripts/cdm/mysql.sql~ | 36 +++++++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 product/modules/distribution/src/repository/dbscripts/cdm/h2.sql create mode 100644 product/modules/distribution/src/repository/dbscripts/cdm/h2.sql~ create mode 100644 product/modules/distribution/src/repository/dbscripts/cdm/mysql.sql create mode 100644 product/modules/distribution/src/repository/dbscripts/cdm/mysql.sql~ diff --git a/product/modules/distribution/src/repository/dbscripts/cdm/h2.sql b/product/modules/distribution/src/repository/dbscripts/cdm/h2.sql new file mode 100644 index 00000000000..4c1e805f9b2 --- /dev/null +++ b/product/modules/distribution/src/repository/dbscripts/cdm/h2.sql @@ -0,0 +1,23 @@ +CREATE TABLE IF NOT EXISTS DM_DEVICE_TYPE +( + ID INT(11) NOT NULL, + NAME VARCHAR(300) NULL DEFAULT NULL, + PRIMARY KEY (ID) +); + +CREATE TABLE IF NOT EXISTS DM_DEVICE +( + ID VARCHAR(20) NOT NULL, + DESCRIPTION TEXT NULL DEFAULT NULL, + NAME VARCHAR(100) NULL DEFAULT NULL, + DATE_OF_ENROLLMENT DATETIME NULL DEFAULT NULL, + DATE_OF_LAST_UPDATE DATETIME NULL DEFAULT NULL, + OWNERSHIP VARCHAR(45) NULL DEFAULT NULL, + STATUS VARCHAR(15) NULL DEFAULT NULL, + DEVICE_TYPE_ID INT(11) NULL DEFAULT NULL, + DEVICE_IDENTIFICATION VARCHAR(300) NULL DEFAULT NULL, + OWNER VARCHAR(45) NULL DEFAULT NULL, + PRIMARY KEY (ID), + CONSTRAINT fk_DM_DEVICE_DM_DEVICE_TYPE2 FOREIGN KEY (DEVICE_TYPE_ID ) + REFERENCES DM_DEVICE_TYPE (ID ) ON DELETE NO ACTION ON UPDATE NO ACTION +); diff --git a/product/modules/distribution/src/repository/dbscripts/cdm/h2.sql~ b/product/modules/distribution/src/repository/dbscripts/cdm/h2.sql~ new file mode 100644 index 00000000000..4c1e805f9b2 --- /dev/null +++ b/product/modules/distribution/src/repository/dbscripts/cdm/h2.sql~ @@ -0,0 +1,23 @@ +CREATE TABLE IF NOT EXISTS DM_DEVICE_TYPE +( + ID INT(11) NOT NULL, + NAME VARCHAR(300) NULL DEFAULT NULL, + PRIMARY KEY (ID) +); + +CREATE TABLE IF NOT EXISTS DM_DEVICE +( + ID VARCHAR(20) NOT NULL, + DESCRIPTION TEXT NULL DEFAULT NULL, + NAME VARCHAR(100) NULL DEFAULT NULL, + DATE_OF_ENROLLMENT DATETIME NULL DEFAULT NULL, + DATE_OF_LAST_UPDATE DATETIME NULL DEFAULT NULL, + OWNERSHIP VARCHAR(45) NULL DEFAULT NULL, + STATUS VARCHAR(15) NULL DEFAULT NULL, + DEVICE_TYPE_ID INT(11) NULL DEFAULT NULL, + DEVICE_IDENTIFICATION VARCHAR(300) NULL DEFAULT NULL, + OWNER VARCHAR(45) NULL DEFAULT NULL, + PRIMARY KEY (ID), + CONSTRAINT fk_DM_DEVICE_DM_DEVICE_TYPE2 FOREIGN KEY (DEVICE_TYPE_ID ) + REFERENCES DM_DEVICE_TYPE (ID ) ON DELETE NO ACTION ON UPDATE NO ACTION +); diff --git a/product/modules/distribution/src/repository/dbscripts/cdm/mysql.sql b/product/modules/distribution/src/repository/dbscripts/cdm/mysql.sql new file mode 100644 index 00000000000..fc78109c545 --- /dev/null +++ b/product/modules/distribution/src/repository/dbscripts/cdm/mysql.sql @@ -0,0 +1,34 @@ +-- ----------------------------------------------------- +-- Table `DM_DEVICE_TYPE` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `DM_DEVICE_TYPE` ( + `ID` INT(11) NOT NULL , + `NAME` VARCHAR(300) NULL DEFAULT NULL , + PRIMARY KEY (`ID`) ) +ENGINE = InnoDB +DEFAULT CHARACTER SET = latin1; + + +-- ----------------------------------------------------- +-- Table `DM_DEVICE` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `DM_DEVICE` ( + `ID` VARCHAR(20) NOT NULL , + `DESCRIPTION` TEXT NULL DEFAULT NULL , + `NAME` VARCHAR(100) NULL DEFAULT NULL , + `DATE_OF_ENROLLMENT` DATETIME NULL DEFAULT NULL , + `DATE_OF_LAST_UPDATE` DATETIME NULL DEFAULT NULL , + `OWNERSHIP` VARCHAR(45) NULL DEFAULT NULL , + `STATUS` VARCHAR(15) NULL DEFAULT NULL , + `DEVICE_TYPE_ID` INT(11) NULL DEFAULT NULL , + `DEVICE_IDENTIFICATION` VARCHAR(300) NULL DEFAULT NULL , + `OWNER` VARCHAR(45) NULL DEFAULT NULL , + PRIMARY KEY (`ID`) , + INDEX `fk_DM_DEVICE_DM_DEVICE_TYPE2_idx` (`DEVICE_TYPE_ID` ASC) , + CONSTRAINT `fk_DM_DEVICE_DM_DEVICE_TYPE2` + FOREIGN KEY (`DEVICE_TYPE_ID` ) + REFERENCES `DM_DEVICE_TYPE` (`ID` ) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB +DEFAULT CHARACTER SET = latin1; diff --git a/product/modules/distribution/src/repository/dbscripts/cdm/mysql.sql~ b/product/modules/distribution/src/repository/dbscripts/cdm/mysql.sql~ new file mode 100644 index 00000000000..fdb62f912f3 --- /dev/null +++ b/product/modules/distribution/src/repository/dbscripts/cdm/mysql.sql~ @@ -0,0 +1,36 @@ +USE `WSO2CDM_DB`; + +-- ----------------------------------------------------- +-- Table `DM_DEVICE_TYPE` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `DM_DEVICE_TYPE` ( + `ID` INT(11) NOT NULL , + `NAME` VARCHAR(300) NULL DEFAULT NULL , + PRIMARY KEY (`ID`) ) +ENGINE = InnoDB +DEFAULT CHARACTER SET = latin1; + + +-- ----------------------------------------------------- +-- Table `DM_DEVICE` +-- ----------------------------------------------------- +CREATE TABLE IF NOT EXISTS `DM_DEVICE` ( + `ID` VARCHAR(20) NOT NULL , + `DESCRIPTION` TEXT NULL DEFAULT NULL , + `NAME` VARCHAR(100) NULL DEFAULT NULL , + `DATE_OF_ENROLLMENT` DATETIME NULL DEFAULT NULL , + `DATE_OF_LAST_UPDATE` DATETIME NULL DEFAULT NULL , + `OWNERSHIP` VARCHAR(45) NULL DEFAULT NULL , + `STATUS` VARCHAR(15) NULL DEFAULT NULL , + `DEVICE_TYPE_ID` INT(11) NULL DEFAULT NULL , + `DEVICE_IDENTIFICATION` VARCHAR(300) NULL DEFAULT NULL , + `OWNER` VARCHAR(45) NULL DEFAULT NULL , + PRIMARY KEY (`ID`) , + INDEX `fk_DM_DEVICE_DM_DEVICE_TYPE2_idx` (`DEVICE_TYPE_ID` ASC) , + CONSTRAINT `fk_DM_DEVICE_DM_DEVICE_TYPE2` + FOREIGN KEY (`DEVICE_TYPE_ID` ) + REFERENCES `DM_DEVICE_TYPE` (`ID` ) + ON DELETE NO ACTION + ON UPDATE NO ACTION) +ENGINE = InnoDB +DEFAULT CHARACTER SET = latin1; From 87972270a636f687c38ba66f8d04e7fef87baf9d Mon Sep 17 00:00:00 2001 From: Geeth Munasinghe Date: Wed, 3 Dec 2014 15:27:38 +0530 Subject: [PATCH 4/4] Fixing version of the components --- components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml b/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml index 91b34069d7c..4e6a4b0ada7 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/pom.xml @@ -21,7 +21,7 @@ org.wso2.carbon device-mgt - 4.3.0-SNAPSHOT + 2.0.0-SNAPSHOT ../pom.xml