You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ki...@apache.org on 2012/10/17 10:50:11 UTC
[27/50] [abbrv] git commit: create the usage db as well
create the usage db as well
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/9ebe8328
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/9ebe8328
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/9ebe8328
Branch: refs/heads/regions
Commit: 9ebe83286eb04c5b3d35f8788c03749b426e06e8
Parents: 28bfaea
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Mon Oct 1 21:35:30 2012 -0700
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Mon Oct 1 21:36:38 2012 -0700
----------------------------------------------------------------------
developer/pom.xml | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/9ebe8328/developer/pom.xml
----------------------------------------------------------------------
diff --git a/developer/pom.xml b/developer/pom.xml
index f0742e4..37120fe 100644
--- a/developer/pom.xml
+++ b/developer/pom.xml
@@ -129,6 +129,32 @@
<sqlCommand>create database `cloud`</sqlCommand>
</configuration>
</execution>
+ <execution>
+ <id>drop-database-usage</id>
+ <phase>process-test-resources</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <username>root</username>
+ <password>${db.cloud.password}</password>
+ <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
+ <sqlCommand>drop database if exists `cloud_usage`</sqlCommand>
+ </configuration>
+ </execution>
+ <execution>
+ <id>create-database-usage</id>
+ <phase>process-test-resources</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <username>root</username>
+ <password>${db.cloud.password}</password>
+ <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
+ <sqlCommand>create database `cloud_usage`</sqlCommand>
+ </configuration>
+ </execution>
<execution>
<id>create-schema</id>
<phase>process-test-resources</phase>
@@ -138,6 +164,7 @@
<configuration>
<srcFiles>
<srcFile>${basedir}/target/db/create-schema.sql</srcFile>
+ <srcFile>${basedir}/target/db/create-schema-premium.sql</srcFile>
<srcFile>${basedir}/target/db/templates.sql</srcFile>
<srcFile>${basedir}/target/db/create-index-fk.sql</srcFile>
</srcFiles>