Download & Extend

db_prefix not used for table creation

Project:G2 Glossary
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

As I use a db_prefix definition in my settings.php like this:

<?php

$db_prefix
= array(
     
'default'   => 'xyz_',
     
'locales_meta'     => 'shared_',
     
'locales_source'  => 'shared_',
     
'locales_target'      => 'shared_' );
?>

the creation of the tables should ad the prefix xyz_ to the new g2-tables in the installation process.

Might be easy to fix.

Perhaps one should consider, wether there is more than one site configured in this drupl installation. But I dont know wether this is a problem.

Best,
Axel

Comments

#1

Status:active» needs review

Not sure whether this works or not, but you might want to try replacing
$sq = 'CREATE TABLE `g2_referer` ' by
$sq = 'CREATE TABLE {g2_referer} '

and replacing

$sq = 'CREATE TABLE `g2_node` ' by
$sq = 'CREATE TABLE {g2_node} '

I've attached a patch for this. Could you test it and report how it goes ?

AttachmentSizeStatusTest resultOperations
g2.install.patch2.21 KBIgnored: Check issue status.NoneNone

#2

Status:needs review» fixed

Version 1.15.2.7 now includes this patch.

#3

Status:fixed» closed (fixed)
nobody click here