mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-19 13:08:12 +02:00
Add gemini_api_key column migration to migrate.ts
This commit is contained in:
1 parent
72b13b3e42
commit
a2c2753b0b
1 file changed
+6
@@ -152,6 +152,12 @@ export async function migrate() {
|
|||||||
);
|
);
|
||||||
`);
|
`);
|
||||||
|
|
||||||
|
// app_config.gemini_api_key
|
||||||
|
await client.query(`
|
||||||
|
ALTER TABLE "app_config"
|
||||||
|
ADD COLUMN IF NOT EXISTS "gemini_api_key" text;
|
||||||
|
`);
|
||||||
|
|
||||||
console.log("[Migration] Safe migration completed.");
|
console.log("[Migration] Safe migration completed.");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("[Migration] Error during migration:", error);
|
console.error("[Migration] Error during migration:", error);
|
||||||
|
|||||||
Reference in new issue
Block a user