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:
mdb
2006-12-21 22:55:27 +00:00
parent daafade9e6
commit f8a33859ae
2 changed files with 86 additions and 9 deletions
@@ -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) {