• Stars
    star
    214
  • Rank 184,678 (Top 4 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 12 years ago
  • Updated 29 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A command line Database migrations tool

MYBATIS Migrations

build Coverage Status Maven central Docker pulls Sonatype Nexus (Snapshots) License

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. MyBatis Migrations requires Java version 8 or later.

See the reference documentation

Installation

Bundle Locations
Releases - https://oss.sonatype.org/content/repositories/releases/org/mybatis/mybatis-migrations
Snapshots - 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.
  2. 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.
  3. In the same dialog, add the MIGRATIONS environment variable in the user variables with the value %MIGRATIONS_HOME%\bin.
  4. 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

Package Manager

Note: These are not maintained by the MyBatis team and issues should be reported to the package maintainers.

SDKMAN

SDKMAN is a tool to manage multiple installations of JDKs and SDKs. MyBatis Migrations is available as a candidate in SDKMAN. To install using SKDMAN

sdk install mybatis

# you can list the available versions
sdk ls mybatis

# install specific version
sdk install mybatis 3.3.5

License

Migrations is Apache Licensed

More Repositories

1

mybatis-3

MyBatis SQL mapper framework for Java
Java
19,751
star
2

generator

A code generator for MyBatis.
Java
5,281
star
3

spring-boot-starter

MyBatis integration with Spring Boot
Java
4,132
star
4

spring

Spring integration for MyBatis 3
Java
2,822
star
5

mybatis-dynamic-sql

SQL DSL (Domain Specific Language) for Kotlin and Java. Supports rendering for MyBatis or Spring JDBC Templates
Java
1,094
star
6

jpetstore-6

A web application built on top of MyBatis 3, Spring 3 and Stripes
Java
578
star
7

redis-cache

MyBatis Redis Cache adapter
Java
411
star
8

mybatipse

Eclipse plugin adding support for MyBatis SQL Mapper Framework.
Java
333
star
9

parent

The MyBatis parent POM which has to be inherited by all MyBatis modules
176
star
10

guice

Google Guice integration for MyBatis 3
Java
175
star
11

scala

The Scala version of MyBatis SQL Mapper
Scala
151
star
12

ehcache-cache

MyBatis EhCache adapter
Java
149
star
13

ibatis2mybatis

Tool to convert iBATIS 2 xml files to MyBatis3
XSLT
108
star
14

ibatis-2

iBATIS 2.x
Java
98
star
15

typehandlers-jsr310

MyBatis type handlers for JSR-310
Java
95
star
16

spring-native

Java
86
star
17

memcached-cache

MyBatis Memcached adapter
Java
72
star
18

ignite-cache

Adapter for Apache Ignite
Java
62
star
19

freemarker-scripting

FreeMarker plugin for MyBatis 3.2
Java
60
star
20

velocity-scripting

Velocity scripting plugin for MyBatis
Java
48
star
21

ibatis-spring

Ibatis integration code copied from Spring ORM 3.2.x branch
Java
28
star
22

cdi

MyBatis CDI Extension
Java
25
star
23

thymeleaf-scripting

Thymeleaf scripting plugin for MyBatis
Java
23
star
24

migrations-maven-plugin

Maven plugin for the MyBatis Migrations tool
Java
22
star
25

hazelcast-cache

MyBatis Hazelcast adapter
Java
21
star
26

mybatis.github.io

MyBatis public site
HTML
19
star
27

caffeine-cache

MyBatis cache adapter for Caffeine
Java
7
star
28

oscache-cache

OSCache support for MyBatis Cache
Java
7
star
29

typehandlers-threeten-extra

MyBatis type handlers for ThreeTen Extra (http://www.threeten.org/threeten-extra/)
Java
6
star
30

logo

MyBatis logo
5
star
31

base-bundle-descriptor

A maven-assembly-plugin descriptor to create binary distributions for all MyBatis modules
4
star
32

couchbase-cache

Couchbase cache adapter for MyBatis 3
Java
3
star
33

projects-aggregator

The pom for aggregator of mybatis projects
3
star
34

old-google-code-issues

Automatically exported from code.google.com/p/mybatis
2
star
35

committers-stuff

Resources for committers, like docs, instructions and so
2
star
36

mybatis-bom

MyBatis Bill of Materials
1
star