-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
38 lines (27 loc) · 1.46 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Welcome!
This is an MyBatis Migration repository. You can specify the repository
directory when running migrations using the --path=<repos-directory>
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=<environment> 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.