Last active
December 7, 2017 23:16
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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