java.lang.Object
org.tentackle.model.migrate.TableMigrator.Result
- Enclosing class:
- TableMigrator
Migration result.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the sql code to migrate the foreign keys.Gets the sql code to migrate the table.Gets the optional SQL code as comment.
-
Constructor Details
-
Result
Creates the migration result.- Parameters:
tableSql- the sql code to migrate the tableforeignKeySql- the sql code to migrate the foreign keyswarningSql- generated SQL as comments
-
-
Method Details
-
getTableSql
Gets the sql code to migrate the table.- Returns:
- the sql code, empty string if nothing to migrate
-
getForeignKeySql
Gets the sql code to migrate the foreign keys.- Returns:
- the sql code, empty string if nothing to migrate
-
getWarningSql
Gets the optional SQL code as comment.- Returns:
- the warnings containing migrations that are not really necessary to run the application properly
-