X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=database%2Fr100.sql;h=d4f50de04852b4e75a69ace4d3d5d975887c31b7;hb=HEAD;hp=b5f644cf1355b7c4d98cb1f67606df405e53f42b;hpb=3dc80cedd5deba53a4082992de317fbc3acf805c;p=ndwebbie.git diff --git a/database/r100.sql b/database/r100.sql index b5f644c..d4f50de 100644 --- a/database/r100.sql +++ b/database/r100.sql @@ -27,11 +27,15 @@ ALTER TABLE planets ADD FOREIGN KEY (gov) REFERENCES governments(gov) ON UPDATE DROP FUNCTION IF EXISTS find_planet_id(text,text,text,race); DROP FUNCTION covop_alert(integer, integer, integer, integer, govs, integer); \i functions/find_planet_id.sql -\i functions/find_planet_id.sql +\i functions/covop_alert.sql ALTER TABLE ship_stats ADD FOREIGN KEY (race) REFERENCES races(race) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ship_stats ADD COLUMN cloaked BOOLEAN NOT NULL DEFAULT false, ADD COLUMN baseeta INTEGER NOT NULL DEFAULT 0; +ALTER TABLE ship_stats ALTER COLUMN cloaked DROP DEFAULT, ALTER COLUMN baseeta DROP DEFAULT, ALTER COLUMN guns DROP DEFAULT, ALTER COLUMN eres DROP DEFAULT; \d ship_stats DROP TYPE race; DROP TYPE govs; +ALTER TABLE incomings DROP CONSTRAINT incomings_call_key, ADD CONSTRAINT incomings_unique_key UNIQUE (call, pid, fleet, eta); + \i functions/hostile_alliances.sql