diff --git a/scripts/setup/postgres-reset-sequences b/scripts/setup/postgres-reset-sequences deleted file mode 100755 index 2aab7336b0..0000000000 --- a/scripts/setup/postgres-reset-sequences +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -set -e - -./manage.py sqlsequencereset zerver | ./manage.py dbshell -echo "Sequence has been reset successfully!" diff --git a/zerver/management/commands/import.py b/zerver/management/commands/import.py index 9d307b89a2..af45a3dd6d 100644 --- a/zerver/management/commands/import.py +++ b/zerver/management/commands/import.py @@ -82,8 +82,5 @@ import a database dump from one or more JSON files.""" print("Processing dump: %s ..." % (path,)) realm = do_import_realm(path, subdomain) - print("Resetting auto-increment sequence for Postgres......") - subprocess.check_call([os.path.join(settings.DEPLOY_ROOT, - "scripts/setup/postgres-reset-sequences")]) print("Checking the system bots.") do_import_system_bots(realm)