92 lines
2.6 KiB
C#
92 lines
2.6 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace JobTrackerApi.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddJobFieldsAndSoftDelete : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Source",
|
|
table: "Companies",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsDeleted",
|
|
table: "JobApplications",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "DeletedAt",
|
|
table: "JobApplications",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Location",
|
|
table: "JobApplications",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Salary",
|
|
table: "JobApplications",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "NextAction",
|
|
table: "JobApplications",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "FollowUpAt",
|
|
table: "JobApplications",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Source",
|
|
table: "Companies");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "IsDeleted",
|
|
table: "JobApplications");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "DeletedAt",
|
|
table: "JobApplications");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Location",
|
|
table: "JobApplications");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Salary",
|
|
table: "JobApplications");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "NextAction",
|
|
table: "JobApplications");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FollowUpAt",
|
|
table: "JobApplications");
|
|
}
|
|
}
|
|
}
|
|
|