public int update() { session.commit(true); Database db = session.getDatabase(); session.getUser().checkRight(table, Right.ALL); table.checkSupportAlter(); table.renameColumn(column, newName); table.setModified(); db.update(session, table); for (DbObject child : table.getChildren()) { if (child.getCreateSQL() != null) { db.update(session, child); } } return 0; }