mybatis / Migrations
Licence: other
A command line Database migrations tool
Stars: ✭ 176
Programming Languages
java
68154 projects - #9 most used programming language
MYBATIS Migrations
Requirements
MyBatis Migrations is a Java tool, so you must have Java installed in order to proceed. Users need at least the Java Runtime Environment (JRE), the Java Development Kit (JDK) is a plus.
See the reference documentation
Installation
Windows
- Unzip the distribution archive, i.e. mybatis-${project.version}-migrations.zip to the directory you wish to install MyBatis Migrations. These instructions assume you chose C:\Program Files\mybatis. The subdirectory mybatis-migrations-${project.version} will be created from the archive.
- Add the MIGRATIONS_HOME environment variable by opening up the system properties (WinKey + Pause), selecting the Advanced tab, and the Environment Variables button, then adding the MIGRATIONS_HOME variable in the user variables with the value C:\Program Files\mybatis\mybatis-migrations-${project.version}. Be sure to omit any quotation marks around the path even if it contains spaces.
- In the same dialog, add the MIGRATIONS environment variable in the user variables with the value %MIGRATIONS_HOME%\bin.
- In the same dialog, update/create the Path environment variable in the user variables and prepend the value %MIGRATIONS% to add MyBatis Migrations available in the command line.
Unix-based Operating Systems (Linux, Solaris and Mac OS X)
Download and extract migrations to any directory.
cd $HOME/opt
wget https://oss.sonatype.org/content/repositories/releases/org/mybatis/mybatis-migrations/3.3.5/mybatis-migrations-3.3.5-bundle.zip
unzip mybatis-migrations-3.3.5-bundle.zip
In your ~/.bashrc or ~/.zshrc or equivalent add
export MIGRATIONS=$HOME/opt/mybatis-migrations-3.3.5 # replace with path you extracted to
export PATH=$MIGRATIONS/bin:$PATH
Quick setup
mkdir $HOME/my-migrations
cd $HOME/my-migrations
migrate init
After that read the ./drivers and ./environments section of Migrations init
docker
Docker users can use https://hub.docker.com/r/mybatis/migrations
License
Migrations is Apache Licensed
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].