Merge branch 'master' of https://gitlab.com/entgra/product-iots into application-manager-new

merge-requests/31/head
Charitha Goonetilleke 5 years ago
commit 482fb88cb4

@ -385,6 +385,34 @@
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
<executions> <executions>
<execution>
<!-- Creating Carbon schema -->
<id>create-carbon-schema</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<echo message="########### Create Carbon H2 Schema ###########" />
<property name="db.dir" value="target/wso2carbon-core-${carbon.kernel.version}/repository/database" />
<property name="userid" value="wso2carbon" />
<property name="password" value="wso2carbon" />
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/WSO2CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;AUTO_SERVER=TRUE" />
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" autocommit="true" onerror="continue">
<classpath refid="maven.dependency.classpath" />
<classpath refid="maven.compile.classpath" />
<classpath refid="maven.runtime.classpath" />
<fileset file="${basedir}/../distribution/src/core/resources/dbscripts/h2.sql" />
</sql>
<echo message="##################### END ####################" />
</tasks>
</configuration>
</execution>
<execution> <execution>
<!-- Creating Device Management schema --> <!-- Creating Device Management schema -->
<id>copy-con</id> <id>copy-con</id>

@ -161,11 +161,13 @@ CREATE INDEX IF NOT EXISTS REG_RESOURCE_TAG_IND_BY_VERSION ON REG_RESOURCE_TAG(R
CREATE TABLE IF NOT EXISTS REG_PROPERTY ( CREATE TABLE IF NOT EXISTS REG_PROPERTY (
REG_ID INTEGER NOT NULL AUTO_INCREMENT, REG_ID INTEGER NOT NULL AUTO_INCREMENT,
REG_NAME VARCHAR(100) NOT NULL, REG_NAME VARCHAR(100) NOT NULL,
REG_VALUE VARCHAR(10000), REG_VALUE VARCHAR(1000),
REG_TENANT_ID INTEGER DEFAULT 0, REG_TENANT_ID INTEGER DEFAULT 0,
CONSTRAINT PK_REG_PROPERTY PRIMARY KEY(REG_ID, REG_TENANT_ID) CONSTRAINT PK_REG_PROPERTY PRIMARY KEY(REG_ID, REG_TENANT_ID)
); );
ALTER TABLE REG_PROPERTY ALTER COLUMN REG_VALUE varchar(10000);
CREATE TABLE IF NOT EXISTS REG_RESOURCE_PROPERTY ( CREATE TABLE IF NOT EXISTS REG_RESOURCE_PROPERTY (
REG_PROPERTY_ID INTEGER NOT NULL, REG_PROPERTY_ID INTEGER NOT NULL,
REG_VERSION INTEGER, REG_VERSION INTEGER,

Loading…
Cancel
Save