Coder Social home page Coder Social logo

liquibase-tutorial's Introduction

AGPLv3 License

This project is a Liquibase-tutorial.

http://www.liquibase.org/
Runs through the changelog-example.xml-file (only 1 changeSet to begin with)

Liquibase standalone

This project has been tested on GNU/Linux (Linux Mint)
Using a Makefile (GNU Make 3.81 and GNU make 4.1 )
Tested on MySQL ver 5.5 & ver 5.7

before you start.

Look through the Makefile ( update the software-versions if you'd like to)
Set credentials for your database in the following 2 files

  1. Makefile
  2. liquibase.inki.properties

The mysql-user must be able to create a database
The name of the example database is 'liquibase-tutorial'

run the recipes in the Makefile

create the database
$ make db_mysql_create

Run the 'all'-recipe
$ make [all]

  1. fetches liquibase and unzips
  2. fetches the mysql-jdbc-jar
  3. copies liquibase.inki.properties and changelog-example.xml to the liquibase 'sdk'-directory
  4. runs liquibase (runs through the changeSets, affects the 'liquibase-tutorial'-database )
  5. makes a database-dump (mysqldump) to the 'backup'-directory.

Validate the Liquibase-execution

Validate the 'run' by looking through the database and/or the backup/liquibase_tutorial-dump-.sql

continue

In this example the changeSet is written in XML-format
To explore this tutorial, add a new changeSet to the file 'sdk/workspace/changelog/com/example/changelog-example.xml' and 'run'
$ make run_liquibase

liquibase-tutorial's People

Contributors

inkimar avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

mskyttner

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.