[Mediawiki-l] $dbr->selectDB

Michael Daly michaeldaly at kayakwiki.org
Sat Aug 25 19:51:58 UTC 2007


DanTMan wrote:

> et/Id/ = Extension Table for Extension /ID
[...]
> Make enough sense? Your tables in this format would be:
> wtTableEdit_box
> wtTableEdit_row
> wtTableEdit_row_metadata
> wtVote

Shouldn't that then be:


etTableEdit_box
etc...


 > /Of course we don't add any wt prefix to MediaWiki Database
 > tables because we have $wgDBprefix.

But $wgDBprefix should be applied to all tables.  If you have a wiki 
family sharing MySQL, the only differentiation between each member of 
the family is the relative value of $wgDBprefix.  Hence the end result is

$wgDBprefix . "etTableEdit_box"

e.g.
en.etTableEdit_box
fr.etTableEdit_box
de.etTableEdit_box
etc..

Mike






More information about the MediaWiki-l mailing list