From 79016579c29607320507a1e29ec2fc081c13c5cb Mon Sep 17 00:00:00 2001 From: nns <278048682+nurdotnet@users.noreply.github.com> Date: Sun, 26 Apr 2026 16:32:52 +0500 Subject: [PATCH] =?UTF-8?q?fix(migration):=20Phase4d=20=D1=82=D0=B0=D0=B1?= =?UTF-8?q?=D0=BB=D0=B8=D1=86=D0=B0=20=D0=BD=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0?= =?UTF-8?q?=D0=B5=D1=82=D1=81=D1=8F=20units=5Fof=5Fmeasure,=20=D0=BD=D0=B5?= =?UTF-8?q?=20units?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Опечатка: в Up() миграции стояло table:\"units\" — реальное имя в БД units_of_measure (по EF snapshot). API падал при старте на стенде: «relation public.units does not exist», 502 на login. На стенде SQL ALTER COLUMN накачен вручную + запись в __EFMigrationsHistory; миграция fix только для будущих чистых баз. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../20260427050000_Phase4d_OptionalTenantOnDirectories.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/food-market.infrastructure/Persistence/Migrations/20260427050000_Phase4d_OptionalTenantOnDirectories.cs b/src/food-market.infrastructure/Persistence/Migrations/20260427050000_Phase4d_OptionalTenantOnDirectories.cs index d700954..194262c 100644 --- a/src/food-market.infrastructure/Persistence/Migrations/20260427050000_Phase4d_OptionalTenantOnDirectories.cs +++ b/src/food-market.infrastructure/Persistence/Migrations/20260427050000_Phase4d_OptionalTenantOnDirectories.cs @@ -19,7 +19,7 @@ protected override void Up(MigrationBuilder b) type: "uuid", nullable: true, oldClrType: typeof(System.Guid), oldType: "uuid"); b.AlterColumn( - name: "OrganizationId", schema: "public", table: "units", + name: "OrganizationId", schema: "public", table: "units_of_measure", type: "uuid", nullable: true, oldClrType: typeof(System.Guid), oldType: "uuid"); }