Open totten opened 6 years ago
I like the sound of this:
(without needing setup.sh / regen.sh / GenCode)
Does this mean that civicrm-setup could be used to power the Drupal 8 installer, allowing us to remove the lines from the process that copy the SQL files?
Ie., this line: https://gist.github.com/dsnopek/56311dbea347874e75180883efabb620#file-installing-civicrm-on-drupal-8-via-composer-sh-L54
That would be amazing!
Does this mean that civicrm-setup could be used to power the Drupal 8 installer, allowing us to remove the lines from the process that copy the SQL files?
@dsnopek - Spot-on for both counts:
civicrm-setup
API should be available now for use in the Civi-D8 integration. (Specifically, anything based on master
and the current revision of core's composer.json
.)I have submitted a PR https://github.com/civicrm/civicrm-setup/pull/9 in this direction, although my changes aren't complete and marked with WIP. In that PR I have added a new event listener civi.setup.generateSchema
to generate SQL and DAO files, likewise in regen.sh The new API would be $setup->generateSchema()
that need to be called before $setup->installDatabase()
The current version of
civicrm-setup
still relies on the same SQL files as the old installer -- which means:setup.sh
andregen.sh
.en_US
.To simplify the workflow:
plugins/installDatabase/InstallSchema.civi-setup.php
...CRM/Core/CodeGen/*
,xml/schema/*
, andl10n/*
to produce the SQL on-demand.Eventually, this should allow us to remove
regen.sh
and remove the variouscivicrm_data.xx_XX.mysql
files.