Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix migration

Amruth Pillai1d59ea3bd0a1
diff --git a/migrations/20260305091016_closed_pixie/migration.sql b/migrations/20260305091016_closed_pixie/migration.sql
index 2bb485b32..dbd825322 100644
--- a/migrations/20260305091016_closed_pixie/migration.sql
+++ b/migrations/20260305091016_closed_pixie/migration.sql
@@ -1,2 +1,2 @@
ALTER TABLE "apikey" RENAME COLUMN "user_id" TO "reference_id";--> statement-breakpoint
-ALTER TABLE "apikey" ADD COLUMN "config_id" text NOT NULL;
\ No newline at end of file
+ALTER TABLE "apikey" ADD COLUMN "config_id" text NOT NULL DEFAULT 'default';
\ No newline at end of file
diff --git a/src/integrations/drizzle/schema.ts b/src/integrations/drizzle/schema.ts
index e76bb85df..79e0d6ec5 100644
--- a/src/integrations/drizzle/schema.ts
+++ b/src/integrations/drizzle/schema.ts
@@ -229,7 +229,7 @@ export const apikey = pg.pgTable(
start: pg.text("start"),
prefix: pg.text("prefix"),
key: pg.text("key").notNull(),
- configId: pg.text("config_id").notNull(),
+ configId: pg.text("config_id").notNull().default("default"),
referenceId: pg
.uuid("reference_id")
.notNull()