Skip to content

Commit

Permalink
Bug 1308625 : Adding extra arguments to skip dropping and recreating …
Browse files Browse the repository at this point in the history
…the table again (#221). r=bhearsum
  • Loading branch information
aksareen authored and bhearsum committed Jan 26, 2017
1 parent 18d881a commit 24207fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/manage-db.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ def extract_active_data(trans, url, dump_location='dump.sql'):
batch_generator = chunk_list(list(partial_release_names), 30)
for batched_partial_release_list in batch_generator:
qry = ", ".join("'" + release_names + "'" for release_names in batched_partial_release_list)
popen(_strip_multiple_spaces('%s %s releases --where="releases.name IN (%s)" \
popen(_strip_multiple_spaces('%s --skip-add-drop-table --no-create-info %s '
'releases --where="releases.name IN (%s)" \
>> %s' % (mysql_default_command, database, qry, dump_location)))


Expand Down

0 comments on commit 24207fc

Please sign in to comment.