Skip to content

Instantly share code, notes, and snippets.

@voxx
Last active December 7, 2017 23:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voxx/3035688cdf7bfcf3281fe92c0e4fcc7f to your computer and use it in GitHub Desktop.
Save voxx/3035688cdf7bfcf3281fe92c0e4fcc7f to your computer and use it in GitHub Desktop.
Manually remove spawn points and related spawn data for spawns that have an excessive missed count. A high missed count can indicate that the spawn point may have been removed or may have been previously mis-identified.
use rocketmap;
SET foreign_key_checks = 0;
DELETE FROM scanspawnpoint where spawnpoint_id in (
SELECT id FROM spawnpoint where missed_count > 9
);
DELETE FROM spawnpointdetectiondata where spawnpoint_id in (
SELECT id FROM spawnpoint where missed_count > 9
);
DELETE FROM spawnpoint where missed_count > 9;
SET foreign_key_checks = 1;
DELETE from pokemon where spawnpoint_id not in (
select id from spawnpoint
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment