Skip to content

Table list can sometimes include tables that don't exist #61

@danielbachhuber

Description

@danielbachhuber

When you run wp db tables on multisite, it can (erroneously) report the sitecategories table to exist when it's not actually created in the database.

Under the hood, wp db tables is reporting the tables registered to the $wpdb object. Apparently WordPress adds the sitecategories table to $wpdb when it's not actually in use.

I don't have a strong opinion on how to fix (or whether we should fix). Logging here for visibility.

Originally reported in https://wordpress.org/support/topic/wp-cli-db-tables-lists-non-existent-tables/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions