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:
Alena Prokharchyk 2013-11-01 21:38:50 -07:00
parent 7a26894eb0
commit 2ff791b0b8
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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;