Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Sql sync has a nice feature to skip the content of certain tables, and only sync it's structure. Which can save time...
Usage: Define the code below in e.g. ~/.drush/local.drushrc.php
/**
* List of tables whose *data* is skipped by the 'sql-dump' and 'sql-sync'
* commands when the "--structure-tables-key=common" option is provided.
* You may add specific tables to the existing array or add a new element.
*/
$options['structure-tables']['common'] = array('cache', 'cache_field', 'cache_views', 'cache_form', 'cache_filter', 'cache_menu', 'cache_page', 'history', 'sessions', 'watchdog', 'accesslog');










Comments
Comment #3
helmo CreditAttribution: helmo at Initfour websolutions for Aegir Cooperative commented