From 162e5cf50a5ef5ea404d5cade47c56d83e304703 Mon Sep 17 00:00:00 2001 From: anthony Date: Tue, 13 Sep 2011 11:14:44 -0700 Subject: [PATCH] storage_ip_address in host table can be NULL --- setup/db/create-schema.sql | 2 +- setup/db/db/schema-2211to2212.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/db/create-schema.sql b/setup/db/create-schema.sql index 65257a90f22..be887c9f7e6 100755 --- a/setup/db/create-schema.sql +++ b/setup/db/create-schema.sql @@ -664,7 +664,7 @@ CREATE TABLE `cloud`.`host` ( `private_ip_address` char(40) NOT NULL, `private_netmask` varchar(15), `private_mac_address` varchar(17), - `storage_ip_address` char(40) NOT NULL, + `storage_ip_address` char(40), `storage_netmask` varchar(15), `storage_mac_address` varchar(17), `storage_ip_address_2` char(40), diff --git a/setup/db/db/schema-2211to2212.sql b/setup/db/db/schema-2211to2212.sql index 75e5d4a688e..f7dab355755 100644 --- a/setup/db/db/schema-2211to2212.sql +++ b/setup/db/db/schema-2211to2212.sql @@ -18,3 +18,5 @@ INSERT IGNORE INTO configuration VALUES ('Advanced', 'DEFAULT', 'management-serv update `cloud`.`vm_template` set hypervisor_type='XenServer' where unique_name='xs-tools.iso'; +ALTER TABLE `cloud`.`host` MODIFY COLUMN `storage_ip_address` char(40); +