Skip to content

Commit

Permalink
do migrations before WAL setup
Browse files Browse the repository at this point in the history
closes #598
  • Loading branch information
kentcdodds committed Jan 18, 2024
1 parent 97d789f commit d194759
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions other/litefs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ lease:
exec:
- cmd: node ./other/setup-swap.js

- cmd: npx prisma migrate deploy
if-candidate: true

# Set the journal mode for the database to WAL. This reduces concurrency deadlock issues
- cmd: sqlite3 $DATABASE_PATH "PRAGMA journal_mode = WAL;"
if-candidate: true
Expand All @@ -39,7 +42,4 @@ exec:
- cmd: sqlite3 $CACHE_DATABASE_PATH "PRAGMA journal_mode = WAL;"
if-candidate: true

- cmd: npx prisma migrate deploy
if-candidate: true

- cmd: npm start

0 comments on commit d194759

Please sign in to comment.