20260329141138_CurrencyNameToLangStr.cs
1,164 bytes
| 1 | using Microsoft.EntityFrameworkCore.Migrations; |
|---|---|
| 2 | |
| 3 | #nullable disable |
| 4 | |
| 5 | namespace App.DAL.EF.Migrations |
| 6 | { |
| 7 | /// <inheritdoc /> |
| 8 | public partial class CurrencyNameToLangStr : Migration |
| 9 | { |
| 10 | /// <inheritdoc /> |
| 11 | protected override void Up(MigrationBuilder migrationBuilder) |
| 12 | { |
| 13 | migrationBuilder.AlterColumn<string>( |
| 14 | name: "Name", |
| 15 | table: "Currencies", |
| 16 | type: "character varying(1024)", |
| 17 | maxLength: 1024, |
| 18 | nullable: false, |
| 19 | oldClrType: typeof(string), |
| 20 | oldType: "character varying(100)", |
| 21 | oldMaxLength: 100); |
| 22 | } |
| 23 | |
| 24 | /// <inheritdoc /> |
| 25 | protected override void Down(MigrationBuilder migrationBuilder) |
| 26 | { |
| 27 | migrationBuilder.AlterColumn<string>( |
| 28 | name: "Name", |
| 29 | table: "Currencies", |
| 30 | type: "character varying(100)", |
| 31 | maxLength: 100, |
| 32 | nullable: false, |
| 33 | oldClrType: typeof(string), |
| 34 | oldType: "character varying(1024)", |
| 35 | oldMaxLength: 1024); |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 | |