bug 8601: changing traffic_type to guest_type

This commit is contained in:
abhishek 2011-03-01 17:57:55 -08:00
parent d50a6a2e97
commit 0f53f2a2c7
2 changed files with 6 additions and 6 deletions

View File

@ -13,9 +13,9 @@ alter table user_statistics add column `network_id` bigint unsigned;
update op_networks set 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;
update network_offerings set traffic_type='Direct' where id=5;
update network_offerings set traffic_type='Virtual' where id=6;
update network_offerings set traffic_type='Direct' where id=7;
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;
alter table op_it_work add column `vm_type` char(32) NOT NULL;
update op_it_work set vm_type=(select type from vm_instance where vm_instance.id=op_it_work.instance_id);
alter table networks add column `is_security_group_enabled` tinyint NOT NULL DEFAULT 0 COMMENT '1: enabled, 0: not';

View File

@ -11,9 +11,9 @@ alter table user_statistics add column `network_id` bigint unsigned;
update op_networks set 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;
update network_offerings set traffic_type='Direct' where id=5;
update network_offerings set traffic_type='Virtual' where id=6;
update network_offerings set traffic_type='Direct' where id=7;
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;
alter table op_it_work add column `vm_type` char(32) NOT NULL;
update op_it_work set vm_type=(select type from vm_instance where vm_instance.id=op_it_work.instance_id);
alter table networks add column `is_security_group_enabled` tinyint NOT NULL DEFAULT 0 COMMENT '1: enabled, 0: not';