Skip to content

Commit

Permalink
fix: Use unshift when adding exclude-table-data (#1987)
Browse files Browse the repository at this point in the history
Co-authored-by: Sara Cope <[email protected]>
  • Loading branch information
rodxavier and saracope authored Oct 14, 2022
1 parent 9402075 commit b132476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pg-v5/commands/pull.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const run = async function (sourceIn, targetIn, exclusions) {
const exclude = exclusions.map(function (e) { return '--exclude-table-data=' + e }).join(' ')

let dumpFlags = ['--verbose', '-F', 'c', '-Z', '0', '-N', '_heroku', ...connArgs(source, true)]
if (exclude !== '') dumpFlags.push(exclude)
if (exclude !== '') dumpFlags.unshift(exclude)

const dumpOptions = {
env: {
Expand Down

0 comments on commit b132476

Please sign in to comment.