org.apache.ibatis.migration.template_README Maven / Gradle / Ivy
The newest version!
Welcome!
This is an MyBatis Migration repository. You can specify the repository
directory when running migrations using the --path=
option. The default path is the current working directory ("./").
The repository base directory contains three subdirectories as follows:
./drivers
Place your JDBC driver .jar or .zip files in this directory. Upon running a
migration, the drivers will be dynamically loaded.
./environments
In the environments folder you will find .properties files that represent
your database instances. By default a development.properties file is
created for you to configure your development time database properties.
You can also create test.properties and production.properties files.
The environment can be specified when running a migration by using
the --env= option (without the path or ".properties" part).
The default environment is "development".
./scripts
This directory contains your migration SQL files. These are the files
that contain your DDL to both upgrade and downgrade your database
structure. By default, the directory will contain the script to
create the changelog table, plus one empty "first" migration script.
To create a new migration script, use the "new" command. To run
all pending migrations, use the "up" command. To undo the last
migration applied, use the "down" command etc.
For more information about commands and options, run the MyBatis
Migration script with the --help option.
Enjoy.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy