| | |
| | | $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 |