Skip to content

Commit fe325ab

Browse files
committed
CLOUDSTACK-7624 The value field of the configuration table is not big enough for some values
(cherry picked from commit 9eb8656) Signed-off-by: Hugo Trippaers <htrippaers@schubergphilis.com>
1 parent 70efe15 commit fe325ab

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

framework/config/src/org/apache/cloudstack/framework/config/impl/ConfigurationVO.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public class ConfigurationVO implements Configuration {
4343
@Column(name = "name")
4444
private String name;
4545

46-
@Column(name = "value", length = 4095)
46+
@Column(name = "value", length = 8191)
4747
private String value;
4848

49-
@Column(name = "default_value", length = 4095)
49+
@Column(name = "default_value", length = 8191)
5050
private String defaultValue;
5151

5252
@Column(name = "description", length = 1024)

setup/db/db/schema-440to441.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,6 @@ INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, hypervis
178178
INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(),'Xenserver', '6.2.5', 'CentOS 6 (64-bit)', 228, now(), 0);
179179
INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(),'Xenserver', '6.2.5', 'Windows 8 (64-bit)', 229, now(), 0);
180180
INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, hypervisor_version, guest_os_name, guest_os_id, created, is_user_defined) VALUES (UUID(),'Xenserver', '6.2.5', 'Windows Server 2012 (64-bit)', 168, now(), 0);
181+
182+
-- Fix CLOUDSTACK-7624
183+
ALTER TABLE `cloud`.`configuration` MODIFY default_value varchar(8191), MODIFY value varchar(8191);

0 commit comments

Comments
 (0)