Skip to content

Commit

Permalink
Merge branch 'main' into david/eng-5667-implement-include-for-contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisnithin committed Oct 24, 2024
2 parents 1896d33 + b16c2d0 commit fc38f26
Show file tree
Hide file tree
Showing 12 changed files with 5,164 additions and 15 deletions.
7 changes: 7 additions & 0 deletions controlplane/migrations/0102_common_tiger_shark.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ALTER TABLE "subgraphs" DROP CONSTRAINT "subgraphs_schema_version_id_schema_versions_id_fk";
--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "subgraphs" ADD CONSTRAINT "subgraphs_schema_version_id_schema_versions_id_fk" FOREIGN KEY ("schema_version_id") REFERENCES "public"."schema_versions"("id") ON DELETE set null ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
10 changes: 2 additions & 8 deletions controlplane/migrations/meta/0102_snapshot.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "11b55fcf-4675-47e8-a49c-77e6f5062111",
"id": "135533f6-d4ab-493b-a404-8d066c0bb5b0",
"prevId": "84b2107a-6c0e-4026-ad17-6a65946364d6",
"version": "7",
"dialect": "postgresql",
Expand Down Expand Up @@ -535,12 +535,6 @@
"primaryKey": false,
"notNull": true
},
"include_tags": {
"name": "include_tags",
"type": "text[]",
"primaryKey": false,
"notNull": true
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
Expand Down Expand Up @@ -4380,7 +4374,7 @@
"columnsTo": [
"id"
],
"onDelete": "no action",
"onDelete": "set null",
"onUpdate": "no action"
},
"subgraphs_target_id_targets_id_fk": {
Expand Down
Loading

0 comments on commit fc38f26

Please sign in to comment.