diff options
Diffstat (limited to 'db/migrations/0352_aspiring_santa_claus.sql')
| -rw-r--r-- | db/migrations/0352_aspiring_santa_claus.sql | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/db/migrations/0352_aspiring_santa_claus.sql b/db/migrations/0352_aspiring_santa_claus.sql new file mode 100644 index 00000000..3a30441e --- /dev/null +++ b/db/migrations/0352_aspiring_santa_claus.sql @@ -0,0 +1,4 @@ +CREATE UNIQUE INDEX "unique_latest_vendor" ON "rfq_last_details" USING btree ("rfqs_last_id","vendors_id") WHERE "rfq_last_details"."is_latest" = true;--> statement-breakpoint +CREATE INDEX "idx_rfqs_last_id" ON "rfq_last_details" USING btree ("rfqs_last_id");--> statement-breakpoint +CREATE INDEX "idx_vendors_id" ON "rfq_last_details" USING btree ("vendors_id");--> statement-breakpoint +CREATE INDEX "idx_is_latest" ON "rfq_last_details" USING btree ("is_latest");
\ No newline at end of file |
