mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 8601: more db migration
This commit is contained in:
parent
a69b384ff3
commit
5b0f247b46
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user