using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace FinlyticFundamentals.Migrations { /// public partial class AddMoreFundamentalMetrics : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ConsensusRating", table: "FundamentalData", type: "text", nullable: true); migrationBuilder.AddColumn( name: "FiftyTwoWeekHigh", table: "FundamentalData", type: "numeric", nullable: true); migrationBuilder.AddColumn( name: "FiftyTwoWeekLow", table: "FundamentalData", type: "numeric", nullable: true); migrationBuilder.AddColumn( name: "PercentHeldByInsiders", table: "FundamentalData", type: "numeric", nullable: true); migrationBuilder.AddColumn( name: "PercentHeldByInstitutions", table: "FundamentalData", type: "numeric", nullable: true); migrationBuilder.AddColumn( name: "PriceTargetHigh", table: "FundamentalData", type: "numeric", nullable: true); migrationBuilder.AddColumn( name: "PriceTargetLow", table: "FundamentalData", type: "numeric", nullable: true); migrationBuilder.AddColumn( name: "PriceTargetMean", table: "FundamentalData", type: "numeric", nullable: true); migrationBuilder.AddColumn( name: "ShortPercentOfFloat", table: "FundamentalData", type: "numeric", nullable: true); migrationBuilder.AddColumn( name: "ShortRatio", table: "FundamentalData", type: "numeric", nullable: true); } /// 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"); } } }