Jake Vanderwerf
2026-01-11 474109a5df0a06f5343ab184838fe2d80e3872a8
inc/registry/CheckCustomTables.php
@@ -44,25 +44,6 @@
      $this->userIDType = $this->getColumnType($this->userTable, 'ID');
      $this->termIDType = $this->getColumnType($this->wpdb->terms, 'term_id');
      $this->postIDType = $this->getColumnType($this->wpdb->posts, 'ID');
      error_log("JVB DEBUG: userTable = " . $this->userTable);
      error_log("JVB DEBUG: Users table exists = " . ($this->wpdb->get_var("SHOW TABLES LIKE '{$this->userTable}'") ? 'yes' : 'no'));
      error_log("JVB DEBUG: Users engine = " . $this->wpdb->get_var("SELECT ENGINE FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = '{$this->userTable}'"));
      error_log("JVB DEBUG: MySQL version = " . $this->wpdb->db_version());
      $usersStatus = $this->wpdb->get_row("SHOW TABLE STATUS LIKE '{$this->userTable}'");
      $termsStatus = $this->wpdb->get_row("SHOW TABLE STATUS LIKE '{$this->wpdb->terms}'");
      error_log("JVB DEBUG: wp_users collation = " . $usersStatus->Collation);
      error_log("JVB DEBUG: wp_terms collation = " . $termsStatus->Collation);
      error_log("JVB DEBUG: Our charset_collate = " . $this->wpdb->get_charset_collate());
      error_log("JVB FK Types: users.ID={$this->userIDType}, terms.term_id={$this->termIDType}, posts.ID={$this->postIDType}");
      $usersDb = $this->wpdb->get_var(
         "SELECT TABLE_SCHEMA FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = '{$this->userTable}' LIMIT 1"
      );
      error_log("JVB DEBUG: wp_users is in database = " . $usersDb);
      error_log("JVB DEBUG: Current DB_NAME = " . DB_NAME);
      error_log("JVB DEBUG: Tables being created in = " . $this->wpdb->dbname);
   }
   protected function getMultisiteUsersTable():string