An open API service indexing awesome lists of open source software.

https://github.com/marky-mark/liquibase


https://github.com/marky-mark/liquibase

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

Before executing liquibase.. go into mysql db and create a db
'liquibaseTestDB'

---------------------------------------------------------------------------

This project is to demonstrate liquibase and is Setup so that the only way
to update the database is to go into the module 'liquibase' and run the
following command:

mvn liquibase:update

This is achievable due to the Main.java in the package com.test.db

---------------------------------------------------------------------------

The 2nd way to achieve liquibase (To be part of the 'mvn clean package')
make the following changes

*In the pom.xml

liquibase


org.liquibase
liquibase-maven-plugin
2.0.1


process-resources

changelog.xml
com.mysql.jdbc.Driver
jdbc:mysql://localhost:3306/liquibaseTestDB
root
root123


update





*The Main.java may be deleted as it is no longer needed

running

'mvn clean package' will create the tables in the db

---------------------------------------------------------------------------

NOTE:
Only if needed

org.apache.maven.plugins
maven-shade-plugin
1.4


package

shade



com.test.db.Main