regen.sh - Ignore civicrm_install_canary
authorCiviCRM <info@civicrm.org>
Thu, 7 Jan 2016 01:15:24 +0000 (17:15 -0800)
committerCiviCRM <info@civicrm.org>
Thu, 7 Jan 2016 02:25:05 +0000 (18:25 -0800)
bin/regen.sh

index 250120e2ed2ce2fcf14cbfbd6f581b89feebce22..854bd98aced27429bcf9b8f0f650b0fe64ba822f 100755 (executable)
@@ -46,7 +46,7 @@ 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; DELETE FROM civicrm_extension; DELETE FROM civicrm_cache; DELETE FROM civicrm_setting;"
+$MYSQLCMD -e "DROP TABLE zipcodes; DROP TABLE IF EXISTS civicrm_install_canary; UPDATE civicrm_domain SET config_backend = NULL; DELETE FROM civicrm_extension; DELETE FROM civicrm_cache; DELETE FROM civicrm_setting;"
 TABLENAMES=$( echo "show tables like 'civicrm_%'" | $MYSQLCMD | grep ^civicrm_ | xargs )
 
 cd $CIVISOURCEDIR/sql