# migrations **Repository Path**: linuxgt/migrations ## Basic Information - **Project Name**: migrations - **Description**: A command line Database migrations tool - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-06 - **Last Updated**: 2024-06-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README MYBATIS Migrations ================== [![Build Status](https://travis-ci.org/mybatis/migrations.svg?branch=master)](https://travis-ci.org/mybatis/migrations) [![Coverage Status](https://coveralls.io/repos/mybatis/migrations/badge.svg?branch=master&service=github)](https://coveralls.io/github/mybatis/migrations?branch=master) [![Dependency Status](https://www.versioneye.com/user/projects/5619ae16a193340f2f000505/badge.svg?style=flat)](https://www.versioneye.com/user/projects/5619ae16a193340f2f000505) [![Maven central](https://maven-badges.herokuapp.com/maven-central/org.mybatis/mybatis-migrations/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.mybatis/mybatis-migrations) [![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html) ![mybatis-migrations](http://mybatis.github.io/images/mybatis-logo.png) ## 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](http://mybatis.github.io/migrations) ## Installation |Bundle Locations| |------| |[Releases - https://oss.sonatype.org/content/repositories/releases/org/mybatis/mybatis-migrations](https://oss.sonatype.org/content/repositories/releases/org/mybatis/mybatis-migrations/)| |[Snapshots - https://oss.sonatype.org/content/repositories/snapshots/org/mybatis/mybatis-migrations](https://oss.sonatype.org/content/repositories/snapshots/org/mybatis/mybatis-migrations/)| #### Windows 1. 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. 1. 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. 1. In the same dialog, add the MIGRATIONS environment variable in the user variables with the value %MIGRATIONS_HOME%\bin. 1. 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. ```sh cd $HOME/opt wget https://oss.sonatype.org/content/repositories/releases/org/mybatis/mybatis-migrations/3.3.4/mybatis-migrations-3.3.4-bundle.zip unzip mybatis-migrations-3.3.4-bundle.zip ``` In your ~/.bashrc or ~/.zshrc or equivalent add ``` export MIGRATIONS=$HOME/opt/mybatis-migrations-3.3.4 # replace with path you extracted to export PATH=$MIGRATIONS/bin:$PATH ``` ## Quick setup ```sh mkdir $HOME/my-migrations cd $HOME/my-migrations migrate init ``` After that read the ./drivers and ./environments section of [Migrations init](http://mybatis.github.io/migrations/init.html) ## License Migrations is [Apache Licensed](LICENSE)