Skip to content

Commit

Permalink
try with dump rather than plain SQL for data only
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 22, 2018
1 parent e35a80b commit 8fc0b38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .deploy/create-release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8fc0b38

Please sign in to comment.