mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
fix réél publication
This commit is contained in:
1 parent
dc60a12cd3
commit
8434e7a5a4
1 file changed
+4
-1
+4
-1
@@ -5,7 +5,7 @@ export async function migrate() {
|
||||
try {
|
||||
console.log("[Migration] Starting safe migration Check...");
|
||||
|
||||
// 1. Create Enums if not exist
|
||||
// 1. Create Enums if not exist and Update Enums
|
||||
await client.query(`
|
||||
DO $$ BEGIN
|
||||
CREATE TYPE "token_status" AS ENUM('valid', 'expiring', 'expired', 'error');
|
||||
@@ -14,6 +14,9 @@ export async function migrate() {
|
||||
END $$;
|
||||
`);
|
||||
|
||||
// Add 'reel' to post_type enum if not exists
|
||||
await client.query(`ALTER TYPE "post_type" ADD VALUE IF NOT EXISTS 'reel';`);
|
||||
|
||||
// 2. Create Tables if not exist
|
||||
|
||||
// post_analytics
|
||||
|
||||
Reference in new issue
Block a user