mirror of https://github.com/apache/cloudstack.git
Bug 13423: Upgrade 2213 to 2214 add the snapshot index since it was introduced for 2214.
Reviewed-By: Kishan
This commit is contained in:
parent
e7f6ffbd43
commit
a2e3a12982
|
|
@ -96,7 +96,7 @@ public class Upgrade2213to2214 implements DbUpgrade {
|
|||
//Drop i_snapshots__removed key (if exists) and re-add it again
|
||||
keys = new ArrayList<String>();
|
||||
keys.add("i_snapshots__removed");
|
||||
DbUpgradeUtils.dropKeysIfExist(conn, "snapshots.removed", keys, false);
|
||||
DbUpgradeUtils.dropKeysIfExist(conn, "cloud.snapshots", keys, false);
|
||||
try {
|
||||
PreparedStatement pstmt = conn.prepareStatement("ALTER TABLE `cloud`.`snapshots` ADD INDEX `i_snapshots__removed`(`removed`)");
|
||||
pstmt.executeUpdate();
|
||||
|
|
|
|||
Loading…
Reference in New Issue