ALTER TABLE "rfq_last_tbe_pdftron_comments" DROP CONSTRAINT "rfq_last_tbe_pdftron_comments_previous_version_rfq_last_tbe_pdftron_comments_id_fk";
--> statement-breakpoint
DROP INDEX "idx_pdftron_version";--> statement-breakpoint
DROP INDEX "unique_latest_version";--> statement-breakpoint
CREATE UNIQUE INDEX "unique_document" ON "rfq_last_tbe_pdftron_comments" USING btree ("document_review_id","pdftron_document_id");--> statement-breakpoint
ALTER TABLE "rfq_last_tbe_pdftron_comments" DROP COLUMN "version";--> statement-breakpoint
ALTER TABLE "rfq_last_tbe_pdftron_comments" DROP COLUMN "previous_version";