|
| 1 | +Install MyBatis Migrations |
| 2 | + |
| 3 | + MyBatis Migrations is a Java tool, so you must have Java installed in order to proceed. Users need at least the |
| 4 | + Java Runtime Environment (JRE), the Java Development Kit (JDK) is a plus. |
| 5 | + |
| 6 | + Additional optional installation steps are listed after the platform specific instructions. |
| 7 | + |
| 8 | +* Windows 2000/XP |
| 9 | + |
| 10 | + [1] Unzip the distribution archive, i.e. mybatis-${project.version}-migrations.zip to the directory you wish |
| 11 | + to install MyBatis Migrations. |
| 12 | + These instructions assume you chose C:\Program Files\mybatis. |
| 13 | + The subdirectory mybatis-migrations-${project.version} will be created from the archive. |
| 14 | + |
| 15 | + [2] Add the MIGRATIONS_HOME environment variable by opening up the system properties (WinKey + Pause), selecting the |
| 16 | + Advanced tab, and the Environment Variables button, then adding the MIGRATIONS_HOME variable in the user |
| 17 | + variables with the value C:\Program Files\mybatis\mybatis-migrations-${project.version}. |
| 18 | + Be sure to omit any quotation marks around the path even if it contains spaces. |
| 19 | + |
| 20 | + [3] In the same dialog, add the MIGRATIONS environment variable in the user variables with the |
| 21 | + value %MIGRATIONS_HOME%\bin. |
| 22 | + |
| 23 | + [4] In the same dialog, update/create the Path environment variable in the user variables and prepend the value |
| 24 | + %MIGRATIONS% to add MyBatis Migrations available in the command line. |
| 25 | + |
| 26 | +* Unix-based Operating Systems (Linux, Solaris and Mac OS X) |
| 27 | + |
| 28 | + [1] Extract the distribution archive, i.e. mybatis-${project.version}-migrations.zip to the directory you wish to |
| 29 | + install MyBatis Migrations. These instructions assume you chose |
| 30 | + /usr/local/mybatis/mybatis-migrations-${project.version}. |
| 31 | + The subdirectory mybatis-migrations-${project.version} will be created from the archive. |
| 32 | + |
| 33 | + [2] In a command terminal, add the MIGRATIONS_HOME environment variable, |
| 34 | + e.g. export MIGRATIONS_HOME=/usr/local/mybatis/mybatis-migrations-${project.version}. |
| 35 | + |
| 36 | + [3] Add the MIGRATIONS environment variable, e.g. export MIGRATIONS=$MIGRATIONS_HOME/bin. |
| 37 | + |
| 38 | + [4] Add MIGRATIONS environment variable to your path, e.g. export PATH=$MIGRATIONS:$PATH. |
0 commit comments