ALTER TABLE "vendor_pq_review_logs" RENAME COLUMN "vendor_id" TO "vendor_pq_criteria_answer_id";--> statement-breakpoint
ALTER TABLE "vendor_pq_review_logs" DROP CONSTRAINT "vendor_pq_review_logs_vendor_id_vendors_id_fk";
--> statement-breakpoint
ALTER TABLE "vendor_pq_review_logs" ADD CONSTRAINT "vendor_pq_review_logs_vendor_pq_criteria_answer_id_vendor_pq_criteria_answers_id_fk" FOREIGN KEY ("vendor_pq_criteria_answer_id") REFERENCES "public"."vendor_pq_criteria_answers"("id") ON DELETE cascade ON UPDATE no action;