mysociety / popit

DEPRECATED - Development on PopIt has stopped and it is no longer being maintained
https://goo.gl/Vvej4Q
Other
76 stars 33 forks source link

Add a script to delete old mirrored Pombola instances #851

Closed mhl closed 8 years ago

mhl commented 8 years ago

This will look through all those databases that begin with one of:

popitkenyan-politicians popit_stagingkenyan-politicians popitza-peoples-assembly popit_stagingza-peoples-assembly

It will skip any that:

Any other database will be removed. It will remove both:

Partial fix for: https://github.com/mysociety/Non-Site-Specific/issues/688

chrismytton commented 8 years ago

I wonder if it's worth adding a dry run flag so that remove_database just prints what it would remove? That way we can eyeball it before we run it for real. Other than that this looks good! :+1:

mhl commented 8 years ago

Thanks, @chrismytton - I've amended that commit to add a --commit option, so that the default is to not delete stuff unless you specify that option.

chrismytton commented 8 years ago

:+1: