Changeset - c436f337e253
[Not reviewed]
default
0 1 1
Søren Løvborg - 9 years ago 2016-06-14 12:02:22
sorenl@unity3d.com
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).
2 files changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/dbmigrate/__init__.py
Show inline comments
 
new file 100644
 
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.')
setup.py
Show inline comments
 
@@ -177,10 +177,11 @@ setup(
 
    update-repoinfo=kallithea.lib.paster_commands.update_repoinfo:Command
 
    make-rcext=kallithea.lib.paster_commands.make_rcextensions:Command
 
    repo-scan=kallithea.lib.paster_commands.repo_scan:Command
 
    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
 
    """,
 
)
0 comments (0 inline, 0 general)