From: Tim Otten Date: Fri, 14 Aug 2015 05:59:39 +0000 (-0700) Subject: CRM-16205 - regen.sh - Exclude cache, extension, dir/path settings, and third-party... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3ccbcde493683441b0170d6e2beb36e706a5386b;p=civicrm-core.git CRM-16205 - regen.sh - Exclude cache, extension, dir/path settings, and third-party tables. --- diff --git a/bin/regen.sh b/bin/regen.sh index 3717b33dc2..ff3f033593 100755 --- a/bin/regen.sh +++ b/bin/regen.sh @@ -46,10 +46,12 @@ php GenerateData.php cd $CIVISOURCEDIR "$PHP5PATH"php bin/cli.php -e System -a flush --triggers 1 --session 1 -$MYSQLCMD -e "DROP TABLE zipcodes; UPDATE civicrm_domain SET config_backend = NULL; UPDATE civicrm_setting SET value = NULL WHERE name = 'userFrameworkResourceURL' OR name = 'imageUploadURL';" +$MYSQLCMD -e "DROP TABLE zipcodes; UPDATE civicrm_domain SET config_backend = NULL; DELETE FROM civicrm_extension; DELETE FROM civicrm_cache; UPDATE civicrm_setting SET value = NULL WHERE group_name IN ('Directory Preferences','URL Preferences');" +TABLENAMES=$( echo "show tables like 'civicrm_%'" | $MYSQLCMD | grep ^civicrm_ | xargs ) cd $CIVISOURCEDIR/sql -$MYSQLDUMP -cent --skip-triggers $DBNAME > civicrm_generated.mysql + +$MYSQLDUMP -cent --skip-triggers $DBNAME $TABLENAMES > civicrm_generated.mysql #cat civicrm_sample_report.mysql >> civicrm_generated.mysql cat civicrm_sample_custom_data.mysql >> civicrm_generated.mysql #cat civicrm_devel_config.mysql >> civicrm_generated.mysql