bin/regen.sh - Allow the `sequentialcreditnotes` ext to propagate into generated...
authorTim Otten <totten@civicrm.org>
Sat, 22 Feb 2020 05:02:01 +0000 (21:02 -0800)
committereileen <emcnaughton@wikimedia.org>
Sun, 23 Feb 2020 23:45:20 +0000 (12:45 +1300)
bin/regen.sh

index 0af6490e58900ff034b76beb48005b047eb8ed41..3d5f6bcf852fc14e76fd7ec41bc20c14f674355f 100755 (executable)
@@ -48,7 +48,8 @@ cms_eval 'civicrm_initialize();'
 php GenerateData.php
 
 ## Prune local data
-$MYSQLCMD -e "DROP TABLE zipcodes; DROP TABLE IF EXISTS civicrm_install_canary; DELETE FROM civicrm_extension; DELETE FROM civicrm_cache; DELETE FROM civicrm_setting;"
+$MYSQLCMD -e "DROP TABLE zipcodes; DROP TABLE IF EXISTS civicrm_install_canary; DELETE FROM civicrm_cache; DELETE FROM civicrm_setting;"
+$MYSQLCMD -e "DELETE FROM civicrm_extension WHERE full_name NOT IN ('sequentialcreditnotes');"
 TABLENAMES=$( echo "show tables like 'civicrm_%'" | $MYSQLCMD | grep ^civicrm_ | xargs )
 
 cd $CIVISOURCEDIR/sql