mirror of
https://repository.entgra.net/community/product-iots-community.git
synced 2025-09-16 23:32:20 +00:00
alter h2 db for tenant creation fail issue
This commit is contained in:
parent
a6c037b60b
commit
a085445de5
@ -108,6 +108,33 @@
|
|||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<!--Alter shared h2 db -->
|
||||||
|
<id>alter-shared-h2-db</id>
|
||||||
|
<phase>process-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<delete file="${basedir}/target/${wso2am}/repository/database/WSO2SHARED_DB.mv.db"/>
|
||||||
|
<echo message="########### Create Device Management H2 Schema ###########" />
|
||||||
|
<property name="db.dir" value="target/${wso2am}/repository/database" />
|
||||||
|
<property name="userid" value="wso2carbon" />
|
||||||
|
<property name="password" value="wso2carbon" />
|
||||||
|
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/WSO2SHARED_DB;DB_CLOSE_ON_EXIT=FALSE" />
|
||||||
|
|
||||||
|
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" onerror="continue">
|
||||||
|
<classpath refid="maven.dependency.classpath" />
|
||||||
|
<classpath refid="maven.compile.classpath" />
|
||||||
|
<classpath refid="maven.runtime.classpath" />
|
||||||
|
|
||||||
|
<fileset file="${basedir}/target/${wso2am}/dbscripts/h2.sql" />
|
||||||
|
</sql>
|
||||||
|
<echo message="##################### END ####################" />
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
<!--Creating Device Management schema-->
|
<!--Creating Device Management schema-->
|
||||||
<id>create-device-mgt-schema</id>
|
<id>create-device-mgt-schema</id>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user