Skip to content

Commit e871237

Browse files
EFRS-1349: Added the liquibase migration to drop dangling DB tables (face & image)
1 parent f09fa2a commit e871237

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
databaseChangeLog:
2+
- changeSet:
3+
id: drop-image-table
4+
author: Volodymyr Bushko
5+
preConditions:
6+
- onFail: MARK_RAN
7+
- tableExists:
8+
schemaName: public
9+
tableName: image
10+
changes:
11+
- dropTable:
12+
schemaName: public
13+
tableName: image
14+
- changeSet:
15+
id: drop-face-table
16+
author: Volodymyr Bushko
17+
preConditions:
18+
- onFail: MARK_RAN
19+
- tableExists:
20+
schemaName: public
21+
tableName: face
22+
changes:
23+
- dropTable:
24+
schemaName: public
25+
tableName: face

java/admin/src/main/resources/db/changelog/db.changelog-master.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ databaseChangeLog:
4949
file: db/changelog/db.changelog-0.2.4.yaml
5050
- include:
5151
file: db/changelog/db.changelog-0.2.5.yaml
52+
- include:
53+
file: db/changelog/db.changelog-0.2.6.yaml
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
databaseChangeLog:
2+
- changeSet:
3+
id: drop-image-table
4+
author: Volodymyr Bushko
5+
preConditions:
6+
- onFail: MARK_RAN
7+
- tableExists:
8+
schemaName: public
9+
tableName: image
10+
changes:
11+
- dropTable:
12+
schemaName: public
13+
tableName: image
14+
- changeSet:
15+
id: drop-face-table
16+
author: Volodymyr Bushko
17+
preConditions:
18+
- onFail: MARK_RAN
19+
- tableExists:
20+
schemaName: public
21+
tableName: face
22+
changes:
23+
- dropTable:
24+
schemaName: public
25+
tableName: face

java/api/src/test/resources/db/changelog/db.changelog-master.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ databaseChangeLog:
4949
file: db/changelog/db.changelog-0.2.4.yaml
5050
- include:
5151
file: db/changelog/db.changelog-0.2.5.yaml
52+
- include:
53+
file: db/changelog/db.changelog-0.2.6.yaml

0 commit comments

Comments
 (0)