119 lines
3.6 KiB
C#
119 lines
3.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace FinlyticFundamentals.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddMoreFundamentalMetrics : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ConsensusRating",
|
|
table: "FundamentalData",
|
|
type: "text",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "FiftyTwoWeekHigh",
|
|
table: "FundamentalData",
|
|
type: "numeric",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "FiftyTwoWeekLow",
|
|
table: "FundamentalData",
|
|
type: "numeric",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "PercentHeldByInsiders",
|
|
table: "FundamentalData",
|
|
type: "numeric",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "PercentHeldByInstitutions",
|
|
table: "FundamentalData",
|
|
type: "numeric",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "PriceTargetHigh",
|
|
table: "FundamentalData",
|
|
type: "numeric",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "PriceTargetLow",
|
|
table: "FundamentalData",
|
|
type: "numeric",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "PriceTargetMean",
|
|
table: "FundamentalData",
|
|
type: "numeric",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "ShortPercentOfFloat",
|
|
table: "FundamentalData",
|
|
type: "numeric",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<decimal>(
|
|
name: "ShortRatio",
|
|
table: "FundamentalData",
|
|
type: "numeric",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ConsensusRating",
|
|
table: "FundamentalData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FiftyTwoWeekHigh",
|
|
table: "FundamentalData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "FiftyTwoWeekLow",
|
|
table: "FundamentalData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PercentHeldByInsiders",
|
|
table: "FundamentalData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PercentHeldByInstitutions",
|
|
table: "FundamentalData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PriceTargetHigh",
|
|
table: "FundamentalData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PriceTargetLow",
|
|
table: "FundamentalData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PriceTargetMean",
|
|
table: "FundamentalData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ShortPercentOfFloat",
|
|
table: "FundamentalData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ShortRatio",
|
|
table: "FundamentalData");
|
|
}
|
|
}
|
|
}
|