bug 8601: more db migration

This commit is contained in:
abhishek 2011-03-04 14:08:39 -08:00
parent a69b384ff3
commit 5b0f247b46
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ update nics set vm_type=(select type from vm_instance where vm_instance.id=nics.
delete from configuration where name='router.cleanup';
INSERT INTO configuration (`category`, `instance`, `component`, `name`, `value`, `description`) VALUES ('Network','DEFAULT','none','network.guest.cidr.limit','22','size limit for guest cidr; cant be less than this value');
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 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;
update network_offerings set guest_type='Direct' where id=5;

View File

@ -8,7 +8,7 @@ alter table nics add column `vm_type` char(32) NOT NULL;
update nics set vm_type=(select type from vm_instance where vm_instance.id=nics.instance_id);
INSERT INTO configuration (`category`, `instance`, `component`, `name`, `value`, `description`) VALUES ('Network','DEFAULT','none','network.guest.cidr.limit','22','size limit for guest cidr; cant be less than this value');
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 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;
update network_offerings set guest_type='Direct' where id=5;