From 08036d5312b859c5eb350bffe7ca00f8fb17c8fc Mon Sep 17 00:00:00 2001 From: alena Date: Sat, 26 Mar 2011 17:06:28 -0700 Subject: [PATCH] GuestIP field can be null in network_offerings table - fixed 221 to 222 upgrade script --- setup/db/221to222.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/db/221to222.sql b/setup/db/221to222.sql index bd57bf97542..0d0efa61a65 100644 --- a/setup/db/221to222.sql +++ b/setup/db/221to222.sql @@ -12,7 +12,7 @@ INSERT INTO configuration (`category`, `instance`, `component`, `name`, `value`, alter table user_statistics add column `network_id` bigint unsigned; update op_networks set nics_count=(nics_count-1) where id in (select d.network_id from domain_router d, vm_instance i where i.state='Running' and i.id=d.id); update network_offerings set traffic_type='Guest' where system_only=0; -alter table network_offerings add column `guest_type` char(32) NOT NULL; +alter table network_offerings add column `guest_type` char(32); update network_offerings set guest_type='Direct' where id=5; update network_offerings set guest_type='Virtual' where id=6; update network_offerings set guest_type='Direct' where id=7;