Merge pull request #230 from Hestia-Homes/feature/just_migration_things

Feature/just migration things
This commit is contained in:
Jun-te Kim 2026-04-17 22:08:13 +01:00 committed by GitHub
commit 9a13e0bf3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6922 additions and 3 deletions

View file

@ -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";
CREATE INDEX "idx_removal_requests_portfolio_id" ON "property_removal_requests" USING btree ("portfolio_id");

View file

@ -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;

File diff suppressed because it is too large Load diff

View file

@ -1254,6 +1254,13 @@
"when": 1776458454019,
"tag": "0178_parched_midnight",
"breakpoints": true
},
{
"idx": 179,
"version": "7",
"when": 1776459924335,
"tag": "0179_mighty_cardiac",
"breakpoints": true
}
]
}

View file

@ -11,6 +11,8 @@ export const bulkAddressUploads = pgTable("bulk_address_uploads", {
status: text("status").notNull().default("ready_for_processing"),
sourceHeaders: text("source_headers").array().notNull().default(sql`'{}'`),
columnMapping: jsonb("column_mapping").$type<Record<string, string>>(),
taskId: uuid("task_id"),
combinedOutputS3Uri: text("combined_output_s3_uri"),
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
updatedAt: timestamp("updated_at", { withTimezone: true })
.notNull()