Skip to content

Commit

Permalink
Enable foreign key constraints in sqlite tests
Browse files Browse the repository at this point in the history
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
  • Loading branch information
bcmmbaga committed Nov 12, 2024
1 parent 50e6389 commit 02d61c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions management/server/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ func NewTestStoreFromSQL(ctx context.Context, filename string, dataDir string) (
if err != nil {
return nil, nil, err
}
db.Exec("PRAGMA foreign_keys = ON")

if filename != "" {
err = loadSQL(db, filename)
Expand Down

0 comments on commit 02d61c4

Please sign in to comment.