mirror of https://github.com/apache/cloudstack.git
db: use explicit USE statements to avoid SQL failures
create-schema-premium.sql may fail with certain MySQL/MariaDB version which
require explicit database use.
(cherry picked from commit 09e26c826f)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
177c190367
commit
b9e0e914c4
|
|
@ -16,6 +16,7 @@
|
|||
-- under the License.
|
||||
|
||||
SET foreign_key_checks = 0;
|
||||
USE `cloud_usage`;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`cloud_usage`;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`usage_vm_instance`;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`usage_ip_address`;
|
||||
|
|
@ -282,6 +283,8 @@ ALTER TABLE `cloud_usage`.`usage_security_group` ADD INDEX `i_usage_security_gro
|
|||
ALTER TABLE `cloud_usage`.`usage_security_group` ADD INDEX `i_usage_security_group__created`(`created`);
|
||||
ALTER TABLE `cloud_usage`.`usage_security_group` ADD INDEX `i_usage_security_group__deleted`(`deleted`);
|
||||
|
||||
USE `cloud`;
|
||||
|
||||
CREATE TABLE `cloud`.`netapp_volume` (
|
||||
`id` bigint unsigned NOT NULL UNIQUE AUTO_INCREMENT COMMENT 'id',
|
||||
`ip_address` varchar(255) NOT NULL COMMENT 'ip address/fqdn of the volume',
|
||||
|
|
|
|||
Loading…
Reference in New Issue