PyPlanet app providing an admin command for cleaning up the database. The clean-up will remove maps and associated models (karma votes, records, map folder content, scores) from the database for maps that are no longer on the server.
//db cleanor//database clean- starts the database clean-up (provides an overview of maps to be cleaned)
cd pyplanet/appsgit clone https://github.com/TheMaximum/PyPlanet-dbcleanup.git dbcleanup- Edit
pyplanet/settings/apps.py:- Add
'apps.dbcleanup'as new line in the file
- Add
- Restart PyPlanet
- Download the latest release from the GitHub page
- Unzip the archive into the PyPlanet directory (it will automatically place the files in the right folder)
- Edit
pyplanet/settings/apps.py:- Add
'apps.dbcleanup'as new line in the file
- Add
- Restart PyPlanet
cd pyplanet/apps/dbcleanupgit pull- Restart PyPlanet
- Download the latest release from the GitHub page
- Unzip the archive into the PyPlanet directory (it will automatically place the files in the right folder)
- Restart PyPlanet