Merge "Schema_152 + Schema_157: Ignore missing index"
This commit is contained in:
		| @@ -36,6 +36,8 @@ public class Schema_152 extends SchemaVersion { | |||||||
|     SqlDialect dialect = schema.getDialect(); |     SqlDialect dialect = schema.getDialect(); | ||||||
|     try (StatementExecutor e = newExecutor(db)) { |     try (StatementExecutor e = newExecutor(db)) { | ||||||
|       dialect.dropIndex(e, "accounts", "accounts_byFullName"); |       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(); |     SqlDialect dialect = schema.getDialect(); | ||||||
|     try (StatementExecutor e = newExecutor(db)) { |     try (StatementExecutor e = newExecutor(db)) { | ||||||
|       dialect.dropIndex(e, "accounts", "accounts_byPreferredEmail"); |       dialect.dropIndex(e, "accounts", "accounts_byPreferredEmail"); | ||||||
|  |     } catch (OrmException ex) { | ||||||
|  |       // Ignore. The index did not exist. | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 David Pursehouse
					David Pursehouse