Files
Aurora.3/SQL/migrate-2023/V007__death_table_fix.sql
Werner 9c18c99c37 Death Stats Fix (#18100)
* Death Stats Fix

Changes how the coordinates for the death stats are stored.
-> One column for x,y,z instead of all mashed into one column

* Add missing GLOB

* convert indentation

* Rebase to latest master

* Adds the attackers char id aswell.

* Slight reformatting and add constraint

* Fix indentation

* Adds another check

---------

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
2024-01-06 15:16:25 +00:00

10 lines
468 B
SQL

--
-- Adds a column for single coordinate instead of mashing them into one column
--
ALTER TABLE `ss13_death`
ADD COLUMN `loc_x` INT NULL AFTER `oxyloss`,
ADD COLUMN `loc_y` INT NULL AFTER `loc_x`,
ADD COLUMN `loc_z` INT NULL AFTER `loc_y`,
ADD COLUMN `lachar_id` INT NULL DEFAULT NULL AFTER `lackey`,
ADD CONSTRAINT `FK_ss13_death_ss13_characters_lachar_id` FOREIGN KEY (`lachar_id`) REFERENCES `ss13_characters` (`id`) ON UPDATE CASCADE ON DELETE CASCADE;