marcaurele commented on a change in pull request #2578: api: add command to
list management servers
URL: https://github.com/apache/cloudstack/pull/2578#discussion_r225525504
##########
File path:
engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade41120to41200.java
##########
@@ -52,7 +57,15 @@ public boolean supportsRollingUpgrade() {
@Override
public void performDataMigration(Connection conn) {
+ updateManagementServerHostUuid(conn);
+ }
+ private void updateManagementServerHostUuid(Connection conn) {
+ try (final PreparedStatement updateStatement =
conn.prepareStatement("UPDATE cloud.mshost SET uuid=UUID()")) {
Review comment:
I'm adding the column with this PR, so all the rows will have their `uuid`
set to `null`. I don't see the need to make it more precise.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services