From c1156f3fb38ddf9f410ad9a014f54dfe551373bf Mon Sep 17 00:00:00 2001 From: Herb vd Dool Date: Tue, 12 Mar 2019 00:44:59 -0400 Subject: [PATCH] alt to issue-13788 assign db mapping to database_prefix --- CRM/Admin/Form/Setting/UF.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Admin/Form/Setting/UF.php b/CRM/Admin/Form/Setting/UF.php index fddbec36a6..792136a8f3 100644 --- a/CRM/Admin/Form/Setting/UF.php +++ b/CRM/Admin/Form/Setting/UF.php @@ -82,6 +82,9 @@ class CRM_Admin_Form_Setting_UF extends CRM_Admin_Form_Setting { $dsnArray = DB::parseDSN($config->dsn); $tableNames = CRM_Core_DAO::getTableNames(); $tablePrefixes = '$databases[\'default\'][\'default\'][\'prefix\']= array('; + if ($config->userFramework === 'Backdrop') { + $tablePrefixes = '$database_prefix = array('; + } $tablePrefixes .= "\n 'default' => '$drupal_prefix',"; // add default prefix: the drupal database prefix $prefix = ""; if ($config->dsn != $config->userFrameworkDSN) { -- 2.25.1