Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/controller-deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: "Load PNPM"
uses: pnpm/action-setup@v4
with:
version: 8
version: 10.12.1
- name: "Build and Test Controller"
shell: bash
run: |
Expand Down
16 changes: 16 additions & 0 deletions controller/drizzle/0033_loving_red_skull.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CREATE TABLE "git_topic" (
"id" serial PRIMARY KEY NOT NULL,
"name" varchar(128) NOT NULL,
CONSTRAINT "git_topic_name_unique" UNIQUE("name")
);
--> statement-breakpoint
CREATE TABLE "repo_topic" (
"repo_id" integer NOT NULL,
"topic_id" integer NOT NULL,
CONSTRAINT "repo_topic_repo_id_topic_id_pk" PRIMARY KEY("repo_id","topic_id")
);
--> statement-breakpoint
ALTER TABLE "repo_topic" ADD CONSTRAINT "repo_topic_repo_id_git_repo_id_fk" FOREIGN KEY ("repo_id") REFERENCES "public"."git_repo"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "repo_topic" ADD CONSTRAINT "repo_topic_topic_id_git_topic_id_fk" FOREIGN KEY ("topic_id") REFERENCES "public"."git_topic"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE UNIQUE INDEX "topic_name_idx" ON "git_topic" USING btree ("name");--> statement-breakpoint
CREATE INDEX "topic_idx" ON "repo_topic" USING btree ("topic_id");
Loading