Package play.db.evolutions
Class Evolution
java.lang.Object
play.db.evolutions.Evolution
An evolution.
-
Constructor Details
-
Evolution
Create the evolution.- Parameters:
revision- The revision of the evolution to create.sqlUp- The SQL script for bringing the evolution up.sqlDown- The SQL script for tearing the evolution down.
-
-
Method Details
-
getRevision
public int getRevision()Get the revision of the evolution.- Returns:
- The revision of the evolution to create.
-
getSqlUp
Get the SQL script for bringing the evolution up.- Returns:
- the sql script.
-
getSqlDown
Get the SQL script for tearing the evolution down.- Returns:
- the sql script.
-
equals
-
hashCode
public int hashCode()
-