using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FinlyticTrades.Migrations
{
///
public partial class AddIndexToTradeHourlyUpdate : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "FloatingPnlPercent",
table: "trade_hourly_updates",
type: "numeric(18,4)",
nullable: true);
migrationBuilder.CreateIndex(
name: "IX_trade_hourly_updates_TradeId_Timestamp",
table: "trade_hourly_updates",
columns: new[] { "TradeId", "Timestamp" });
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_trade_hourly_updates_TradeId_Timestamp",
table: "trade_hourly_updates");
migrationBuilder.DropColumn(
name: "FloatingPnlPercent",
table: "trade_hourly_updates");
}
}
}