Skip to content
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

Merged
merged 3 commits into from
Jul 11, 2016

Conversation

mollux
Copy link
Contributor

@mollux mollux commented Oct 30, 2015

@colemanw
Copy link
Member

colemanw commented Dec 1, 2015

It looks like this changes drush to never bootstrap Civi - aren't there civi drush commands which depend on this?

@mollux
Copy link
Contributor Author

mollux commented Dec 1, 2015

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.

@colemanw
Copy link
Member

colemanw commented Dec 1, 2015

@totten or @eileenmcnaughton any opinion?

@eileenmcnaughton
Copy link
Contributor

I don't know that side of things well enough to comment @torrance or @xurizaemon might - or @mlutfy

@jitendrapurohit
Copy link
Contributor

@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:-

$ drush civicrm-upgrade-db
DB_DataObject Error: No database name / dsn found anywhere
Drush command terminated abnormally due to an unrecoverable error. 

Note : With the bootstrap code in place, it works properly.

@JoeMurray
Copy link

@jlillyreed this seems related to your #340 - could you consider QAing it? Thx

@mollux
Copy link
Contributor Author

mollux commented Jul 8, 2016

@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).

@jitendrapurohit
Copy link
Contributor

QA'd the changes. All commands seems to be working fine now :-)

@monishdeb monishdeb merged commit 0b4ba7f into civicrm:7.x-master Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants