diff options
Diffstat (limited to 'db/migrations/0366_light_hedge_knight.sql')
| -rw-r--r-- | db/migrations/0366_light_hedge_knight.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrations/0366_light_hedge_knight.sql b/db/migrations/0366_light_hedge_knight.sql new file mode 100644 index 00000000..857e97a3 --- /dev/null +++ b/db/migrations/0366_light_hedge_knight.sql @@ -0,0 +1,7 @@ +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";
\ No newline at end of file |
