Skip to content

Commit

Permalink
Fixes #953: Allow local database sanitization to be disabled. (#954)
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Jan 10, 2017
1 parent 14a90b7 commit 0354075
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
1 change: 1 addition & 0 deletions phing/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ drush:
assume: yes
passthru: yes
logoutput: yes
sanitize: true
verbose: ${blt.verbose}

git:
Expand Down
28 changes: 21 additions & 7 deletions phing/tasks/local-sync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,27 @@
depends="setup:drupal:settings">
<drush command="cc drush"/>
<drush command="sql-drop"/>
<drush command="sql-sync" alias="">
<option name="structure-tables-key">lightweight</option>
<option name="create-db"/>
<option name="sanitize"/>
<param>@${drush.aliases.remote}</param>
<param>@${drush.aliases.local}</param>
</drush>
<if>
<equals arg1="${drush.sanitize}" arg2="true"/>
<then>
<drush command="sql-sync" alias="">
<option name="structure-tables-key">lightweight</option>
<option name="create-db"/>
<option name="sanitize"/>
<param>@${drush.aliases.remote}</param>
<param>@${drush.aliases.local}</param>
</drush>
</then>
<else>
<drush command="sql-sync" alias="">
<option name="structure-tables-key">lightweight</option>
<option name="create-db"/>
<param>@${drush.aliases.remote}</param>
<param>@${drush.aliases.local}</param>
</drush>
</else>
</if>

<drush command="cache-clear">
<param>drush</param>
</drush>
Expand Down

0 comments on commit 0354075

Please sign in to comment.