aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinstall.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/install.py b/install.py
index 2732597..c03de46 100755
--- a/install.py
+++ b/install.py
@@ -48,7 +48,8 @@ fh.write(s)
fh.close()
print("** Setting up database tables **")
-call(['./manage.py', 'migrate'])
+assert call(['./manage.py', 'migrate']) == 0, "Failed to create database tables"
+
call(['psql', '-c', 'ALTER SEQUENCE servo_order_id_seq RESTART WITH 12345', args['dbname'], args['dbuser']])
print("** Creating directories **")