Not signed in (Sign In)
 
Jan 4th 2008
 
Only the user table can be set to not use the prefix. edavis requested a way to allow other table to not use it.

The work around today is to set the the prefix configuration string to an empty string and to add the prefix directly to all the table names that need it. But with an empty prefix some extension might delete existing table.
 
Jun 9th 2008
 
Here is the function:function GetTableName($Key, &$TableCollection, $Prefix) {
if ($Key == "User") {
return $TableCollection[$Key];
} else {
return $Prefix.$TableCollection[$Key];
}
}


We could add a new array to appg/database.php for the list of tables that don't use a prefix, like $DatabaseNoPrefixTables[] = "User";

How should GetTableName() get the the new array? using globals or a 4th argument?
 
Jun 9th 2008 edited
 

Issue information

  • 43
  • No assigned user

    No assigned user

     

  • Open
  • Low
  • Feature

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.