-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now, you have to run sql-sanitize as a second command after running sql-sync.
- Loading branch information
Showing
2 changed files
with
3 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,12 +59,12 @@ public function localSqlSync() { | |
|
||
// Copy stage to dev with --sanitize. | ||
$sync_options = array( | ||
'sanitize' => NULL, | ||
'yes' => NULL, | ||
// Test wildcards expansion from within sql-sync. Also avoid D8 persistent entity cache. | ||
'structure-tables-list' => 'cache,cache*', | ||
); | ||
$this->drush('sql-sync', array('@stage', '@dev'), $sync_options); | ||
$this->drush('sql-sanitize', [], ['yes' => NULL], '@dev'); | ||
|
||
// Confirm that the sample user is unchanged on the staging site | ||
$this->drush('user-information', array($name), $options + array('format' => 'csv', 'include-field-labels' => 0, 'strict' => 0), '@stage'); | ||
|
@@ -89,13 +89,12 @@ public function localSqlSync() { | |
|
||
// Copy stage to dev with --sanitize and a fixed sanitized email | ||
$sync_options = array( | ||
'sanitize' => NULL, | ||
'yes' => NULL, | ||
'sanitize-email' => '[email protected]', | ||
// Test wildcards expansion from within sql-sync. Also avoid D8 persistent entity cache. | ||
'structure-tables-list' => 'cache,cache*', | ||
); | ||
$this->drush('sql-sync', array('@stage', '@dev'), $sync_options); | ||
$this->drush('sql-sanitize', [], ['yes' => NULL, 'sanitize-email' => '[email protected]'], '@dev'); | ||
|
||
$options = array( | ||
'root' => $this->webroot(), | ||
|