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

@ -351,7 +351,6 @@ func findUserList(ctx context.Context, tx *sql.Tx, find *api.UserFind) ([]*userR
func deleteUser(ctx context.Context, tx *sql.Tx, delete *api.UserDelete) error {
result, err := tx.ExecContext(ctx, `
PRAGMA foreign_keys = ON;
DELETE FROM user WHERE id = ?
`, delete.ID)
if err != nil {