using Microsoft.EntityFrameworkCore.Migrations; namespace UnivateProperties_API.Migrations { public partial class PropertiesMoved : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "HowMarried", table: "Person"); migrationBuilder.DropColumn( name: "SpouseCellnumber", table: "Person"); migrationBuilder.DropColumn( name: "SpouseEmail", table: "Person"); migrationBuilder.DropColumn( name: "SpouseName", table: "Person"); migrationBuilder.DropColumn( name: "SpouseSurname", table: "Person"); migrationBuilder.DropColumn( name: "SpouseTelephone", table: "Person"); migrationBuilder.DropColumn( name: "MaritalStatus", table: "Individuals"); migrationBuilder.DropColumn( name: "HowMarried", table: "Agents"); migrationBuilder.DropColumn( name: "SpouseCellnumber", table: "Agents"); migrationBuilder.DropColumn( name: "SpouseEmail", table: "Agents"); migrationBuilder.DropColumn( name: "SpouseName", table: "Agents"); migrationBuilder.DropColumn( name: "SpouseSurname", table: "Agents"); migrationBuilder.DropColumn( name: "SpouseTelephone", table: "Agents"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "HowMarried", table: "Person", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "SpouseCellnumber", table: "Person", nullable: true); migrationBuilder.AddColumn( name: "SpouseEmail", table: "Person", nullable: true); migrationBuilder.AddColumn( name: "SpouseName", table: "Person", nullable: true); migrationBuilder.AddColumn( name: "SpouseSurname", table: "Person", nullable: true); migrationBuilder.AddColumn( name: "SpouseTelephone", table: "Person", nullable: true); migrationBuilder.AddColumn( name: "MaritalStatus", table: "Individuals", nullable: true); migrationBuilder.AddColumn( name: "HowMarried", table: "Agents", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "SpouseCellnumber", table: "Agents", nullable: true); migrationBuilder.AddColumn( name: "SpouseEmail", table: "Agents", nullable: true); migrationBuilder.AddColumn( name: "SpouseName", table: "Agents", nullable: true); migrationBuilder.AddColumn( name: "SpouseSurname", table: "Agents", nullable: true); migrationBuilder.AddColumn( name: "SpouseTelephone", table: "Agents", nullable: true); } } }