Skip to content

Commit

Permalink
docs: add sqlite foreign key note
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Aug 23, 2023
1 parent a12b45b commit 0353cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ db:
driver: "sqlite"
# The database data source name.
# This is driver specific and can be a file path or connection string.
data_source: "soft-serve.db"
# Make sure foreign key support is enabled when using SQLite.
data_source: "soft-serve.db?_pragma=busy_timeout(5000)&_pragma=foreign_keys(1)"

# Git LFS configuration.
lfs:
Expand Down
1 change: 1 addition & 0 deletions server/config/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ db:
driver: "{{ .DB.Driver }}"
# The database data source name.
# This is driver specific and can be a file path or connection string.
# Make sure foreign key support is enabled when using SQLite.
data_source: "{{ .DB.DataSource }}"
# Git LFS configuration.
Expand Down

0 comments on commit 0353cf2

Please sign in to comment.