Update: 2026-07-04 21:53:06
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user