diff --git a/README.md b/README.md index 9d7101df5..3eaaf80ac 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/server/config/file.go b/server/config/file.go index 7caa446f0..6560dd15c 100644 --- a/server/config/file.go +++ b/server/config/file.go @@ -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.