|
10 | 10 | language governing permissions and limitations under the License. --> |
11 | 11 | <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"> |
12 | 12 | <modelVersion>4.0.0</modelVersion> |
13 | | - <groupId>org.apache.cloudstack</groupId> |
14 | 13 | <artifactId>cloud-developer</artifactId> |
15 | 14 | <name>Apache CloudStack Developer Tools</name> |
16 | 15 | <packaging>pom</packaging> |
|
75 | 74 | <fileset dir="${project.basedir}/../setup/db/"> |
76 | 75 | </fileset> |
77 | 76 | </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> |
78 | 82 | </target> |
79 | 83 | </configuration> |
80 | 84 | </execution> |
|
154 | 158 | <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url> |
155 | 159 | <sqlCommand>create database `cloud_usage`</sqlCommand> |
156 | 160 | </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> |
157 | 187 | </execution> |
158 | 188 | <execution> |
159 | 189 | <id>create-schema</id> |
|
167 | 197 | <srcFile>${basedir}/target/db/create-schema-premium.sql</srcFile> |
168 | 198 | <srcFile>${basedir}/target/db/templates.sql</srcFile> |
169 | 199 | <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> |
170 | 208 | </srcFiles> |
171 | 209 | </configuration> |
172 | 210 | </execution> |
|
0 commit comments