mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-06-22 04:11:55 +10:00
fix migration
This commit is contained in:
@@ -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';
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user