/home/techb158/public_html/wp-content/plugins/wpforms-lite/src/Db/Analytics
NameSizeModeActions
DB.php113740666editdlrm
Forms.php15180666editdlrm
Snapshots.php18850666editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/wpforms-lite/src/Db/Analytics/Forms.php (1518B)
table_name = self::get_table_name(); $this->primary_key = 'form_id'; $this->type = 'analytics_forms'; } /** * Get the table name. * * @since 2.0.0 * * @return string */ public static function get_table_name(): string { return DB::forms_table(); } /** * Create the table. * * @since 2.0.0 */ public function create_table(): void { global $wpdb; $charset_collate = $wpdb->get_charset_collate(); $query = "CREATE TABLE $this->table_name ( form_id BIGINT(20) UNSIGNED NOT NULL, period_date DATE NOT NULL, views INT(10) UNSIGNED NOT NULL DEFAULT 0, unique_sessions INT(10) UNSIGNED NOT NULL DEFAULT 0, submissions INT(10) UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (form_id, period_date) ) {$charset_collate};"; require_once ABSPATH . 'wp-admin/includes/upgrade.php'; dbDelta( $query ); } }