Packages

c

play.api.db.evolutions

ApplicationEvolutions

class ApplicationEvolutions extends AnyRef

Run evolutions on application startup. Automatically runs on construction.

Annotations
@Singleton()
Source
ApplicationEvolutions.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ApplicationEvolutions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ApplicationEvolutions(config: EvolutionsConfig, reader: EvolutionsReader, evolutions: EvolutionsApi, dynamicEvolutions: DynamicEvolutions, dbApi: DBApi, environment: Environment, webCommands: WebCommands)
    Annotations
    @Inject()

Value Members

  1. def start(): Unit

    Checks the evolutions state.

    Checks the evolutions state. Called on construction.

  2. def upToDate: Boolean

    Indicates if the process of applying evolutions scripts is finished or not.

    Indicates if the process of applying evolutions scripts is finished or not. Only if that method returns true you can be sure that all evolutions scripts were executed successfully.

    returns

    true if all evolutions scripts were applied (or resolved) successfully.