Merge pull request #2 from menaka121/master

DB schema and script change
application-manager-new
Charitha Goonetilleke 9 years ago
commit f25b56543a

@ -260,7 +260,7 @@
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
<!-- Creating Virtual Firealarm Plugin Management schema --> <!-- Creating Android Sense Plugin Management schema -->
<id>create-android-sense-plugin-mgt-schema</id> <id>create-android-sense-plugin-mgt-schema</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>

@ -217,5 +217,26 @@
</configuration> </configuration>
</definition> </definition>
</datasource> </datasource>
<datasource>
<name>AndroidSenseDM_DB</name>
<description>The datasource used for the Android-Sense database</description>
<jndiConfig>
<name>jdbc/AndroidSenseDM_DB</name>
</jndiConfig>
<definition type="RDBMS">
<configuration>
<url>jdbc:h2:repository/database/AndroidSenseDM_DB;DB_CLOSE_ON_EXIT=FALSE
</url>
<username>wso2carbon</username>
<password>wso2carbon</password>
<driverClassName>org.h2.Driver</driverClassName>
<maxActive>50</maxActive>
<maxWait>60000</maxWait>
<testOnBorrow>true</testOnBorrow>
<validationQuery>SELECT 1</validationQuery>
<validationInterval>30000</validationInterval>
</configuration>
</definition>
</datasource>
</datasources> </datasources>
</datasources-configuration> </datasources-configuration>

@ -34,7 +34,7 @@
<Type>LONG</Type> <Type>LONG</Type>
</ColumnDefinition> </ColumnDefinition>
<ColumnDefinition> <ColumnDefinition>
<Name>battery</Name> <Name>accelerometer</Name>
<EnableIndexing>false</EnableIndexing> <EnableIndexing>false</EnableIndexing>
<IsPrimaryKey>false</IsPrimaryKey> <IsPrimaryKey>false</IsPrimaryKey>
<EnableScoreParam>false</EnableScoreParam> <EnableScoreParam>false</EnableScoreParam>

Loading…
Cancel
Save