Package play.db.evolutions
Class Evolution
- Object
-
- play.db.evolutions.Evolution
-
public final class Evolution extends Object
An evolution.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetRevision()Get the revision of the evolution.StringgetSqlDown()Get the SQL script for tearing the evolution down.StringgetSqlUp()Get the SQL script for bringing the evolution up.inthashCode()
-
-
-
Method Detail
-
getRevision
public int getRevision()
Get the revision of the evolution.- Returns:
- The revision of the evolution to create.
-
getSqlUp
public String getSqlUp()
Get the SQL script for bringing the evolution up.- Returns:
- the sql script.
-
getSqlDown
public String getSqlDown()
Get the SQL script for tearing the evolution down.- Returns:
- the sql script.
-
-