using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FinlyticTrades.Migrations
{
///
public partial class ExpandTradeEntity : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "EntryZoneMax",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn(
name: "EntryZoneMin",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn(
name: "FundamentalRationale",
table: "trades",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "MaxLeverage",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn(
name: "RiskRewardRatio",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn(
name: "RiskWarning",
table: "trades",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "TakeProfitTargets",
table: "trades",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "TechnicalRationale",
table: "trades",
type: "text",
nullable: false,
defaultValue: "");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EntryZoneMax",
table: "trades");
migrationBuilder.DropColumn(
name: "EntryZoneMin",
table: "trades");
migrationBuilder.DropColumn(
name: "FundamentalRationale",
table: "trades");
migrationBuilder.DropColumn(
name: "MaxLeverage",
table: "trades");
migrationBuilder.DropColumn(
name: "RiskRewardRatio",
table: "trades");
migrationBuilder.DropColumn(
name: "RiskWarning",
table: "trades");
migrationBuilder.DropColumn(
name: "TakeProfitTargets",
table: "trades");
migrationBuilder.DropColumn(
name: "TechnicalRationale",
table: "trades");
}
}
}