
totten
authored
1. This addresses the error [PHP Fatal error: Call to undefined function db_query() in /opt/buildkit/build/mytestbuild/sites/all/modules/civicrm/CRM/Utils/System/DrupalBase.php](http://civicrm.stackexchange.com/questions/11972/regen-sh-call-to-undefined-function-db-query/11986#11986). 2. Generally, the goal here is to produce `civicrm_generated.mysql`, which is used on any/all CMS's to initialize the Civi database. If the generation were really dependent on Drupal 7, then we wouldn't be able to use that output on other CMS's, right? Thus I'm hopeful that we can generate `civicrm_generated.mysql` with any `CIVICRM_UF`. And the `UnitTests` UF has fewer dependencies/interactions. 3. Since `GenerateData.php` is running in a dummy CMS, we can remove these weird mock-drupal-functions. 4. To test, I ran `regen.sh` and compared the output with the old one. All the changes looked like random-data (`civicrm_contact`, etal) and not structural data (`civicrm_option_value`, etal).
Name | Last commit | Last update |
---|---|---|
.. | ||
csv | ||
migrate | ||
ContributionProcessor.php | ||
cli.class.php | ||
cli.php | ||
cron.php | ||
encryptDB.php | ||
givi | ||
regen.sh | ||
setup.conf.txt | ||
setup.lib.sh | ||
setup.sh |