Update: 2026-07-04 21:48:30
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
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();
|
||||||
|
|
||||||
|
echo "<h1>Task inserted successfully!</h1>";
|
||||||
|
echo "<p>A new 'autonomous_scroll_and_reply' task is now pending for Facebook.</p>";
|
||||||
|
echo "<p>Please restart the Android app now. It will immediately pick up this task and start scrolling!</p>";
|
||||||
Reference in New Issue
Block a user