using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace CompanyManagment.EFCore.Migrations { /// public partial class addNewPropToContractingParty : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DateOfBirth", table: "PersonalContractingParties", type: "datetime2", nullable: true); migrationBuilder.AddColumn( name: "FatherName", table: "PersonalContractingParties", type: "nvarchar(20)", maxLength: 20, nullable: true); migrationBuilder.AddColumn( name: "IdNumberSeri", table: "PersonalContractingParties", type: "nvarchar(5)", maxLength: 5, nullable: true); migrationBuilder.AddColumn( name: "IdNumberSerial", table: "PersonalContractingParties", type: "nvarchar(15)", maxLength: 15, nullable: true); migrationBuilder.AddColumn( name: "IsAuthenticated", table: "PersonalContractingParties", type: "bit", nullable: false, defaultValue: false); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "DateOfBirth", table: "PersonalContractingParties"); migrationBuilder.DropColumn( name: "FatherName", table: "PersonalContractingParties"); migrationBuilder.DropColumn( name: "IdNumberSeri", table: "PersonalContractingParties"); migrationBuilder.DropColumn( name: "IdNumberSerial", table: "PersonalContractingParties"); migrationBuilder.DropColumn( name: "IsAuthenticated", table: "PersonalContractingParties"); } } }