mirror of https://github.com/apache/cloudstack.git
drop all alert indice on column last_sent created up to 4.1 version
This commit is contained in:
parent
1eab817a96
commit
40982ccef2
|
|
@ -90,6 +90,7 @@ public class Upgrade410to420 implements DbUpgrade {
|
|||
//First drop if it exists. (Due to patches shipped to customers some will have the index and some wont.)
|
||||
List<String> indexList = new ArrayList<String>();
|
||||
s_logger.debug("Dropping index i_alert__last_sent if it exists");
|
||||
indexList.add("last_sent"); // in 4.1, we created this index that is not in convention.
|
||||
indexList.add("i_alert__last_sent");
|
||||
DbUpgradeUtils.dropKeysIfExist(conn, "alert", indexList, false);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue