Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Fixes #953: Allow local database sanitization to be disabled. #954

Merged
merged 1 commit into from
Jan 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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