mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
feat(reels): add real-time generation progress tracking on dashboard (desktop & mobile)
This commit is contained in:
1 parent
11b5ef0ad2
commit
e1c6b51e0a
7 files changed
+209
-6
No files matched your search
@@ -95,6 +95,24 @@ export async function migrate() {
|
||||
);
|
||||
`);
|
||||
|
||||
// posts.generation_status (Reel progress tracking)
|
||||
await client.query(`
|
||||
ALTER TABLE "posts"
|
||||
ADD COLUMN IF NOT EXISTS "generation_status" text;
|
||||
`);
|
||||
|
||||
// posts.generation_progress
|
||||
await client.query(`
|
||||
ALTER TABLE "posts"
|
||||
ADD COLUMN IF NOT EXISTS "generation_progress" integer DEFAULT 0;
|
||||
`);
|
||||
|
||||
// posts.generation_error
|
||||
await client.query(`
|
||||
ALTER TABLE "posts"
|
||||
ADD COLUMN IF NOT EXISTS "generation_error" text;
|
||||
`);
|
||||
|
||||
console.log("[Migration] Safe migration completed.");
|
||||
} catch (error) {
|
||||
console.error("[Migration] Error during migration:", error);
|
||||
|
||||
Reference in new issue
Block a user