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

[25/50] [abbrv] git commit: Add the sql files for the cloudbridge

Add the sql files for the cloudbridge

Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/09739cfd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/09739cfd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/09739cfd

Branch: refs/heads/regions
Commit: 09739cfd78ec3c790364c91dac6b339405a3d57a
Parents: 3343362
Author: Hugo Trippaers <ht...@schubergphilis.com>
Authored: Tue Oct 2 07:35:59 2012 -0700
Committer: Hugo Trippaers <ht...@schubergphilis.com>
Committed: Tue Oct 2 07:35:59 2012 -0700

----------------------------------------------------------------------
 developer/pom.xml |   40 +++++++++++++++++++++++++++++++++++++++-
 1 files changed, 39 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/09739cfd/developer/pom.xml
----------------------------------------------------------------------
diff --git a/developer/pom.xml b/developer/pom.xml
index 37120fe..eb6e112 100644
--- a/developer/pom.xml
+++ b/developer/pom.xml
@@ -10,7 +10,6 @@
 	language governing permissions and limitations under the License. -->
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
 	<modelVersion>4.0.0</modelVersion>
-	<groupId>org.apache.cloudstack</groupId>
 	<artifactId>cloud-developer</artifactId>
 	<name>Apache CloudStack Developer Tools</name>
 	<packaging>pom</packaging>
@@ -75,6 +74,11 @@
 											<fileset dir="${project.basedir}/../setup/db/">
 											</fileset>
 										</copy>
+                                        <copy todir="${basedir}/target/db" filtering="true">
+                                            <fileset dir="${project.basedir}/../awsapi-setup/db/mysql/">
+                                              <include name="**/*.sql" />
+                                            </fileset>
+                                        </copy>
 									</target>
 								</configuration>
 							</execution>
@@ -155,6 +159,32 @@
                                     <sqlCommand>create database `cloud_usage`</sqlCommand>
                                 </configuration>
                             </execution>
+                            <execution>
+                                <id>drop-database-cloudbridge</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 `cloudbridge`</sqlCommand>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>create-database-cloudbridge</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 `cloudbridge`</sqlCommand>
+                                </configuration>
+                            </execution>
 							<execution>
 								<id>create-schema</id>
 								<phase>process-test-resources</phase>
@@ -167,6 +197,14 @@
 										<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>
+										<srcFile>${basedir}/target/db/cloudbridge_schema.sql</srcFile>
+										<srcFile>${basedir}/target/db/cloudbridge_multipart.sql</srcFile>
+										<srcFile>${basedir}/target/db/cloudbridge_index.sql</srcFile>
+										<srcFile>${basedir}/target/db/cloudbridge_multipart_alter.sql</srcFile>
+										<srcFile>${basedir}/target/db/cloudbridge_bucketpolicy.sql</srcFile>
+										<srcFile>${basedir}/target/db/cloudbridge_policy_alter.sql</srcFile>
+										<srcFile>${basedir}/target/db/cloudbridge_offering.sql</srcFile>
+										<srcFile>${basedir}/target/db/cloudbridge_offering_alter.sql</srcFile>
 									</srcFiles>
 								</configuration>
 							</execution>