Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A command line Database migrations tool

License

NotificationsYou must be signed in to change notification settings

mybatis/migrations

Repository files navigation

buildCoverage StatusMaven centralDocker pullsSonatype 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 thereference 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 wishto 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 theAdvanced tab, and the Environment Variables button, then adding the MIGRATIONS_HOME variable in the uservariables 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 thevalue %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/optwget https://oss.sonatype.org/content/repositories/releases/org/mybatis/mybatis-migrations/3.3.5/mybatis-migrations-3.3.5-bundle.zipunzip 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 toexport PATH=$MIGRATIONS/bin:$PATH

Quick setup

mkdir$HOME/my-migrationscd$HOME/my-migrationsmigrate init

After that read the ./drivers and ./environments section ofMigrations init

Docker

Docker users can usehttps://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 acandidate in SDKMAN. To install using SKDMAN

sdk install mybatis# you can list the available versionssdk ls mybatis# install specific versionsdk install mybatis 3.3.5

License

Migrations isApache Licensed

About

A command line Database migrations tool

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors20


[8]ページ先頭

©2009-2025 Movatter.jp