CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Database prefix
Pages: [1]

Author Topic: Database prefix  (Read 3341 times)

hp3kman

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 4
Database prefix
May 13, 2007, 05:57:16 pm
After a week of trying, I think I've finally got this thing to cooperate; I did a completely manual install, and it looks like it might work...however, I've yet to load the tables.

Here is the problem...I've got both my development and live sites using the same database...live has a joomla db_prefix of "jlive_" and development has a db_prefix of "jdev_".

From what I can see, the SQL will load these tables into civicrm_tablename, but I'd like it to be, for live and dev, jlive_civicrm_tablename and jdev_civicrm_tablename respectively. How can I do this???

I know I could modify the SQL statements to reflect this, but I'm worried that the code doesn't reference joomla's database prefix anywhere, so it won't find the tables...if it doesn't, it really should...I'm sure I'm not the only one who has run into this!

Help, please!

Manish Zope

  • I’m new here
  • *
  • Posts: 18
  • Karma: 4
Re: Database prefix
May 14, 2007, 06:15:57 am
Adding prefixes to civicrm tables may break the civicrm functionality.

May be that can be a part of future release. But nothing like that on radar for now.

hp3kman

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 4
Re: Database prefix
May 14, 2007, 07:04:06 am
For cosistency's sake, it really should be included in a future release...this is standard in all Joomla components.

Strangely, $mosConfig_dbprefix IS referenced as a global vaiable in configure.php, but is unused...I'm fairly certain that, in other components, this value is fed to the component by using #_tablename in the code...

I see that there is similar functionality in using the "domain" setting, which I suppose will work, but - IMHO - for the sake of consistency, it should use the Joomla standard unless there is some compelling reason not to.

Thanks for your reply...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Database prefix

This forum was archived on 2017-11-26.