Skip to content

Commit 6f724af

Browse files
committed
refactor: implement schema changes for HTTP headers, including primary key adjustment and JSONB storage
1 parent 11759d5 commit 6f724af

File tree

7 files changed

+1300
-63
lines changed

7 files changed

+1300
-63
lines changed

drizzle/0009_nosy_micromacro.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
DROP INDEX "i_http_domain";--> statement-breakpoint
2+
DROP INDEX "i_http_name";--> statement-breakpoint
3+
ALTER TABLE "http_headers" ADD PRIMARY KEY ("domain_id");--> statement-breakpoint
4+
ALTER TABLE "http_headers" ADD COLUMN "headers" jsonb DEFAULT '[]'::jsonb NOT NULL;--> statement-breakpoint
5+
ALTER TABLE "http_headers" DROP COLUMN "id";--> statement-breakpoint
6+
ALTER TABLE "http_headers" DROP COLUMN "name";--> statement-breakpoint
7+
ALTER TABLE "http_headers" DROP COLUMN "value";

0 commit comments

Comments
 (0)