Merge "Schema_152 + Schema_157: Ignore missing index"

This commit is contained in:
David Pursehouse 2017-09-30 10:36:54 +00:00 committed by Gerrit Code Review
commit 84d57a890b
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,8 @@ public class Schema_152 extends SchemaVersion {
SqlDialect dialect = schema.getDialect();
try (StatementExecutor e = newExecutor(db)) {
dialect.dropIndex(e, "accounts", "accounts_byFullName");
} catch (OrmException ex) {
// Ignore. The index did not exist.
}
}
}

View File

@ -36,6 +36,8 @@ public class Schema_157 extends SchemaVersion {
SqlDialect dialect = schema.getDialect();
try (StatementExecutor e = newExecutor(db)) {
dialect.dropIndex(e, "accounts", "accounts_byPreferredEmail");
} catch (OrmException ex) {
// Ignore. The index did not exist.
}
}
}