using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MagicCarpetDatabase.Migrations
{
///
public partial class ChangeEmployeeAndPost : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Salary",
table: "Posts");
migrationBuilder.AddColumn(
name: "Configuration",
table: "Posts",
type: "jsonb",
nullable: false,
defaultValue: "{\"Rate\": 0, \"Type\": \"PostConfiguration\"}");
migrationBuilder.AddColumn(
name: "DateOfDelete",
table: "Employees",
type: "timestamp with time zone",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Configuration",
table: "Posts");
migrationBuilder.DropColumn(
name: "DateOfDelete",
table: "Employees");
migrationBuilder.AddColumn(
name: "Salary",
table: "Posts",
type: "double precision",
nullable: false,
defaultValue: 0.0);
}
}
}