59 lines
1.9 KiB
C#
59 lines
1.9 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class changemaxlengthofcontractingparty : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LName",
|
|
table: "PersonalContractingParties",
|
|
type: "nvarchar(150)",
|
|
maxLength: 150,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FName",
|
|
table: "PersonalContractingParties",
|
|
type: "nvarchar(150)",
|
|
maxLength: 150,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LName",
|
|
table: "PersonalContractingParties",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(150)",
|
|
oldMaxLength: 150);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FName",
|
|
table: "PersonalContractingParties",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(150)",
|
|
oldMaxLength: 150);
|
|
}
|
|
}
|
|
}
|