]> ruin.nu Git - ndwebbie.git/blobdiff - database/r100.sql
Fix typo
[ndwebbie.git] / database / r100.sql
index debbc44804e276ab6d7146474efb35f2893c02bb..d4f50de04852b4e75a69ace4d3d5d975887c31b7 100644 (file)
@@ -27,7 +27,7 @@ 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;
@@ -36,5 +36,6 @@ ALTER TABLE ship_stats ALTER COLUMN cloaked DROP DEFAULT, ALTER COLUMN baseeta D
 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