WordPress.org

Forums

Football Pool
[resolved] Database: Prefix tables names incorrect (6 posts)

  1. elfregadero
    Member
    Posted 1 year ago #

    First of all compliments for this plugin. I just started working with it, but impressed so far.

    I noticed that table names start with 'pool_' followed by the prefix as defined in the wp_config.php and then the regular table names. I believe this is not the correct order.

    I have multiple wordpress installation on one domain with different prefixes for database tables, including an old one called pool. Your tables are now located between these tables.

    Is this a 'bug' or is this intentional? I would prefer to start with the prefix.

    Cheers,
    Niels Koops

    https://wordpress.org/plugins/football-pool/

  2. AntoineH
    Member
    Plugin Author

    Posted 1 year ago #

    Well, I wouldn't call it a bug. Unless there is a guideline from WP in the codex, but I can't remember reading about such a naming convention.

    I prefer the plugin tables together and not between the WP tables, that's why I named them with the plugin prefix first.
    If you prefer it the other way around, then you can change it in define.php.

  3. elfregadero
    Member
    Posted 1 year ago #

    I didn't wanted to call this a bug either. Then again I didn't really know what to call it then. I wanted to let you know my finding, but since this is your intention, it is fine as it is.

    I might change it in the define.php, but that will probably give trouble with a possible update.

    Cheers,
    Niels

  4. AntoineH
    Member
    Plugin Author

    Posted 1 year ago #

    I changed the code a bit in define.php for the next version. If you want the prefix to be different, you can override the default in wp-config.php from version 2.4.0 and up.

    define( 'FOOTBALLPOOL_DB_PREFIX', 'my_own_prefix_' );

  5. elfregadero
    Member
    Posted 1 year ago #

    Nice. Thank you. Good luck working on the next version.

    Any idea when you might release this version?

    Cheers,
    Niels

  6. AntoineH
    Member
    Plugin Author

    Posted 1 year ago #

    Not exactly, but I think I will be ready in 2-3 weeks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Football Pool
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.