https://github.com/marky-mark/liquibase
https://github.com/marky-mark/liquibase
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/marky-mark/liquibase
- Owner: marky-mark
- Created: 2012-01-13T23:59:19.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-14T00:21:03.000Z (over 14 years ago)
- Last Synced: 2025-02-16T02:44:57.208Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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