From ae48f6394b21db4e8ab313cbbfc724c27a82516e Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 12 Apr 2016 18:37:16 -0700 Subject: [PATCH] migrations: Disable prompting about content-type deletion. The main function of prompting inside `manage.py migrate` is to ask the user if they want to delete stale content-types, which is unimportant and likely scary, so we disable doing so. --- scripts/lib/upgrade-zulip-stage-2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/upgrade-zulip-stage-2 b/scripts/lib/upgrade-zulip-stage-2 index bacec9a6ba..cf550826c9 100755 --- a/scripts/lib/upgrade-zulip-stage-2 +++ b/scripts/lib/upgrade-zulip-stage-2 @@ -44,7 +44,7 @@ subprocess.check_call(["./scripts/zulip-puppet-apply", "--force"]) subprocess.check_call(["apt-get", "upgrade"]) logging.info("Applying database migrations...") -subprocess.check_call(["./manage.py", "migrate"], preexec_fn=su_to_zulip) +subprocess.check_call(["./manage.py", "migrate", "--noinput"], preexec_fn=su_to_zulip) logging.info("Restarting Zulip...") subprocess.check_call(["cp", "-rT", os.path.join(deploy_path, 'prod-static/serve'),