|
22 | 22 | use cloud; |
23 | 23 | SET foreign_key_checks = 0; |
24 | 24 |
|
25 | | -alter table vm_template add image_data_store_id bigint unsigned; |
26 | 25 | alter table vm_template add size bigint unsigned; |
27 | 26 | alter table vm_template add state varchar(255); |
28 | 27 | alter table vm_template add update_count bigint unsigned; |
@@ -59,45 +58,6 @@ alter table cluster add column owner varchar(255); |
59 | 58 | alter table cluster add column created datetime COMMENT 'date created'; |
60 | 59 | alter table cluster add column lastUpdated datetime COMMENT 'last updated'; |
61 | 60 | alter table cluster add column engine_state varchar(32) NOT NULL DEFAULT 'Disabled' COMMENT 'the engine state of the zone'; |
62 | | -CREATE TABLE `cloud`.`object_datastore_ref` ( |
63 | | - `id` bigint unsigned NOT NULL auto_increment, |
64 | | - `datastore_id` bigint unsigned NOT NULL, |
65 | | - `datastore_role` varchar(255) NOT NULL, |
66 | | - `object_id` bigint unsigned NOT NULL, |
67 | | - `object_type` varchar(255) NOT NULL, |
68 | | - `created` DATETIME NOT NULL, |
69 | | - `last_updated` DATETIME, |
70 | | - `job_id` varchar(255), |
71 | | - `download_pct` int(10) unsigned, |
72 | | - `download_state` varchar(255), |
73 | | - `error_str` varchar(255), |
74 | | - `local_path` varchar(255), |
75 | | - `install_path` varchar(255), |
76 | | - `size` bigint unsigned COMMENT 'the size of the template on the pool', |
77 | | - `state` varchar(255) NOT NULL, |
78 | | - `update_count` bigint unsigned NOT NULL, |
79 | | - `updated` DATETIME, |
80 | | - PRIMARY KEY (`id`) |
81 | | -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; |
82 | | - |
83 | | -CREATE TABLE `cloud`.`data_store_provider` ( |
84 | | - `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', |
85 | | - `name` varchar(255) NOT NULL COMMENT 'name of primary data store provider', |
86 | | - `uuid` varchar(255) NOT NULL COMMENT 'uuid of primary data store provider', |
87 | | - PRIMARY KEY(`id`) |
88 | | -) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
89 | | - |
90 | | -CREATE TABLE `cloud`.`image_data_store` ( |
91 | | - `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', |
92 | | - `name` varchar(255) NOT NULL COMMENT 'name of data store', |
93 | | - `image_provider_id` bigint unsigned NOT NULL COMMENT 'id of image_data_store_provider', |
94 | | - `protocol` varchar(255) NOT NULL COMMENT 'protocol of data store', |
95 | | - `data_center_id` bigint unsigned COMMENT 'datacenter id of data store', |
96 | | - `scope` varchar(255) COMMENT 'scope of data store', |
97 | | - `uuid` varchar(255) COMMENT 'uuid of data store', |
98 | | - PRIMARY KEY(`id`), |
99 | | - CONSTRAINT `fk_tags__image_data_store_provider_id` FOREIGN KEY(`image_provider_id`) REFERENCES `data_store_provider`(`id`) |
100 | | -) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
101 | 61 |
|
102 | 62 | CREATE TABLE `cloud`.`vm_compute_tags` ( |
103 | 63 | `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT 'id', |
|
0 commit comments