Packages

c

play.api.db.evolutions

Evolution

case class Evolution(revision: Int, sql_up: String = "", sql_down: String = "") extends Product with Serializable

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.

revision

revision number

sql_up

the SQL statements for UP application

sql_down

the SQL statements for DOWN application

Source
Evolutions.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Evolution
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Evolution(revision: Int, sql_up: String = "", sql_down: String = "")

    revision

    revision number

    sql_up

    the SQL statements for UP application

    sql_down

    the SQL statements for DOWN application

Value Members

  1. val hash: String

    Revision hash, automatically computed from the SQL content.

  2. val revision: Int
  3. val sql_down: String
  4. val sql_up: String