mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-17 20:26:24 +02:00
fix: Add missing freesound_config table to safe migration script
This commit is contained in:
1 parent
62562d37f1
commit
2129b3055a
1 file changed
+14
@@ -79,6 +79,20 @@ export async function migrate() {
|
||||
"license" text,
|
||||
"created_at" timestamp DEFAULT now()
|
||||
);
|
||||
);
|
||||
`);
|
||||
|
||||
// freesound_config
|
||||
await client.query(`
|
||||
CREATE TABLE IF NOT EXISTS "freesound_config" (
|
||||
"id" varchar PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
||||
"user_id" varchar NOT NULL REFERENCES "users"("id") ON DELETE cascade,
|
||||
"client_id" text NOT NULL,
|
||||
"client_secret" text NOT NULL,
|
||||
"created_at" timestamp DEFAULT now(),
|
||||
"updated_at" timestamp DEFAULT now(),
|
||||
CONSTRAINT freesound_config_user_id_unique UNIQUE ("user_id")
|
||||
);
|
||||
`);
|
||||
|
||||
console.log("[Migration] Safe migration completed.");
|
||||
|
||||
Reference in new issue
Block a user