Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

Add delete cascade for events#18

Open
bux wants to merge 1 commit intoalexcroox:masterfrom
bux:cascade
Open

Add delete cascade for events#18
bux wants to merge 1 commit intoalexcroox:masterfrom
bux:cascade

Conversation

@bux
Copy link
Copy Markdown

@bux bux commented Feb 24, 2019

New Dump from a MariaDB database with an added FK Constraint on replayId.

The goal was to make deleting events easier. Now one just needs to delete the replay and the associated events get deleted automatically.

And I've changed the id column of the replays table to be unsigned (just like the replayId column of the events table)

Needed to change order of tables for the constraint to properly/reliably work.

New Dump from a MariaDB database with an added FK Constraint on replayId
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant