diff --git a/setup/db/221to222.sql b/setup/db/221to222.sql index f63c91f13d2..330db10d67e 100644 --- a/setup/db/221to222.sql +++ b/setup/db/221to222.sql @@ -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 guest_type='System-Guest-Network' where traffic_type='Direct'; -update network_offerings set guest_type='DefaultVirtualizedNetworkOffering' where traffic_type='Virtual'; -update network_offerings set guest_type='DefaultDirectNetworkOffering' where traffic_type='Direct'; +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; 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'; diff --git a/setup/db/schema-221to222.sql b/setup/db/schema-221to222.sql index 33f8805f67d..41430f03f97 100644 --- a/setup/db/schema-221to222.sql +++ b/setup/db/schema-221to222.sql @@ -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 guest_type='System-Guest-Network' where traffic_type='Direct'; -update network_offerings set guest_type='DefaultVirtualizedNetworkOffering' where traffic_type='Virtual'; -update network_offerings set guest_type='DefaultDirectNetworkOffering' where traffic_type='Direct'; +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; 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';