mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Remove unused tables event and usage_security_group from cloud_usage schema.
This commit is contained in:
parent
74641d327f
commit
6303ab8a10
@ -1,5 +1,4 @@
|
||||
SET foreign_key_checks = 0;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`event`;
|
||||
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`;
|
||||
@ -9,24 +8,11 @@ DROP TABLE IF EXISTS `cloud_usage`.`account`;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`user_statistics`;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`usage_volume`;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`usage_storage`;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`usage_security_group`;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`usage_load_balancer_policy`;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`usage_port_forwarding`;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`usage_network_offering`;
|
||||
DROP TABLE IF EXISTS `cloud_usage`.`usage_event`;
|
||||
|
||||
CREATE TABLE `cloud_usage`.`event` (
|
||||
`id` bigint unsigned NOT NULL auto_increment,
|
||||
`type` varchar(32) NOT NULL,
|
||||
`description` varchar(1024) NOT NULL,
|
||||
`user_id` bigint unsigned NOT NULL,
|
||||
`account_id` bigint unsigned NOT NULL,
|
||||
`created` datetime NOT NULL,
|
||||
`level` varchar(16) NOT NULL,
|
||||
`parameters` varchar(1024) NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `cloud_usage`.`cloud_usage` (
|
||||
`id` bigint unsigned NOT NULL auto_increment,
|
||||
`zone_id` bigint unsigned NOT NULL,
|
||||
@ -186,17 +172,6 @@ ALTER TABLE `cloud_usage`.`usage_storage` ADD INDEX `i_usage_storage__account_id
|
||||
ALTER TABLE `cloud_usage`.`usage_storage` ADD INDEX `i_usage_storage__created`(`created`);
|
||||
ALTER TABLE `cloud_usage`.`usage_storage` ADD INDEX `i_usage_storage__deleted`(`deleted`);
|
||||
|
||||
CREATE TABLE `cloud_usage`.`usage_security_group` (
|
||||
`id` bigint unsigned NOT NULL,
|
||||
`zone_id` bigint unsigned NOT NULL,
|
||||
`account_id` bigint unsigned NOT NULL,
|
||||
`domain_id` bigint unsigned NOT NULL,
|
||||
`vm_id` bigint unsigned NOT NULL,
|
||||
`num_rules` bigint unsigned NOT NULL,
|
||||
`created` DATETIME NOT NULL,
|
||||
`deleted` DATETIME NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
CREATE TABLE `cloud_usage`.`usage_load_balancer_policy` (
|
||||
`id` bigint unsigned NOT NULL,
|
||||
`zone_id` bigint unsigned NOT NULL,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user