Mercurial > kallithea
changeset 6016:c436f337e253
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).
author | Søren Løvborg <sorenl@unity3d.com> |
---|---|
date | Tue, 14 Jun 2016 12:02:22 +0200 |
parents | 968f2d4214e8 |
children | 7894a440e134 |
files | kallithea/lib/dbmigrate/__init__.py setup.py |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/kallithea/lib/dbmigrate/__init__.py Tue Jun 14 12:02:22 2016 +0200 @@ -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.')
--- a/setup.py Wed May 18 14:34:07 2016 +0200 +++ b/setup.py Tue Jun 14 12:02:22 2016 +0200 @@ -180,6 +180,7 @@ 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 """,