AP_Activate::reputation_events_table()

Description #

AnsPress reputation events table.

Changelog #

VersionDescription
4.3.0Introduced.

Source #

File: activate.php

	public function reputation_events_table() {
		global $wpdb;

		$this->tables[] = 'CREATE TABLE ' . $wpdb->ap_reputation_events . ' (
			rep_events_id bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
			slug varchar(100) NOT NULL UNIQUE,
			icon varchar(100) NOT NULL,
			label varchar(100) NOT NULL,
			description varchar(200) NOT NULL,
			activity varchar(200) NOT NULL,
			parent varchar(100) NOT NULL DEFAULT \'\',
			points int(5) NOT NULL DEFAULT 0,
			PRIMARY KEY  (rep_events_id),
			KEY points_key (points),
			KEY parent_key (parent)
		)' . $this->charset_collate . ';';
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment