Skip to content

Commit 707950a

Browse files
committed
fix: create DB cache whenever required
1 parent 0467601 commit 707950a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/runmigration

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ fi
7373

7474
migrate
7575

76-
# Create a dump if none exist for the current VERSION
77-
if [ "$CREATE_DB_CACHE" == "true" -a ! -f "$CACHED_DUMP" ]; then
76+
# Create a dump if required
77+
if [ "$CREATE_DB_CACHE" == "true" ]; then
7878
echo "Save DB to cache $CACHED_DUMP 🐘⮕ 📦"
7979
mkdir -p "$CACHE_DIR"
8080
pg_dump -Fp -O -f "$CACHED_DUMP"

0 commit comments

Comments
 (0)