Files
roi-theme/wp-content/plugins/wp-marketing-automations/includes/db/tables/class-bwfan-db-table-options.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

38 lines
666 B
PHP
Executable File

<?php
class BWFAN_DB_Table_Options extends BWFAN_DB_Tables_Base {
public $table_name = 'bwf_options';
/**
* Get table's columns
*
* @return string[]
*/
public function get_columns() {
return [
"id",
"key",
"value",
];
}
/**
* 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(10) unsigned NOT NULL auto_increment,
`key` varchar(150) default NULL,
`value` longtext,
PRIMARY KEY (`id`),
KEY `id` (`id`),
KEY `key` (`key`)
) $collate;";
}
}