GithubHelp home page GithubHelp logo

markerikson / migrate4j Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ragesteel/migrate4j

0.0 3.0 0.0 2.34 MB

Copy of migrate4j subversion repository, revision #116

Java 99.61% CSS 0.39%

migrate4j's Introduction

README for migrate4j

See our sourceforge page (http://sourceforge.net/projects/migrate4j)
or our homepage (http://migrate4j.sourceforge.net) for current
information.  This information is also included in each release in 
the "web" directory.  Please direct questions to:
[email protected]

Project Goals:  Migrate4j is a database migration package for Java.  
While migrate4j will never have the intuitiveness of the db:migrate 
rake task in rails, this is an attempt to come as close as possible.

Migrate4j allows upgrading and reverting your database schema.
In order to mimic rails, convention is used to minimize the amount 
of set up.  If you follow the convention, all you need to do is 
create classes that inherit from the Migration interface, naming each
one with the pattern "Migration_X" where X is the sequential order of
the migration.  For example, you would create Migration_1.java, 
Migration_2.java, and so on.  Most (or all) of the convention can be 
overwritten by modifying the migrate4j.properties file.

Prerequisites:  Java 1.5 or higher, commons-logging, and a JDBC driver 
for your database .  If your database is not currently supported, 
you are free to add support (or request support by emailing 
[email protected]).  

Installation:  Migrate4j uses a properties file to determine where 
your migration files reside and what work to do.

To run the ant script from Eclipse, be sure you add junit.jar to the 
Ant runtime.  To do this, select Window -> Preferences -> Ant -> 
Runtime -> Global Entries and add a link to junit.jar.

To run the junit tests in Eclipse directly, add the jars in the lib 
directory to the project build path.  To do this, select Project -> 
Properties -> Java Build Path.  Click the "Add Jar" button and select 
everything inside migrate4j/lib.

To run migrate4j against your database, you need to add a "version" 
table.  Using the following queries should work for most database 
products:
  create table version (version int not null primary key);
  insert into version values (0);

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.