diff --git a/backend/marketing_engine/index.php b/backend/marketing_engine/index.php index e381e924..08123802 100644 --- a/backend/marketing_engine/index.php +++ b/backend/marketing_engine/index.php @@ -85,13 +85,6 @@ try { if ($reportHtml) { // Save to database - $con->query("CREATE TABLE IF NOT EXISTS `marketing_reports` ( - `id` INT AUTO_INCREMENT PRIMARY KEY, - `platform` VARCHAR(50) NOT NULL, - `report_html` TEXT NOT NULL, - `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP - )"); - $stmt = $con->prepare("INSERT INTO marketing_reports (platform, report_html) VALUES (?, ?)"); $stmt->execute([$platform, $reportHtml]); } diff --git a/backend/marketing_engine/insert_autonomous_task.php b/backend/marketing_engine/insert_autonomous_task.php index cf3afae2..575fbcc0 100644 --- a/backend/marketing_engine/insert_autonomous_task.php +++ b/backend/marketing_engine/insert_autonomous_task.php @@ -2,16 +2,6 @@ require_once __DIR__ . '/../core/bootstrap.php'; $con = Database::get('main'); -// Create table if not exists just to be absolutely sure -$con->query("CREATE TABLE IF NOT EXISTS `marketing_tasks` ( - `id` INT AUTO_INCREMENT PRIMARY KEY, - `platform` VARCHAR(50) NOT NULL, - `type` VARCHAR(50) NOT NULL, - `status` VARCHAR(20) DEFAULT 'pending', - `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP -)"); - -// Insert the autonomous task $stmt = $con->prepare("INSERT INTO marketing_tasks (platform, type, status) VALUES ('facebook', 'autonomous_scroll_and_reply', 'pending')"); $stmt->execute();