The provided --exclude option can be useful, but Drush also uses that name :( to exclude modules from loading. And Aegir leverages that feature.
So I opt to rename it to 'exclude-tables'.
The warning I got before changing this:
explode() expects parameter 2 to be string, array given utf8mb4_convert.drush.inc:154 [warning]
array_diff(): Argument #2 is not an array utf8mb4_convert.drush.inc:154 [warning]
sort() expects parameter 1 to be array, null given utf8mb4_convert.drush.inc:157 [warning]
Invalid argument supplied for foreach() utf8mb4_convert.drush.inc:159 | Comment | File | Size | Author |
|---|---|---|---|
| #3 | utf8mb4_convert-rename_exclude_option-2928840-3.patch | 1.74 KB | hargobind |
| utf8mb4_convert-rename_exclude_option.patch | 1.54 KB | helmo |
Comments
Comment #2
jacob.embree commentedI agree. I got the same errors. helmo's patch fixed them. The renamed option works.
Comment #3
hargobindOne minor change here. The
$excludevariable name should be changed to$exclude_tablesfor consistency.Aside from that, this patch works great!
Comment #5
stefan.r commented