plugins/caldera-forms/classes/db/tables.php
/**
	 * Add the cf_form_entries table
	 *
	 * Warning: does not check if it exists first, which could cause SQL errors.
	 *
	 * @since 1.5.1
	 */
Add the cf_form_entries table
Warning: does not check if it exists first, which could cause SQL errors.


Add the cf_form_entries table Warning : does not check if it exists first which could cause SQL errors .
public function form_entries(){
		$this->set_charset();
		$entry_table = "CREATE TABLE `" . $this->wpdb->prefix . "cf_form_entries` (
				`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
				`form_id` varchar(18) NOT NULL DEFAULT '',
				`user_id` int(11) NOT NULL,
				`datestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
				`status` varchar(20) NOT NULL DEFAULT 'active',
				PRIMARY KEY (`id`),
				KEY `form_id` (`form_id`),
				KEY `user_id` (`user_id`),
				KEY `date_time` (`datestamp`),
				KEY `status` (`status`)
				) " . $this->charset_collate . ";";
		dbDelta( $entry_table );
	}
public function form_entries ( ) { $ this -> set_charset ( ) ; $ entry_table = " CREATE TABLE ` " . $ this -> wpdb -> prefix . " cf_form_entries` (
				`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
				`form_id` varchar(18) NOT NULL DEFAULT '',
				`user_id` int(11) NOT NULL,
				`datestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
				`status` varchar(20) NOT NULL DEFAULT 'active',
				PRIMARY KEY (`id`),
				KEY `form_id` (`form_id`),
				KEY `user_id` (`user_id`),
				KEY `date_time` (`datestamp`),
				KEY `status` (`status`)
				)  " . $ this -> charset_collate . " ; " ; dbDelta ( $ entry_table ) ; }
Add the cf_form_entries table
 Warning: does not check if it exists first, which could cause SQL errors.
Add the cf_form_entries table Warning : does not check if it exists first which could cause SQL errors .