/PyPlanet-dbcleanup

PyPlanet app providing an admin command for cleaning up the database.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

PyPlanet-dbcleanup

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.

Plugin commands

  • //db clean or //database clean - starts the database clean-up (provides an overview of maps to be cleaned)

Installation

Installation via Git

  • cd pyplanet/apps
  • git clone https://github.com/TheMaximum/PyPlanet-dbcleanup.git dbcleanup
  • Edit pyplanet/settings/apps.py:
    • Add 'apps.dbcleanup' as new line in the file
  • Restart PyPlanet

Installation via zip-file

  • 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
  • Restart PyPlanet

Update plugin

Update via Git

  • cd pyplanet/apps/dbcleanup
  • git pull
  • Restart PyPlanet

Update via zip-file

  • 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