]> ruin.nu Git - ndwebbie.git/blobdiff - database/r100.sql
New mail report optimized for Discord
[ndwebbie.git] / database / r100.sql
index b5f644cf1355b7c4d98cb1f67606df405e53f42b..feebfdf157e39964efe2e4d975fa00f8b4444983 100644 (file)
@@ -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