mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
245c32538b
commit
09e26c826f
@ -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…
x
Reference in New Issue
Block a user