mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
field enlarged and db upgrade (#8675)
* 4.19 -> 4.19.1 and enlarge url field
This commit is contained in:
parent
c081f60427
commit
6502dde8c3
@ -16,9 +16,10 @@
|
|||||||
// under the License.
|
// under the License.
|
||||||
package com.cloud.upgrade.dao;
|
package com.cloud.upgrade.dao;
|
||||||
|
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
import com.cloud.upgrade.SystemVmTemplateRegistration;
|
import com.cloud.upgrade.SystemVmTemplateRegistration;
|
||||||
import com.cloud.utils.exception.CloudRuntimeException;
|
import com.cloud.utils.exception.CloudRuntimeException;
|
||||||
import org.apache.log4j.Logger;
|
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
@ -73,6 +74,10 @@ public class Upgrade41900to41910 implements DbUpgrade, DbUpgradeSystemVmTemplate
|
|||||||
DbUpgradeUtils.addIndexIfNeeded(conn, "vm_stats", "vm_id");
|
DbUpgradeUtils.addIndexIfNeeded(conn, "vm_stats", "vm_id");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void initSystemVmTemplateRegistration() {
|
||||||
|
systemVmTemplateRegistration = new SystemVmTemplateRegistration("");
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateSystemVmTemplates(Connection conn) {
|
public void updateSystemVmTemplates(Connection conn) {
|
||||||
LOG.debug("Updating System Vm template IDs");
|
LOG.debug("Updating System Vm template IDs");
|
||||||
@ -83,8 +88,4 @@ public class Upgrade41900to41910 implements DbUpgrade, DbUpgradeSystemVmTemplate
|
|||||||
throw new CloudRuntimeException("Failed to find / register SystemVM template(s)");
|
throw new CloudRuntimeException("Failed to find / register SystemVM template(s)");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initSystemVmTemplateRegistration() {
|
|
||||||
systemVmTemplateRegistration = new SystemVmTemplateRegistration("");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -31,6 +31,10 @@ SET usage_unit = 'IOPS', updated_on = NOW()
|
|||||||
WHERE effective_on = '2010-05-04 00:00:00'
|
WHERE effective_on = '2010-05-04 00:00:00'
|
||||||
AND name IN ('VM_DISK_IO_READ', 'VM_DISK_IO_WRITE');
|
AND name IN ('VM_DISK_IO_READ', 'VM_DISK_IO_WRITE');
|
||||||
|
|
||||||
|
-- allow for bigger urls
|
||||||
|
|
||||||
|
ALTER TABLE `cloud`.`vm_template` MODIFY COLUMN `url` VARCHAR(1024) DEFAULT NULL COMMENT 'the url where the template exists externally';
|
||||||
|
|
||||||
-- PR #7235 - [Usage] Create VPC billing
|
-- PR #7235 - [Usage] Create VPC billing
|
||||||
CREATE TABLE IF NOT EXISTS `cloud_usage`.`usage_vpc` (
|
CREATE TABLE IF NOT EXISTS `cloud_usage`.`usage_vpc` (
|
||||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user