Nix auto-column dropping, add simple concrete migrations that can be used to
easily register a column drop or a column rename should the need arise. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2014 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -714,12 +714,8 @@ public class DepotMarshaller<T>
|
||||
ctx.invoke(new Modifier.Simple(indexdef));
|
||||
}
|
||||
|
||||
// remove any extra columns
|
||||
for (String column : columns) {
|
||||
log.info("Dropping old column '" + column + "' from " + getTableName());
|
||||
String query = "alter table " + getTableName() + " drop index " + column;
|
||||
ctx.invoke(new Modifier.Simple(query));
|
||||
}
|
||||
// we do not hand remove columns but rather require that EntityMigration.Drop records be
|
||||
// registered by hand to avoid accidentally causin the loss of data
|
||||
|
||||
// remove any extra indices
|
||||
for (String index : indices) {
|
||||
|
||||
Reference in New Issue
Block a user