mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5458: cpu speed is not getting updated in vm_instance table after service offeirngs change
Removed cpu, ram and cpu speed fields from the vm_instance table as these are not used
This commit is contained in:
parent
c5088eeab5
commit
efe2549e7a
|
|
@ -54,7 +54,6 @@ public class VirtualMachineEntityImpl implements VirtualMachineEntity {
|
|||
this.vmEntityVO.setOwner(owner);
|
||||
this.vmEntityVO.setHostname(hostName);
|
||||
this.vmEntityVO.setDisplayname(displayName);
|
||||
this.vmEntityVO.setSpeed(speed);
|
||||
this.vmEntityVO.setComputeTags(computeTags);
|
||||
this.vmEntityVO.setRootDiskTags(rootDiskTags);
|
||||
this.vmEntityVO.setNetworkIds(networks);
|
||||
|
|
@ -72,7 +71,6 @@ public class VirtualMachineEntityImpl implements VirtualMachineEntity {
|
|||
this.vmEntityVO.setOwner(owner);
|
||||
this.vmEntityVO.setHostname(hostName);
|
||||
this.vmEntityVO.setDisplayname(displayName);
|
||||
this.vmEntityVO.setSpeed(speed);
|
||||
this.vmEntityVO.setComputeTags(computeTags);
|
||||
this.vmEntityVO.setRootDiskTags(rootDiskTags);
|
||||
this.vmEntityVO.setNetworkIds(networks);
|
||||
|
|
|
|||
|
|
@ -145,12 +145,6 @@ public class VMEntityVO implements VirtualMachine, FiniteStateObject<State, Virt
|
|||
@Enumerated(value=EnumType.STRING)
|
||||
protected HypervisorType hypervisorType;
|
||||
|
||||
@Column(name="ram")
|
||||
protected long ram;
|
||||
|
||||
@Column(name="cpu")
|
||||
protected int cpu;
|
||||
|
||||
@Transient
|
||||
Map<String, String> details;
|
||||
|
||||
|
|
@ -161,9 +155,6 @@ public class VMEntityVO implements VirtualMachine, FiniteStateObject<State, Virt
|
|||
@Column(name="owner")
|
||||
private String owner = null;
|
||||
|
||||
@Column(name="speed")
|
||||
private int speed;
|
||||
|
||||
@Transient
|
||||
List<String> computeTags;
|
||||
|
||||
|
|
@ -513,14 +504,6 @@ public class VMEntityVO implements VirtualMachine, FiniteStateObject<State, Virt
|
|||
this.owner = owner;
|
||||
}
|
||||
|
||||
public int getSpeed() {
|
||||
return speed;
|
||||
}
|
||||
|
||||
public void setSpeed(int speed) {
|
||||
this.speed = speed;
|
||||
}
|
||||
|
||||
public List<String> getComputeTags() {
|
||||
return computeTags;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -861,4 +861,9 @@ CREATE TABLE `cloud`.`s2s_vpn_connection_details` (
|
|||
`display` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'True if the detail can be displayed to the end user',
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `fk_s2s_vpn_connection_details__s2s_vpn_connection_id` FOREIGN KEY `fk_s2s_vpn_connection_details__s2s_vpn_connection_id`(`s2s_vpn_connection_id`) REFERENCES `s2s_vpn_connection`(`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `cloud`.`vm_instance` DROP COLUMN `cpu`;
|
||||
ALTER TABLE `cloud`.`vm_instance` DROP COLUMN `ram`;
|
||||
ALTER TABLE `cloud`.`vm_instance` DROP COLUMN `speed`;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue