Skip to content

Rpow doesn't play nice with logging #6

@eileenmcnaughton

Description

@eileenmcnaughton

I'm hitting an issue with rpow locally when I try to turn logging on or off.

The issue is the CRM_Logging_Schema class makes liberal use of $this-db defined as


    if (defined('CIVICRM_LOGGING_DSN')) {
      $dsn = DB::parseDSN(CIVICRM_LOGGING_DSN);
      $this->useDBPrefix = (CIVICRM_LOGGING_DSN != CIVICRM_DSN);
    }
    else {
      $dsn = DB::parseDSN(CIVICRM_DSN);
      $this->useDBPrefix = FALSE;
    }
    $this->db = $dsn['database'];

With RPOW enabled $this->db winds up as '' and the queries wind up as
'CREATE TABLE .civicrm_x'
I'm wondering what the best approach is here @totten

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions