From 8fc0b38072b2fd156b047aea61d2028499a9bde0 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Tue, 22 May 2018 09:57:58 -0400 Subject: [PATCH] try with dump rather than plain SQL for data only --- .deploy/create-release.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.deploy/create-release.py b/.deploy/create-release.py index 7277d513..3125dc30 100755 --- a/.deploy/create-release.py +++ b/.deploy/create-release.py @@ -132,15 +132,16 @@ def create_plain_data(): :return: the file name """ # Create data-only dumps (with sample data) - dump = 'qgep_v{version}_demo_data.sql'.format( + dump = 'qgep_v{version}_demo_data.backup'.format( version = os.environ['TRAVIS_TAG']) print('travis_fold:start:{}'.format(dump)) print('Creating dump {}'.format(dump)) dump_file = '/tmp/{dump}'.format(dump=dump) subprocess.call(['pg_dump', - '--format', 'plain', + '--format', 'custom', '--blobs', '--data-only', + '--compress', '5', '--file', dump_file, '--table', 'qgep_od.*', '--table', 'qgep_sys.logged_actions',