AP_Activate::insert_tables()
Description #
Insert and update tables
Source #
File: activate.php
public function insert_tables() { global $wpdb; $this->charset_collate = ! empty( $wpdb->charset ) ? 'DEFAULT CHARACTER SET ' . $wpdb->charset : ''; $this->qameta_table(); $this->votes_table(); $this->views_table(); $this->reputation_table(); $this->subscribers_table(); $this->activity_table(); $this->reputation_events_table(); require_once ABSPATH . 'wp-admin/includes/upgrade.php'; if ( count( $this->tables ) > 0 ) { foreach ( $this->tables as $table ) { dbDelta( $table ); } } }
Expand full source code Collapse full source code View on GitHub: activate.php:299
Add your comment