diff --git a/README.md b/README.md index e584a6c..7676c17 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,33 @@ + +```shell +. +├── changelog-dir +│ ├── changelog-master.xml +│ ├── diff-changelog +│ └── update-changelog +├── liquibase_log +│ ├── liquibase_log_diff-20240502232404.log +│ └── liquibase_log_diff-20240502233040.log +├── liquibase.properties +├── pom.xml +└── README.md + +``` + #### 1. bla ```shell mvn liquibase:diff -X > liquibase_log/liquibase_log_diff-$(date +%Y%m%d%H%M%S).log ``` #### 2. bla -* 2.1. sadasd + +* 2.1. asdasdasd ```shell -mv changelog-dir/diff-changelog/*.sql changelog-dir/tmp/ +sed -i 's/\[\x220001-01-01T00:00:00+00:00\x22\]/\x27\[\x220001-01-01T00:00:00+00:00\x22\]\x27/g' changelog-dir/diff-changelog/*.sql ``` -* 2.2. asdasdasd +* 2.2. asdasdasd ```shell -sed -i 's/\[\x220001-01-01T00:00:00+00:00\x22\]/\x27\[\x220001-01-01T00:00:00+00:00\x22\]\x27/g' changelog-dir/tmp/*.sql -``` -* 2.3. asdasdasd -```shell -mv changelog-dir/tmp/*.sql changelog-dir/diff-changelog/ +mv changelog-dir/diff-changelog/*.sql changelog-dir/update-changelog/ ``` #### 3. asdasdsda diff --git a/changelog-dir/changelog-master.xml b/changelog-dir/changelog-master.xml index 7936107..2e453eb 100644 --- a/changelog-dir/changelog-master.xml +++ b/changelog-dir/changelog-master.xml @@ -14,5 +14,5 @@ --> - + diff --git a/liquibase.properties b/liquibase.properties new file mode 100644 index 0000000..4193f0a --- /dev/null +++ b/liquibase.properties @@ -0,0 +1,13 @@ +username:dbuser01 +password:QWEasd759 +defaultSchemaName: public +liquibaseSchemaName: liquibase + + +referenceUsername: dbuser01 +referencePassword: QWEasd759 +referenceDefaultSchemaName:public +referenceLiquibaseSchemaName: liquibase + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 0b08c4d..1288f19 100644 --- a/pom.xml +++ b/pom.xml @@ -36,20 +36,16 @@ liquibase-maven-plugin 4.27.0 + liquibase.properties changelog-dir/changelog-master.xml - changelog-dir/changelog-master.xml changelog-dir/diff-changelog/liquibase-diffChangeLog-${maven.build.timestamp}.sql liquibase public org.postgresql.Driver - dbuser01 - QWEasd759 jdbc:postgresql://10.2.5.46:5432/db02-pom org.postgresql.Driver jdbc:postgresql://10.2.5.47:5432/db01-pom - dbuser01 - QWEasd759 diff /data true