Schema Migration System







Add MIGRATIONS_HOME to your environment variables


You can access the built‐in help by typing: migrate --help


$ migrate init


114-39-138-155:iBatisDemo3 ChaoYi$ migrate init

Initializing: /Users/ChaoYi/Documents/workspace/iBatisDemo3/.


ERROR: Directory must be empty (.svn etc allowed): /Users/ChaoYi/Documents/workspace/iBatisDemo3/.

114-39-138-155:iBatisDemo3 ChaoYi$ mkdir db

114-39-138-155:iBatisDemo3 ChaoYi$ cd db

114-39-138-155:db ChaoYi$ migrate init

Initializing: /Users/ChaoYi/Documents/workspace/iBatisDemo3/db/.

Creating: environments

Creating: scripts

Creating: drivers

Creating: README

Creating: development.properties

Creating: bootstrap.sql

Creating: 20091023011652_create_changelog.sql

Creating: 20091023011653_first_migration.sql

Done!




Comments