mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-5025: volumes.display_volume field should be set to 1 by default. DB used to handle this, but VO was missing the default field assignment. Fixed th
e VO and db upgrade to update all existing volumes with 1 value
This commit is contained in:
parent
7a26894eb0
commit
2ff791b0b8
|
|
@ -146,7 +146,7 @@ public class VolumeVO implements Volume {
|
|||
private Storage.ImageFormat format;
|
||||
|
||||
@Column(name = "display_volume", updatable = true, nullable = false)
|
||||
protected boolean displayVolume;
|
||||
protected boolean displayVolume = true;
|
||||
|
||||
@Column(name = "iscsi_name")
|
||||
private String _iScsiName;
|
||||
|
|
|
|||
|
|
@ -485,3 +485,5 @@ INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'manag
|
|||
'Sets the object type of groups within LDAP','groupOfUniqueNames',NULL,NULL,0);
|
||||
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server', 'ldap.group.user.uniquemember', 'uniquemember',
|
||||
'Sets the attribute for uniquemembers within a group','uniquemember',NULL,NULL,0);
|
||||
|
||||
UPDATE `cloud`.`volumes` SET display_volume=1 where id>0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue