Merge "Schema_152 + Schema_157: Ignore missing index"
This commit is contained in:
commit
84d57a890b
@ -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.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user