From 336e81cc2cf64d42680d860084f374dddf08ff6c Mon Sep 17 00:00:00 2001 From: abhishek Date: Thu, 14 Oct 2010 19:39:07 -0700 Subject: [PATCH] schema changes --- setup/db/create-schema.sql | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/setup/db/create-schema.sql b/setup/db/create-schema.sql index 3dfae760213..2dc9d9f090f 100644 --- a/setup/db/create-schema.sql +++ b/setup/db/create-schema.sql @@ -76,9 +76,10 @@ DROP TABLE IF EXISTS `cloud`.`cluster`; /*DO NOT DELETE*/ /* -DROP TABLE IF EXISTS `cloud`.`netapp_storage_pool`; +DROP TABLE IF EXISTS `cloud`.`netapp_volume`; +DROP TABLE IF EXISTS `cloud`.`pool`; -CREATE TABLE `cloud`.`netapp_storage_pool` ( +CREATE TABLE `cloud`.`netapp_volume` ( `id` bigint unsigned NOT NULL UNIQUE AUTO_INCREMENT COMMENT 'id', `ip_address` varchar(15) NOT NULL COMMENT 'ip address of the pool/volume', `pool_name` varchar(255) NOT NULL COMMENT 'name for the pool/volume', @@ -92,6 +93,14 @@ CREATE TABLE `cloud`.`netapp_storage_pool` ( `round_robin_marker` int COMMENT 'This marks the volume to be picked up for lun creation, RR fashion', PRIMARY KEY (`ip_address`,`aggregate_name`,`volume_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +CREATE TABLE `cloud`.`pool` ( + `id` bigint unsigned NOT NULL UNIQUE AUTO_INCREMENT COMMENT 'id', + `name` varchar(255) NOT NULL UNIQUE COMMENT 'name for the pool', + `algorithm` varchar(255) NOT NULL COMMENT 'algorithm', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + */ CREATE TABLE `cloud`.`cluster` (