fix migration

This commit is contained in:
Amruth Pillai
2026-03-05 11:59:14 +01:00
parent 5e9ae64b2b
commit 1d59ea3bd0
2 changed files with 2 additions and 2 deletions
@@ -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;
ALTER TABLE "apikey" ADD COLUMN "config_id" text NOT NULL DEFAULT 'default';
+1 -1
View File
@@ -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()