object OfflineEvolutions
- Alphabetic
- By Inheritance
- OfflineEvolutions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def applyScript(appPath: File, classloader: ClassLoader, dbApi: DBApi, dbName: String, autocommit: Boolean = true, schema: String = "", metaTable: String = "play_evolutions", substitutionsMappings: Map[String, String] = Map.empty, substitutionsPrefix: String = "$evolutions{{{", substitutionsSuffix: String = "}}}", substitutionsEscape: Boolean = true): Unit
Computes and applies an evolutions script.
Computes and applies an evolutions script.
- appPath
the application path
- classloader
the classloader used to load the driver
- dbApi
the database api for managing application databases
- dbName
the database name
- schema
The schema where all the play evolution tables are saved in
- metaTable
Table to keep evolutions' meta data
- substitutionsMappings
Mappings of variables (without the prefix and suffix) and their replacements.
- substitutionsPrefix
Prefix of the variable to substitute, e.g. "$evolutions
". @param substitutionsSuffix Suffix of the variable to substitute, e.g. "
".
- substitutionsEscape
Whetever escaping of variables is enabled via a preceding "!". E.g. "!$evolutions
my_variable
" ends up as "$evolutions
my_variable
" in the final sql instead of replacing it with its substitution.
- def resolve(appPath: File, classloader: ClassLoader, dbApi: DBApi, dbName: String, revision: Int, schema: String = "", metaTable: String = "play_evolutions"): Unit
Resolve an inconsistent evolution.
Resolve an inconsistent evolution.
- appPath
the application path
- classloader
the classloader used to load the driver
- dbApi
the database api for managing application databases
- dbName
the database name
- revision
the revision
- schema
The schema where all the play evolution tables are saved in
Can be used to run off-line evolutions, i.e. outside a running application.