# HG changeset patch # User Søren Løvborg # Date 2016-06-14 10:02:22 # Node ID c436f337e2539a703d9deddf0702698fef4fd8be # Parent 968f2d4214e854c2ae5a8cd21b5e53b503be7cb2 paster: add informational/dummy "upgrade-db" command The command is placed kallithea.lib.dbmigrate:UpgradeDb (which was the location of the old command, too), to ensure that "paster upgrade-db" continues to work, even if Kallithea is installed in "editable" mode (setup.py develop/pip install -e) and package metadata has not been updated (and also to prevent issues caused by stale .pyc files). diff --git a/kallithea/lib/dbmigrate/__init__.py b/kallithea/lib/dbmigrate/__init__.py new file mode 100644 --- /dev/null +++ b/kallithea/lib/dbmigrate/__init__.py @@ -0,0 +1,8 @@ +from paste.script.command import Command + +class UpgradeDb(Command): + hidden = True + summary = '(removed)' + + def run(self, args): + raise SystemExit('The "paster upgrade-db" command has been removed.') diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -180,6 +180,7 @@ setup( cache-keys=kallithea.lib.paster_commands.cache_keys:Command ishell=kallithea.lib.paster_commands.ishell:Command make-index=kallithea.lib.paster_commands.make_index:Command + upgrade-db=kallithea.lib.dbmigrate:UpgradeDb celeryd=kallithea.lib.celerypylons.commands:CeleryDaemonCommand install-iis=kallithea.lib.paster_commands.install_iis:Command """,