123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- 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<int>(
- name: "HowMarried",
- table: "Person",
- nullable: false,
- defaultValue: 0);
-
- migrationBuilder.AddColumn<string>(
- name: "SpouseCellnumber",
- table: "Person",
- nullable: true);
-
- migrationBuilder.AddColumn<string>(
- name: "SpouseEmail",
- table: "Person",
- nullable: true);
-
- migrationBuilder.AddColumn<string>(
- name: "SpouseName",
- table: "Person",
- nullable: true);
-
- migrationBuilder.AddColumn<string>(
- name: "SpouseSurname",
- table: "Person",
- nullable: true);
-
- migrationBuilder.AddColumn<string>(
- name: "SpouseTelephone",
- table: "Person",
- nullable: true);
-
- migrationBuilder.AddColumn<string>(
- name: "MaritalStatus",
- table: "Individuals",
- nullable: true);
-
- migrationBuilder.AddColumn<int>(
- name: "HowMarried",
- table: "Agents",
- nullable: false,
- defaultValue: 0);
-
- migrationBuilder.AddColumn<string>(
- name: "SpouseCellnumber",
- table: "Agents",
- nullable: true);
-
- migrationBuilder.AddColumn<string>(
- name: "SpouseEmail",
- table: "Agents",
- nullable: true);
-
- migrationBuilder.AddColumn<string>(
- name: "SpouseName",
- table: "Agents",
- nullable: true);
-
- migrationBuilder.AddColumn<string>(
- name: "SpouseSurname",
- table: "Agents",
- nullable: true);
-
- migrationBuilder.AddColumn<string>(
- name: "SpouseTelephone",
- table: "Agents",
- nullable: true);
- }
- }
- }
|