Files
roi-theme/wp-content/plugins/sociallocker-next-premium/plugin/updates/030701.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

39 lines
1.3 KiB
PHP
Executable File

<?php
/**
* Adds a new column 'na_count'.
*
* @since 3.7.2
*/
class SocialLockerUpdate030701 extends Factory325_Update {
public function install() {
global $wpdb;
$sql = "
CREATE TABLE {$wpdb->prefix}so_tracking (
ID BIGINT(20) NOT NULL AUTO_INCREMENT,
AggregateDate DATE NOT NULL,
PostID BIGINT(20) NOT NULL,
total_count INT(11) NOT NULL DEFAULT 0,
na_count INT(11) NOT NULL DEFAULT 0,
facebook_like_count INT(11) NOT NULL DEFAULT 0,
twitter_tweet_count INT(11) NOT NULL DEFAULT 0,
google_plus_count INT(11) NOT NULL DEFAULT 0,
timer_count INT(11) NOT NULL DEFAULT 0,
cross_count INT(11) NOT NULL DEFAULT 0,
facebook_share_count INT(11) NOT NULL DEFAULT 0,
twitter_follow_count INT(11) NOT NULL DEFAULT 0,
google_share_count INT(11) NOT NULL DEFAULT 0,
linkedin_share_count INT(11) NOT NULL DEFAULT 0,
PRIMARY KEY (ID),
KEY IX_wp_so_tracking_PostID (PostID),
UNIQUE KEY UK_wp_so_tracking (AggregateDate,PostID)
);";
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
dbDelta($sql);
}
}