Giter Site home page Giter Site logo

mustaphazorgati / migrations Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mybatis/migrations

0.0 0.0 0.0 3.3 MB

A command line Database migrations tool

Home Page: http://mybatis.github.io/migrations

License: Apache License 2.0

Java 97.43% JavaScript 2.28% Dockerfile 0.29%

migrations's Introduction

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

migrations's People

Contributors

cbegin avatar chb0github avatar dependabot-preview[bot] avatar dependabot[bot] avatar emacarron avatar ffissore avatar h3adache avatar harawata avatar hazendaz avatar jlleitschuh avatar kazuki43zoo avatar mustaphazorgati avatar renovate[bot] avatar rvbaast avatar schumacher-m avatar simonetripodi avatar tohagan-tmr avatar xshyamx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.