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..3e6168d7033 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,10 +1,27 @@
+
org.wso2.carbon
device-mgt
- 4.3.0-SNAPSHOT
+ 2.0.0-SNAPSHOT
../pom.xml
@@ -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,
@@ -69,21 +86,6 @@
-
-
- org.testng
- testng
- test
-
-
- junit
- junit
- test
-
-
-
-
-
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 7da7c90c125..91208addaba 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,17 @@
-
+
+ 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
+
+
\ No newline at end of file
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;