TRUNCATE planet_stats ;
TRUNCATE galaxies ;
TRUNCATE alliance_stats ;
TRUNCATE defense_requests;
DELETE FROM alliances WHERE id > 1;
SELECT * FROM alliances;
DELETE FROM planets ;
DELETE FROM forum_threads WHERE fbid = -2;
DELETE FROM forum_threads WHERE fbid = 12;
DELETE FROM forum_posts WHERE ftid IN (SELECT ftid FROM forum_threads WHERE fbid = -1);
TRUNCATE graphs;
ALTER SEQUENCE alliance_id_seq RESTART 2;
ALTER SEQUENCE calls_id_seq RESTART 1;
ALTER SEQUENCE defense_requests_id_seq RESTART 1;
ALTER SEQUENCE fleets_id_seq RESTART 1;
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;

