using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace CompanyManagment.EFCore.Migrations { /// public partial class AddPublicIdtoinstitutioncontractandcontractingparty : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "PublicId", table: "InstitutionContractTemps", type: "uniqueidentifier", nullable: false, defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); migrationBuilder.AddColumn( name: "PublicId", table: "ContractingPartyTemp", type: "uniqueidentifier", nullable: false, defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "PublicId", table: "InstitutionContractTemps"); migrationBuilder.DropColumn( name: "PublicId", table: "ContractingPartyTemp"); migrationBuilder.AlterColumn( name: "RegistrationStatus", table: "InstitutionContractTemps", type: "nvarchar(30)", maxLength: 30, nullable: true, oldClrType: typeof(int), oldType: "int", oldMaxLength: 30); } } }