java.lang.Object
org.tentackle.model.migrate.ColumnMigration
Explicit column migration for a given table.
-
Constructor Summary
ConstructorDescriptionColumnMigration
(String columnName, String newColumnName, String sql) Creates an explicit migration for a column. -
Method Summary
-
Constructor Details
-
ColumnMigration
Creates an explicit migration for a column.- Parameters:
columnName
- the column namenewColumnName
- the new column name if renamedsql
- the SQL code
-
-
Method Details
-
getColumnName
Gets the (old) column name.- Returns:
- the column name
-
getNewColumnName
Gets the new column name if column is renamed.- Returns:
- the renamed column, null if no rename
-
getSql
The sql code to migrate this column.- Returns:
- sql code
-
hashCode
public int hashCode() -
equals
-