mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
feat(analytics): resilient Graph API calls, CRON sync every 6h, polling frontend, engagement+views metrics
This commit is contained in:
1 parent
942e33df62
commit
330c42c6ff
5 files changed
+130
-55
No files matched your search
@@ -111,6 +111,11 @@ export async function migrate() {
|
||||
ALTER TABLE "posts"
|
||||
ADD COLUMN IF NOT EXISTS "generation_error" text;
|
||||
`);
|
||||
// page_analytics_history.page_engagement
|
||||
await client.query(`
|
||||
ALTER TABLE "page_analytics_history"
|
||||
ADD COLUMN IF NOT EXISTS "page_engagement" integer DEFAULT 0;
|
||||
`);
|
||||
|
||||
console.log("[Migration] Safe migration completed.");
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user