custom table names (4 posts)

  1. mmenke
    Posted 12 years ago #

    created errors for me on install. I renamed all tables to mm-* and it gave a syntax error on line 1. Setting it back to the original names made it work again...

  2. jrconlin
    Posted 12 years ago #

    On a like note...
    I noticed that several table names are located in seperate files with no indication that they're seperate. (e.g. the table names in b2config.php and links/links.config.php)
    Can I propose that b2config contain a $TABLE_PREFIX value that is universally applied to the table names? This would allow folks to have one location where modifications to table names can occur.

  3. Matt Mullenweg
    Posted 12 years ago #

    The problem with moving to a prefix system now is we'd have to address poeple who currently have custom table names. It's a good idea though, much cleaner.

  4. jrconlin
    Posted 12 years ago #

    Sure, the way I modified the code was to simply do
    $tableName = $TablePrefix.'tableName';
    folks who want special names simply keep the prefix set to '' and modify the individual table names.
    More importantly, there just needs to be more consistency in how things are referred. Just because PHP has screwy names for stuff doesn't mean we have to continue the tradition ;)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.