diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 13:24:35 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 13:24:35 +0300 |
commit | 4581765f5f278f60d718726ae15efccb689f2217 (patch) | |
tree | 94cf5c077c9474a5fba5dbc03c73df4c2e8c7a68 | |
parent | a8369dd63031471e185f38f4bfffaddeeeb3bd3c (diff) | |
download | Servo-4581765f5f278f60d718726ae15efccb689f2217.tar.gz Servo-4581765f5f278f60d718726ae15efccb689f2217.tar.bz2 Servo-4581765f5f278f60d718726ae15efccb689f2217.zip |
Halt on failed migration
-rwxr-xr-x | install.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 **") |