Skip to content

Commit

Permalink
fix(db): enable WAL journal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sct committed Mar 21, 2021
1 parent 6210f12 commit aa205ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ yarn-error.log*
.vercel

# database
config/db/*.sqlite3
config/db/*.sqlite3*
config/settings.json

# logs
Expand Down
2 changes: 2 additions & 0 deletions ormconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const devConfig = {
synchronize: true,
migrationsRun: false,
logging: false,
enableWAL: true,
entities: ['server/entity/**/*.ts'],
migrations: ['server/migration/**/*.ts'],
subscribers: ['server/subscriber/**/*.ts'],
Expand All @@ -22,6 +23,7 @@ const prodConfig = {
: 'config/db/db.sqlite3',
synchronize: false,
logging: false,
enableWAL: true,
entities: ['dist/entity/**/*.js'],
migrations: ['dist/migration/**/*.js'],
migrationsRun: false,
Expand Down

0 comments on commit aa205ff

Please sign in to comment.