Delete options and responses together with their poll #30

Merged
gnilebein merged 1 commits from fix/poll-delete-cascade into main 2026-11-08 22:31:14 +01:00
Owner

Deleting a poll removed its slides with a plain deleteAll and relied on
ON DELETE CASCADE for slide options and responses. SQLite does not enforce
foreign keys by default, so answers of deleted polls stayed in the database.
Cascade through the ORM instead and remove the rows left behind earlier.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Deleting a poll removed its slides with a plain deleteAll and relied on ON DELETE CASCADE for slide options and responses. SQLite does not enforce foreign keys by default, so answers of deleted polls stayed in the database. Cascade through the ORM instead and remove the rows left behind earlier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gnilebein added 1 commit 2026-11-08 22:31:09 +01:00
Delete options and responses together with their poll
CI / Deploy / deploy (push) Skipped
CI / Deploy / test (push) Successful in 53s
0a4c9fad09
Deleting a poll removed its slides with a plain deleteAll and relied on
ON DELETE CASCADE for slide options and responses. SQLite does not enforce
foreign keys by default, so answers of deleted polls stayed in the database.
Cascade through the ORM instead and remove the rows left behind earlier.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gnilebein merged commit f536ea89fc into main 2026-11-08 22:31:14 +01:00
gnilebein deleted branch fix/poll-delete-cascade 2026-11-08 22:31:15 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gnilebein/Plenario#30