-
-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRM-10193 - Allow civicrm-sql-conf and civicrm-sql-cli with empty database #321
Conversation
It looks like this changes drush to never bootstrap Civi - aren't there civi drush commands which depend on this? |
I think this won't break other functionality, as anywhere where the config is really needed, it will be initialized with the CRM_Core_Config::singleton(); method call. |
@totten or @eileenmcnaughton any opinion? |
I don't know that side of things well enough to comment @torrance or @xurizaemon might - or @mlutfy |
@mollux While doing QA, I found that the above two commands(civicrm-sql-conf and civicrm-sql-cli) works well with the PR. But the upgrade one errors with the message. Eg:-
Note : With the bootstrap code in place, it works properly. |
@jlillyreed this seems related to your #340 - could you consider QAing it? Thx |
@jitendrapurohit There were indeed some commands that need the loaded config, so I made it optional, with the default to load it.This because most of the commands need the loaded config (only the ones using _civicrm_dsn_init don't need it). |
QA'd the changes. All commands seems to be working fine now :-) |
CRM-10193