| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using Microsoft.EntityFrameworkCore.Migrations;
-
- #nullable disable
-
- namespace Diligent.WebAPI.Data.Migrations
- {
- public partial class AddedEnumsForAdAndTechnologies : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AddColumn<string>(
- name: "TechnologyType",
- table: "Technologies",
- type: "nvarchar(max)",
- nullable: false,
- defaultValue: "");
-
- migrationBuilder.AddColumn<string>(
- name: "EmploymentType",
- table: "Ads",
- type: "nvarchar(max)",
- nullable: false,
- defaultValue: "");
-
- migrationBuilder.AddColumn<string>(
- name: "WorkHour",
- table: "Ads",
- type: "nvarchar(max)",
- nullable: false,
- defaultValue: "");
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "TechnologyType",
- table: "Technologies");
-
- migrationBuilder.DropColumn(
- name: "EmploymentType",
- table: "Ads");
-
- migrationBuilder.DropColumn(
- name: "WorkHour",
- table: "Ads");
- }
- }
- }
|