mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 07:32:02 +00:00
* Condense Database Migrations Condenses the Database Migrations into a new initial schema. Also adds some instructions to the Database Readme for existing setups. * Update readme/delete changed migrations since pr creation * Reworks a bit how the previous migrations are handled and updates the instructions accordingly * Expand the readme with baseline/migrate --------- Co-authored-by: Werner <Arrow768@users.noreply.github.com>
14 lines
755 B
SQL
14 lines
755 B
SQL
--
|
|
-- Implemented in PR #11967.
|
|
-- Renames NanoTrasen Relation into Economic Status.
|
|
--
|
|
|
|
ALTER TABLE `ss13_characters` ADD COLUMN `economic_status` ENUM('Wealthy', 'Well-off', 'Average', 'Underpaid', 'Poor') DEFAULT "Average" AFTER `religion`;
|
|
|
|
UPDATE `ss13_characters` SET `economic_status` = 'Wealthy' WHERE nt_relation = 'Loyal';
|
|
UPDATE `ss13_characters` SET `economic_status` = 'well-off' WHERE nt_relation = 'Supportive';
|
|
UPDATE `ss13_characters` SET `economic_status` = 'Average' WHERE nt_relation = 'Neutral';
|
|
UPDATE `ss13_characters` SET `economic_status` = 'Underpaid' WHERE nt_relation = 'Skeptical';
|
|
UPDATE `ss13_characters` SET `economic_status` = 'Poor' WHERE nt_relation = 'Opposed';
|
|
|
|
ALTER TABLE `ss13_characters` DROP COLUMN `nt_relation`; |