mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
modified cascade from planrecommendations
This commit is contained in:
parent
cb0475db58
commit
0277c98632
4 changed files with 5668 additions and 1 deletions
3
src/app/db/migrations/0153_large_machine_man.sql
Normal file
3
src/app/db/migrations/0153_large_machine_man.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE "plan_recommendations" DROP CONSTRAINT "plan_recommendations_recommendation_id_recommendation_id_fk";
|
||||
--> statement-breakpoint
|
||||
ALTER TABLE "plan_recommendations" ADD CONSTRAINT "plan_recommendations_recommendation_id_recommendation_id_fk" FOREIGN KEY ("recommendation_id") REFERENCES "public"."recommendation"("id") ON DELETE no action ON UPDATE no action;
|
||||
5657
src/app/db/migrations/meta/0153_snapshot.json
Normal file
5657
src/app/db/migrations/meta/0153_snapshot.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1072,6 +1072,13 @@
|
|||
"when": 1771754572720,
|
||||
"tag": "0152_sparkling_kat_farrell",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 153,
|
||||
"version": "7",
|
||||
"when": 1771757665072,
|
||||
"tag": "0153_large_machine_man",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -242,7 +242,7 @@ export const planRecommendations = pgTable(
|
|||
mode: "bigint",
|
||||
})
|
||||
.notNull()
|
||||
.references(() => recommendation.id, { onDelete: "cascade" }),
|
||||
.references(() => recommendation.id),
|
||||
},
|
||||
(table) => [
|
||||
index("idx_plan_recommendations_plan_id").on(table.planId),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue