mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
66 lines
3.1 KiB
SQL
66 lines
3.1 KiB
SQL
-- Licensed to the Apache Software Foundation (ASF) under one
|
|
-- or more contributor license agreements. See the NOTICE file
|
|
-- distributed with this work for additional information
|
|
-- regarding copyright ownership. The ASF licenses this file
|
|
-- to you under the Apache License, Version 2.0 (the
|
|
-- "License"); you may not use this file except in compliance
|
|
-- with the License. You may obtain a copy of the License at
|
|
--
|
|
-- http://www.apache.org/licenses/LICENSE-2.0
|
|
--
|
|
-- Unless required by applicable law or agreed to in writing,
|
|
-- software distributed under the License is distributed on an
|
|
-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
-- KIND, either express or implied. See the License for the
|
|
-- specific language governing permissions and limitations
|
|
-- under the License.
|
|
|
|
alter table vm_template add image_data_store_id bigint unsigned;
|
|
alter table storage_pool add storage_provider_id bigint unsigned;
|
|
alter table storage_pool add configurator_key varchar(255);
|
|
alter table storage_pool modify id bigint unsigned AUTO_INCREMENT UNIQUE NOT NULL;
|
|
alter table template_spool_ref add state varchar(255);
|
|
alter table template_spool_ref add update_count bigint unsigned;
|
|
alter table volumes add disk_type varchar(255);
|
|
alter table volumes drop foreign key `fk_volumes__account_id`;
|
|
CREATE TABLE `cloud`.`primary_data_store_provider` (
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
|
|
`name` varchar(255) NOT NULL COMMENT 'name of primary data store provider',
|
|
PRIMARY KEY(`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE `cloud`.`image_data_store_provider` (
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
|
|
`name` varchar(255) NOT NULL COMMENT 'name of data store provider',
|
|
PRIMARY KEY(`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE `cloud`.`image_data_store` (
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
|
|
`name` varchar(255) NOT NULL COMMENT 'name of data store',
|
|
`image_provider_id` bigint unsigned NOT NULL COMMENT 'id of image_data_store_provider',
|
|
PRIMARY KEY(`id`),
|
|
CONSTRAINT `fk_tags__image_data_store_provider_id` FOREIGN KEY(`image_provider_id`) REFERENCES `image_data_store_provider`(`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE `cloud`.`vm_compute_tags` (
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
|
|
`vm_id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'vm id',
|
|
`compute_tag` varchar(255) NOT NULL COMMENT 'name of tag',
|
|
PRIMARY KEY(`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE `cloud`.`vm_root_disk_tags` (
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
|
|
`vm_id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'vm id',
|
|
`root_disk_tag` varchar(255) NOT NULL COMMENT 'name of tag',
|
|
PRIMARY KEY(`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
CREATE TABLE `cloud`.`vm_network_map` (
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
|
|
`vm_id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'vm id',
|
|
`network_id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'network id',
|
|
PRIMARY KEY(`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |