fix(migration): Phase4d таблица называется units_of_measure, не units
Some checks are pending
CI / POS (WPF, Windows) (push) Waiting to run
CI / Backend (.NET 8) (push) Successful in 1m1s
CI / Web (React + Vite) (push) Successful in 39s
Docker API / Build + push API (push) Successful in 45s
Docker API / Deploy API on stage (push) Successful in 17s

Опечатка: в 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) <noreply@anthropic.com>
This commit is contained in:
nns 2026-04-26 16:32:52 +05:00
parent 58038c9cf7
commit 18a0370d96

View file

@ -19,7 +19,7 @@ protected override void Up(MigrationBuilder b)
type: "uuid", nullable: true,
oldClrType: typeof(System.Guid), oldType: "uuid");
b.AlterColumn<System.Guid>(
name: "OrganizationId", schema: "public", table: "units",
name: "OrganizationId", schema: "public", table: "units_of_measure",
type: "uuid", nullable: true,
oldClrType: typeof(System.Guid), oldType: "uuid");
}