DB schema for android sense and script change

application-manager-new
menaka 9 years ago
parent 47c4c17012
commit 75d4344f6c

@ -285,7 +285,7 @@
<classpath refid="maven.runtime.classpath"/> <classpath refid="maven.runtime.classpath"/>
<fileset <fileset
file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/cdm/plugins/android_sense/h2.sql"/> file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/cdm/plugins/androidsense/h2.sql"/>
</sql> </sql>
<echo message="##################### END ####################"/> <echo message="##################### END ####################"/>
</tasks> </tasks>

@ -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