Files
roi-theme/wp-content/plugins/wp-marketing-automations-pro/includes/db/tables/class-bwfan-db-table-conversions.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

55 lines
1.2 KiB
PHP
Executable File

<?php
/**
* bwfan_conversions table class
*
*/
if ( ! BWFAN_PRO_Common::is_lite_3_0() && ! class_exists( 'BWFAN_DB_Table_Conversions' ) ) {
class BWFAN_DB_Table_Conversions extends BWFAN_DB_Tables_Base {
public $table_name = 'bwfan_conversions';
/**
* Get table's columns
*
* @return string[]
*/
public function get_columns() {
return [
"ID",
"wcid",
"cid",
"trackid",
"oid",
"otype",
"wctotal",
"date",
];
}
/**
* Get query for create table
*
* @return string
*/
public function get_create_table_query() {
global $wpdb;
$collate = $this->get_collation();
return "CREATE TABLE {$wpdb->prefix}$this->table_name (
`ID` bigint(20) unsigned NOT NULL auto_increment,
`wcid` bigint(20) unsigned NOT NULL,
`cid` bigint(20) unsigned NOT NULL,
`trackid` bigint(20) unsigned NOT NULL,
`oid` bigint(20) unsigned NOT NULL,
`otype` tinyint(2) unsigned not null COMMENT '1 - Automation 2 - Campaign 3 - Note 4 - Email 5 - SMS',
`wctotal` varchar(32),
`date` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`ID`),
KEY `cid` (`cid`),
KEY `oid` (`oid`),
KEY `otype` (`otype`),
KEY `date` (`date`)
) $collate;";
}
}
}