Github user jburwell commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/768#discussion_r46777722
  
    --- Diff: engine/schema/src/com/cloud/upgrade/dao/Upgrade461to470.java ---
    @@ -51,8 +53,23 @@ public boolean supportsRollingUpgrade() {
             return new File[] {new File(script)};
         }
     
    +    public void alterAddColumnToCloudUsage(final Connection conn) {
    +        final String alterTableSql = "ALTER TABLE 
`cloud_usage`.`cloud_usage` ADD COLUMN `quota_calculated` tinyint(1) DEFAULT 0 
NOT NULL COMMENT 'quota calculation status'";
    +        try (PreparedStatement pstmt = 
conn.prepareStatement(alterTableSql)) {
    +            pstmt.executeUpdate();
    +            s_logger.info("Altered usage table and added column 
quota_calculated");
    --- End diff --
    
    The log statement to should reflect the actual name of table, 
``cloud_usage``, altered in order to avoid ambiguity.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to