Skip to content

Commit d194759

Browse files
committed
do migrations before WAL setup
closes #598
1 parent 97d789f commit d194759

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

other/litefs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ lease:
3131
exec:
3232
- cmd: node ./other/setup-swap.js
3333

34+
- cmd: npx prisma migrate deploy
35+
if-candidate: true
36+
3437
# Set the journal mode for the database to WAL. This reduces concurrency deadlock issues
3538
- cmd: sqlite3 $DATABASE_PATH "PRAGMA journal_mode = WAL;"
3639
if-candidate: true
@@ -39,7 +42,4 @@ exec:
3942
- cmd: sqlite3 $CACHE_DATABASE_PATH "PRAGMA journal_mode = WAL;"
4043
if-candidate: true
4144

42-
- cmd: npx prisma migrate deploy
43-
if-candidate: true
44-
4545
- cmd: npm start

0 commit comments

Comments
 (0)