Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-14359

Drush sql-* civicrm commands dont work

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.4
    • Fix Version/s: 4.5
    • Labels:
      None

      Description

      I'm new to civicrm, but it appears the drush sql commands dont work, at least with drush 6.

      I've given an example of the change that I have tested to fix this. Essentially, not returning the drush_sql_command result causes nothing to get printed.

      /**

      • Implementation of drush_hook_COMMAND_validate for command 'civicrm-sql-connect'
        */
        function drush_civicrm_pre_civicrm_sql_connect() { _civicrm_dsn_init(); }

      /**

      • Implementation of command 'civicrm-sql-connect'
        */
        function drush_civicrm_sqlconnect() { return drush_sql_connect(); }

      function drush_civicrm_post_civicrm_sql_connect()

      { _civicrm_dsn_close(); }

        Attachments

          Activity

            People

            • Assignee:
              deepak Deepak Srivastava
              Reporter:
              joelcollinsdc Joel Collins
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: