diff --git a/src/app/db/migrations/0178_parched_midnight.sql b/src/app/db/migrations/0178_parched_midnight.sql index 026250e..c5497f9 100644 --- a/src/app/db/migrations/0178_parched_midnight.sql +++ b/src/app/db/migrations/0178_parched_midnight.sql @@ -22,6 +22,4 @@ ALTER TABLE "property_removal_requests" ADD CONSTRAINT "property_removal_request ALTER TABLE "property_removal_requests" ADD CONSTRAINT "property_removal_requests_requested_by_user_id_fk" FOREIGN KEY ("requested_by") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint ALTER TABLE "property_removal_requests" ADD CONSTRAINT "property_removal_requests_reviewed_by_user_id_fk" FOREIGN KEY ("reviewed_by") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint CREATE INDEX "idx_removal_requests_deal_id" ON "property_removal_requests" USING btree ("hubspot_deal_id");--> statement-breakpoint -CREATE INDEX "idx_removal_requests_portfolio_id" ON "property_removal_requests" USING btree ("portfolio_id");--> statement-breakpoint -ALTER TABLE "bulk_address_uploads" DROP COLUMN "task_id";--> statement-breakpoint -ALTER TABLE "bulk_address_uploads" DROP COLUMN "combined_output_s3_uri"; \ No newline at end of file +CREATE INDEX "idx_removal_requests_portfolio_id" ON "property_removal_requests" USING btree ("portfolio_id"); \ No newline at end of file diff --git a/src/app/db/migrations/0179_restore_bulk_upload_columns.sql b/src/app/db/migrations/0179_restore_bulk_upload_columns.sql new file mode 100644 index 0000000..6ed8efd --- /dev/null +++ b/src/app/db/migrations/0179_restore_bulk_upload_columns.sql @@ -0,0 +1,2 @@ +ALTER TABLE "bulk_address_uploads" ADD COLUMN "task_id" uuid;--> statement-breakpoint +ALTER TABLE "bulk_address_uploads" ADD COLUMN "combined_output_s3_uri" text; diff --git a/src/app/db/migrations/meta/_journal.json b/src/app/db/migrations/meta/_journal.json index ef1efd0..954728e 100644 --- a/src/app/db/migrations/meta/_journal.json +++ b/src/app/db/migrations/meta/_journal.json @@ -1254,6 +1254,13 @@ "when": 1776458454019, "tag": "0178_parched_midnight", "breakpoints": true + }, + { + "idx": 179, + "version": "7", + "when": 1776500000000, + "tag": "0179_restore_bulk_upload_columns", + "breakpoints": true } ] } \ No newline at end of file