Bug 13423: Upgrade 2213 to 2214 add the snapshot index since it was introduced for 2214.

Reviewed-By: Kishan
This commit is contained in:
Nitin Mehta 2012-02-02 19:35:15 +05:30
parent e7f6ffbd43
commit a2e3a12982
1 changed files with 1 additions and 1 deletions

View File

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