Skip to content

Commit

Permalink
Typos, add confirmation prompt for cleaning the DB
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed Sep 4, 2018
1 parent 3af4b0b commit 04b3c0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/cli/database/db.py
Expand Up @@ -36,7 +36,8 @@ def initdb(config):
@db.command(u'clean', short_help=u'Clean the database')
@click.help_option(u'-h', u'--help')
@click_config_option
def initdb(config):
@click.confirmation_option(prompt=u'This will delete all the data! Do you want to continue?')
def cleandb(config):
u'''Cleaning the database'''
conf = load_config(config)
load_environment(conf.global_conf, conf.local_conf)
Expand All @@ -51,7 +52,7 @@ def initdb(config):
@db.command(u'upgrade', short_help=u'Upgrade the database')
@click.help_option(u'-h', u'--help')
@click_config_option
def initdb(config):
def updatedb(config):
u'''Upgrading the database'''
conf = load_config(config)
load_environment(conf.global_conf, conf.local_conf)
Expand Down

0 comments on commit 04b3c0d

Please sign in to comment.