Skip to content

Commit 09739cf

Browse files
committed
Add the sql files for the cloudbridge
1 parent 3343362 commit 09739cf

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

developer/pom.xml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
language governing permissions and limitations under the License. -->
1111
<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">
1212
<modelVersion>4.0.0</modelVersion>
13-
<groupId>org.apache.cloudstack</groupId>
1413
<artifactId>cloud-developer</artifactId>
1514
<name>Apache CloudStack Developer Tools</name>
1615
<packaging>pom</packaging>
@@ -75,6 +74,11 @@
7574
<fileset dir="${project.basedir}/../setup/db/">
7675
</fileset>
7776
</copy>
77+
<copy todir="${basedir}/target/db" filtering="true">
78+
<fileset dir="${project.basedir}/../awsapi-setup/db/mysql/">
79+
<include name="**/*.sql" />
80+
</fileset>
81+
</copy>
7882
</target>
7983
</configuration>
8084
</execution>
@@ -154,6 +158,32 @@
154158
<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
155159
<sqlCommand>create database `cloud_usage`</sqlCommand>
156160
</configuration>
161+
</execution>
162+
<execution>
163+
<id>drop-database-cloudbridge</id>
164+
<phase>process-test-resources</phase>
165+
<goals>
166+
<goal>execute</goal>
167+
</goals>
168+
<configuration>
169+
<username>root</username>
170+
<password>${db.cloud.password}</password>
171+
<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
172+
<sqlCommand>drop database if exists `cloudbridge`</sqlCommand>
173+
</configuration>
174+
</execution>
175+
<execution>
176+
<id>create-database-cloudbridge</id>
177+
<phase>process-test-resources</phase>
178+
<goals>
179+
<goal>execute</goal>
180+
</goals>
181+
<configuration>
182+
<username>root</username>
183+
<password>${db.cloud.password}</password>
184+
<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
185+
<sqlCommand>create database `cloudbridge`</sqlCommand>
186+
</configuration>
157187
</execution>
158188
<execution>
159189
<id>create-schema</id>
@@ -167,6 +197,14 @@
167197
<srcFile>${basedir}/target/db/create-schema-premium.sql</srcFile>
168198
<srcFile>${basedir}/target/db/templates.sql</srcFile>
169199
<srcFile>${basedir}/target/db/create-index-fk.sql</srcFile>
200+
<srcFile>${basedir}/target/db/cloudbridge_schema.sql</srcFile>
201+
<srcFile>${basedir}/target/db/cloudbridge_multipart.sql</srcFile>
202+
<srcFile>${basedir}/target/db/cloudbridge_index.sql</srcFile>
203+
<srcFile>${basedir}/target/db/cloudbridge_multipart_alter.sql</srcFile>
204+
<srcFile>${basedir}/target/db/cloudbridge_bucketpolicy.sql</srcFile>
205+
<srcFile>${basedir}/target/db/cloudbridge_policy_alter.sql</srcFile>
206+
<srcFile>${basedir}/target/db/cloudbridge_offering.sql</srcFile>
207+
<srcFile>${basedir}/target/db/cloudbridge_offering_alter.sql</srcFile>
170208
</srcFiles>
171209
</configuration>
172210
</execution>

0 commit comments

Comments
 (0)