X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=database%2Fr100.sql;h=feebfdf157e39964efe2e4d975fa00f8b4444983;hb=c843aa6e80c735c9fde563ecfae5e5233caa72b8;hp=b5f644cf1355b7c4d98cb1f67606df405e53f42b;hpb=3dc80cedd5deba53a4082992de317fbc3acf805c;p=ndwebbie.git diff --git a/database/r100.sql b/database/r100.sql index b5f644c..feebfdf 100644 --- a/database/r100.sql +++ b/database/r100.sql @@ -29,9 +29,13 @@ DROP FUNCTION covop_alert(integer, integer, integer, integer, govs, integer); \i functions/find_planet_id.sql \i functions/find_planet_id.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