Files
Finlytic/FinlyticTrades/Migrations/20260802205654_ExpandTradeEntity.cs
T

102 lines
2.9 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FinlyticTrades.Migrations
{
/// <inheritdoc />
public partial class ExpandTradeEntity : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<decimal>(
name: "EntryZoneMax",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "EntryZoneMin",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "FundamentalRationale",
table: "trades",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<decimal>(
name: "MaxLeverage",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn<decimal>(
name: "RiskRewardRatio",
table: "trades",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "RiskWarning",
table: "trades",
type: "text",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "TakeProfitTargets",
table: "trades",
type: "text",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "TechnicalRationale",
table: "trades",
type: "text",
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
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");
}
}
}