mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Fix ordering of sql commands and set root domain
This commit is contained in:
parent
975fc997f7
commit
8cde670871
@ -105,7 +105,7 @@
|
|||||||
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>create-database</id>
|
<id>drop-database</id>
|
||||||
<phase>process-test-resources</phase>
|
<phase>process-test-resources</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>execute</goal>
|
<goal>execute</goal>
|
||||||
@ -115,8 +115,19 @@
|
|||||||
<password>${db.cloud.password}</password>
|
<password>${db.cloud.password}</password>
|
||||||
<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
|
<url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}</url>
|
||||||
<sqlCommand>drop database if exists `cloud`</sqlCommand>
|
<sqlCommand>drop database if exists `cloud`</sqlCommand>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>create-database</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`</sqlCommand>
|
<sqlCommand>create database `cloud`</sqlCommand>
|
||||||
<!-- <onError>continue</onError> -->
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
<execution>
|
<execution>
|
||||||
@ -133,6 +144,16 @@
|
|||||||
</srcFiles>
|
</srcFiles>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>prefill-schema</id>
|
||||||
|
<phase>process-test-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>execute</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<sqlCommand>INSERT INTO `cloud`.`domain` (id, name, parent, path, owner) VALUES (1, 'ROOT', NULL, '/', 2)</sqlCommand>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user