Closed mhl closed 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:
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.
:+1:
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