using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace CompanyManagment.EFCore.Migrations { /// public partial class changemaxlengthforfinancialinvoicenumber : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "InvoiceNumber", table: "FinancialInvoices", type: "nvarchar(22)", maxLength: 22, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(18)", oldMaxLength: 18, oldNullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "InvoiceNumber", table: "FinancialInvoices", type: "nvarchar(18)", maxLength: 18, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(22)", oldMaxLength: 22, oldNullable: true); } } }