mirror of
https://github.com/Airsequel/AirGQL.git
synced 2025-08-13 10:16:57 +03:00
Enable the foreign key pragma everywhere
This commit is contained in:
parent
be818d626c
commit
4fdbb30b5e
5 changed files with 8 additions and 5 deletions
app
|
@ -64,6 +64,7 @@ import AirGQL.Utils (
|
|||
getGraphiQLVersion,
|
||||
getSqliteBinaryVersion,
|
||||
getSqliteEmbeddedVersion,
|
||||
withRetryConn,
|
||||
)
|
||||
import Server.Server (platformApp)
|
||||
|
||||
|
@ -198,7 +199,7 @@ main = do
|
|||
putText versionSlug
|
||||
----------
|
||||
Serve{dbFilePath} -> do
|
||||
SS.withConnection dbFilePath $ \conn -> do
|
||||
withRetryConn dbFilePath $ \conn -> do
|
||||
P.when (dbFilePath == "") $
|
||||
P.die "ERROR: No database file path was specified"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue