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>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
<?php
// silence is golden

View File

@@ -0,0 +1,51 @@
<?php
/**
* Migration for creating required database tables
*/
if ( ! defined( 'ABSPATH' ) ) {
exit( 1 );
}
/** @var TD_DB_Migration $installer */
$installer = $this;
$installer->create_table( 'events', "
`id` BIGINT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
`campaign_id` BIGINT(20) UNSIGNED NOT NULL,
`days` INT(5) UNSIGNED NOT NULL DEFAULT 0,
`hours` INT(5) UNSIGNED NOT NULL DEFAULT 0,
`trigger_options` TEXT NULL COLLATE 'utf8_general_ci',
`actions` TEXT NULL COLLATE 'utf8_general_ci',
`type` ENUM('time','conv', 'start') NULL DEFAULT 'time'", true );
$installer->create_table( 'designs', "
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
`post_parent` BIGINT(20) NOT NULL,
`post_status` VARCHAR(20) NOT NULL DEFAULT 'publish',
`post_type` VARCHAR(20) NOT NULL,
`post_title` TEXT COLLATE 'utf8_general_ci' NOT NULL,
`content` LONGTEXT COLLATE 'utf8_general_ci' NULL DEFAULT NULL,
`tcb_fields` LONGTEXT NULL DEFAULT NULL,
parent_id INT( 11 ) NULL DEFAULT '0'", true );
$installer->create_table( 'settings_templates', "
`id` INT(11) NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL,
`description` TEXT NULL,
`show_options` LONGTEXT NULL,
`hide_options` LONGTEXT NULL,
PRIMARY KEY (`id`)" );
$installer->create_table( 'settings_campaign', "
`id` INT(11) NOT NULL AUTO_INCREMENT,
`campaign_id` BIGINT(20) NOT NULL,
`description` VARCHAR(255),
`show_options` LONGTEXT NULL,
`hide_options` LONGTEXT NULL,
PRIMARY KEY (`id`)" );
$installer->create_table( 'event_log', "
`id` BIGINT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
`campaign_id` BIGINT(20) UNSIGNED NOT NULL,
`date` DATETIME NULL DEFAULT NULL,
`type` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0", true );

View File

@@ -0,0 +1,18 @@
<?php
/**
* Migration for creating required table for emails log
*/
if ( ! defined( 'ABSPATH' ) ) {
exit( 1 );
}
/** @var TD_DB_Migration $installer */
$installer = $this;
$installer->create_table('emails', "
`id` BIGINT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
`campaign_id` BIGINT(20) UNSIGNED NOT NULL,
`email` VARCHAR(255) NOT NULL,
`started` DATETIME NOT NULL,
`type` VARCHAR(255) NOT NULL DEFAULT 'url',
`end` TINYINT UNSIGNED NOT NULL DEFAULT 0");

View File

@@ -0,0 +1,12 @@
<?php
/**
* Migration for creating required table for emails log
*/
if ( ! defined( 'ABSPATH' ) ) {
exit( 1 );
}
/** @var TD_DB_Migration $installer */
$installer = $this;
$installer->add_or_modify_column( 'emails', 'has_impression', 'TINYINT UNSIGNED NOT NULL DEFAULT 0' );

View File

@@ -0,0 +1,12 @@
<?php
/**
* Migration for creating required table for emails log
*/
if ( ! defined( 'ABSPATH' ) ) {
exit( 1 );
}
/** @var TD_DB_Migration $installer */
$installer = $this;
$installer->add_query( "UPDATE {emails} SET `email` = MD5(`email`)" );