From 9ec49112850179371291ef955be2151032a11b3b Mon Sep 17 00:00:00 2001 From: prachi Date: Wed, 2 Mar 2011 17:46:20 -0800 Subject: [PATCH] Removing the scripts to add host_tags table from 21 to 22 DBUpgrade script, since 2.1.7 already has the necessary table. --- setup/db/schema-21to22.sql | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/setup/db/schema-21to22.sql b/setup/db/schema-21to22.sql index 346cb89b43e..29ed5f5064a 100755 --- a/setup/db/schema-21to22.sql +++ b/setup/db/schema-21to22.sql @@ -551,16 +551,6 @@ CREATE TABLE `cloud`.`storage_pool_work` ( UNIQUE (pool_id,vm_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ---CREATE TABLE `cloud`.`host_tags` ( --- `id` bigint unsigned NOT NULL auto_increment, --- `host_id` bigint unsigned NOT NULL COMMENT 'host id', --- `tag` varchar(255) NOT NULL, --- PRIMARY KEY (`id`) ---) ENGINE=InnoDB DEFAULT CHARSET=utf8; - ---ALTER TABLE `cloud`.`host_tags` ADD CONSTRAINT `fk_host_tags__host_id` FOREIGN KEY `fk_host_tags__host_id`(`host_id`) REFERENCES `host`(`id`) ON DELETE CASCADE; ---ALTER TABLE `cloud`.`service_offering` ADD COLUMN `host_tag` varchar(255); - -- Insert stuff?; INSERT INTO `cloud`.`sequence` (name, value) VALUES ('volume_seq', (SELECT max(id) + 1 or 200 from volumes)); INSERT INTO `cloud`.`sequence` (name, value) VALUES ('networks_seq', 200);