migration:init
Full name:
org.mybatis.maven:migrations-maven-plugin:1.2.0:init
Description:
Goal which executes the MyBatis migration init command.
Init command creates a new migrate repository into 'repository' location.
Attributes:
- Requires a Maven project to be executed.
- The goal is not marked as thread-safe and thus does not support parallel builds.
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<environment> |
String |
- |
Environment to configure. Default environment is 'development'. Default: development User Property: migration.env |
<force> |
boolean |
- |
Forces script to continue even if SQL errors are encountered. Default: false User Property: migration.force |
<idPattern> |
String |
- |
Sequential number for script prefix. (type 000 to generate 001_create_changelog) User Property: migration.idpattern |
<repository> |
File |
- |
Location of migrate repository. Default: . User Property: migration.path |
<skip> |
boolean |
- |
Skip migration actions. Default: false User Property: migration.skip |
Parameter Details
<environment>
Environment to configure. Default environment is 'development'.
- Type:
java.lang.String
- Required:
No
- User Property:
migration.env
- Default:
development
<force>
Forces script to continue even if SQL errors are encountered.
- Type:
boolean
- Required:
No
- User Property:
migration.force
- Default:
false
<idPattern>
Sequential number for script prefix. (type 000 to generate 001_create_changelog)
- Type:
java.lang.String
- Required:
No
- User Property:
migration.idpattern
<repository>
Location of migrate repository.
- Type:
java.io.File
- Required:
No
- User Property:
migration.path
- Default:
.
<skip>
Skip migration actions.
- Type:
boolean
- Required:
No
- User Property:
migration.skip
- Default:
false