scripts: Remove the depreciated script 'postgres-reset-sequences'.

This commit is contained in:
Rhea Parekh
2018-04-11 01:12:50 +05:30
committed by Tim Abbott
parent c36a658fee
commit ccefaf7b26
2 changed files with 0 additions and 8 deletions

View File

@@ -1,5 +0,0 @@
#!/bin/bash
set -e
./manage.py sqlsequencereset zerver | ./manage.py dbshell
echo "Sequence has been reset successfully!"

View File

@@ -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)