fix: add _foreign_keys to sqlite dsn

This commit is contained in:
Steven
2022-09-18 22:48:26 +08:00
parent a1066322c8
commit 4608894e56
5 changed files with 1 additions and 5 deletions

View File

@@ -354,7 +354,6 @@ func findMemoRawList(ctx context.Context, tx *sql.Tx, find *api.MemoFind) ([]*me
func deleteMemo(ctx context.Context, tx *sql.Tx, delete *api.MemoDelete) error {
result, err := tx.ExecContext(ctx, `
PRAGMA foreign_keys = ON;
DELETE FROM memo WHERE id = ?
`, delete.ID)
if err != nil {