47 lines
1.1 KiB
Markdown
47 lines
1.1 KiB
Markdown
|
|
```shell
|
|
.
|
|
├── changelog-dir
|
|
│ ├── changelog-master.xml
|
|
│ ├── diff-changelog
|
|
│ └── update-changelog
|
|
│ └── liquibase-diffChangeLog-20240503024308.sql
|
|
├── liquibase_log
|
|
│ ├── liquibase_log_diff-20240503104305.log
|
|
│ ├── liquibase_log_history-20240503104702.log
|
|
│ └── liquibase_log_update-20240503104616.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
|
|
```
|
|
|
|
|