nvazquez commented on code in PR #9549:
URL: https://github.com/apache/cloudstack/pull/9549#discussion_r1727134128
##########
engine/schema/src/main/java/org/apache/cloudstack/acl/RoleVO.java:
##########
@@ -58,11 +58,16 @@ public class RoleVO implements Role {
@Column(name = "public_role")
private boolean publicRole = true;
+ @Column(name = "state")
+ @Enumerated(value = EnumType.STRING)
+ private State state;
+
@Column(name = GenericDao.REMOVED_COLUMN)
private Date removed;
public RoleVO() {
this.uuid = UUID.randomUUID().toString();
+ this.state = State.ENABLED;
Review Comment:
@DaanHoogland if I understand your question correctly, this is needed as the
state DB column needs a non-null value, so each time a new role is created it
is enabled by default.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]