mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-18 05:12:55 +00:00
* Fixes SQL Death Tracking again Removes the foreign key constraint from the ckeys. -> Ckeys can have different values i.e. when someone dies while aghosted the ckey becomes @ckey Ensurs that the char_id is set to null and not 0 -> To make sure the foreign key constraint there actually works * Simpler changelog --------- Co-authored-by: Werner <Arrow768@users.noreply.github.com>
10 lines
529 B
SQL
10 lines
529 B
SQL
--
|
|
-- Fixes death saving again by removing the foreign key constraints on the ckeys. (sometimes chey can contain things that arnt ckeys. i.e. @ckey when someone aghosts)
|
|
--
|
|
ALTER TABLE `ss13_death`
|
|
DROP FOREIGN KEY `FK_ss13_death_ss13_characters`;
|
|
ALTER TABLE `ss13_death`
|
|
DROP FOREIGN KEY `FK_ss13_death_ss13_player`,
|
|
DROP FOREIGN KEY `FK_ss13_death_ss13_player_lackey`,
|
|
ADD CONSTRAINT `FK_ss13_death_ss13_characters_char_id` FOREIGN KEY (`char_id`) REFERENCES `ss13_characters` (`id`) ON UPDATE CASCADE ON DELETE SET NULL;
|