Evolution

play.api.db.evolutions.Evolution
case class Evolution(revision: Int, sql_up: String, sql_down: String)

An SQL evolution - database changes associated with a software version.

An evolution includes ‘up’ changes, to upgrade to the next version, as well as ‘down’ changes, to downgrade the database to the previous version.

Value parameters

revision

revision number

sql_down

the SQL statements for DOWN application

sql_up

the SQL statements for UP application

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Concrete fields

val hash: String

Revision hash, automatically computed from the SQL content.

Revision hash, automatically computed from the SQL content.

Attributes