fix(migration): Phase4d таблица называется units_of_measure, не units
Опечатка: в 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:
parent
5c5b231157
commit
79016579c2
|
|
@ -19,7 +19,7 @@ protected override void Up(MigrationBuilder b)
|
||||||
type: "uuid", nullable: true,
|
type: "uuid", nullable: true,
|
||||||
oldClrType: typeof(System.Guid), oldType: "uuid");
|
oldClrType: typeof(System.Guid), oldType: "uuid");
|
||||||
b.AlterColumn<System.Guid>(
|
b.AlterColumn<System.Guid>(
|
||||||
name: "OrganizationId", schema: "public", table: "units",
|
name: "OrganizationId", schema: "public", table: "units_of_measure",
|
||||||
type: "uuid", nullable: true,
|
type: "uuid", nullable: true,
|
||||||
oldClrType: typeof(System.Guid), oldType: "uuid");
|
oldClrType: typeof(System.Guid), oldType: "uuid");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue