]> ruin.nu Git - ndwebbie.git/commitdiff
updated for new changes
authorMichael Andreen <harv@ruin.nu>
Sat, 12 Jan 2008 14:36:50 +0000 (15:36 +0100)
committerMichael Andreen <harv@ruin.nu>
Sat, 12 Jan 2008 14:36:50 +0000 (15:36 +0100)
database/clean-webbie.sql

index a03a1b5a0e2e6a99849f7c1b6e7c41de1b4fe28c..24e469c5c17f6f010c91fbda2f3be709ef4b4ff6 100644 (file)
@@ -5,11 +5,12 @@ TRUNCATE defense_requests;
 TRUNCATE graphs;
 TRUNCATE fleet_ships;
 TRUNCATE incomings;
-TRUNCATE intel;
-TRUNCATE scans;
-TRUNCATE covop_targets;
 TRUNCATE raid_claims;
 TRUNCATE dumps;
+TRUNCATE fleet_scans;
+TRUNCATE planet_data;
+UPDATE users SET scan_points = 0, defense_points = 0, attack_points = 0, humor_points = 0, rank = NULL, planet = NULL;
+DELETE FROM scans;
 DELETE FROM raids;
 DELETE FROM calls;
 DELETE FROM fleets;
@@ -27,4 +28,4 @@ ALTER SEQUENCE incomings_id_seq RESTART 1;
 ALTER SEQUENCE planets_id_seq RESTART 1;
 ALTER SEQUENCE raid_targets_id_seq RESTART 1;
 ALTER SEQUENCE raids_id_seq RESTART 1;
-UPDATE users SET scan_points = 0, defense_points = 0, attack_points = 0, humor_points = 0, rank = NULL;
+ALTER SEQUENCE scans_id_seq RESTART 1;