Initial commit

This commit is contained in:
gustavooth
2026-07-23 22:56:30 -03:00
commit 22a1006598
1816 changed files with 410742 additions and 0 deletions
@@ -0,0 +1,37 @@
<?php
namespace FluentCrmMigrations;
class Lists
{
/**
* Migrate the table.
*
* @return void
*/
public static function migrate()
{
global $wpdb;
$charsetCollate = $wpdb->get_charset_collate();
$table = $wpdb->prefix .'fc_lists';
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
if ($wpdb->get_var("SHOW TABLES LIKE '$table'") != $table) {
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
$sql = "CREATE TABLE $table (
`id` INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
`title` VARCHAR(192) NOT NULL,
`slug` VARCHAR(192) NOT NULL,
`description` TINYTEXT NULL,
`is_public` TINYINT(1) DEFAULT 0,
`created_at` TIMESTAMP NULL,
`updated_at` TIMESTAMP NULL
) $charsetCollate;";
dbDelta($sql);
}
}
}