On Aug 24, 2007, at 10:19 AM, Brion Vibber wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jim Hu wrote:
This is where having the TableEdit outside is
coming back to bite me.
When I use $dbr->selectDB($wgTableEditDatabaseName), do I need to
include global $wgDBname all over the place and do $dbr->selectDB
($wgDBname) every time, or is there a better way that doesn't need to
use another global. i.e. is there something like $dbr-
> select_default_wikidb?
I would strongly recommend using a table in the same database, rather
than a table in a separate database. This will ease your life and the
life of anyone trying to use and administer the system.
Um, OK. Now that I'm trying to use the MW database functions
properly, this is really becoming clear. Live and learn.
Unfortunately I have external tables with a gazillion rows... I guess
I can add it to the database. I'll have to write some update scripts
for the users who've installed the extension to migrate existing
stuff into the main database.
Was there ever a consensus on table naming for extensions adding to
the core schema?
- -- brion vibber (brion @
wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFGzvcXwRnhpk1wk44RArslAJ9ld93BYGnrFaDXUfOFJBfjYmz+jwCeOAAz
EnkBZB/4V91NqhFGLMgnIwY=
=yL0F
-----END PGP SIGNATURE-----
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054