Today when I was testing the new HEAD release, I of course wanted to throw as many silly things at it as possible, so I went to add a table prefix. Then I caught myself because I couldn't remember if the prefix should be "head_" or "head" ... patch upcoming.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

Status: Active » Needs review
FileSize
922 bytes

Here we go.

Btw, I went with "cms_" rather than "drupal_" because we don't have "Drupal" mentioned anywhere in this text, by design.

ChrisKennedy’s picture

Two quick thoughts: 1) some people don't know what "cms" stands for or means 2) the rest of the string suggests that the prefix should differ by site. So I think a slightly better example would be "site_" or "domain_".

webchick’s picture

Title: Provide an example of what a table prefix is » Improve table prefix field's description in installer
Status: Needs review » Needs work
FileSize
1.18 KB

Good points. cms_ is definitely a bad choice.

However, you've highlighted another bug with this string... the prefixing is not so much about how many websites are sharing a database, but how many *applications* are sharing a database (or, I guess "application instances," but that's a bit technical). I could have PHPBB and Drupal on the same website, and they are going to get very cranky if they're both looking for a 'users' table. So I've fixed that too.

"drupal_" is actually the string this ought to be, but can't because of the install profile problem. So here's a new patch that sets this based on the profile internal name, which will always be lower-case w/ underscores. I make an exception for 'default' because 'default_' doesn't make a lot of sense as a prefix, but 'civicspace_' and 'drupaled_' would.

webchick’s picture

Status: Needs work » Needs review

Oops. Didn't mean to change status.

catch’s picture

Status: Needs review » Reviewed & tested by the community

Still applies with offset. Changes look sensible to me.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.