45 lines
976 B
Markdown
45 lines
976 B
Markdown
|
|
```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. 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/diff-changelog/*.sql
|
|
```
|
|
* 2.2. asdasdasd
|
|
```shell
|
|
mv changelog-dir/diff-changelog/*.sql changelog-dir/update-changelog/
|
|
```
|
|
|
|
#### 3. asdasdsda
|
|
|
|
```shell
|
|
mvn liquibase:update -X > liquibase_log/liquibase_log_update-$(date +%Y%m%d%H%M%S).log
|
|
```
|
|
#### 4. asdasdsda
|
|
|
|
```shell
|
|
mvn liquibase:history > liquibase_log/liquibase_log_history-$(date +%Y%m%d%H%M%S).log
|
|
```
|
|
|
|
|