using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace StubbedContextLib.Migrations { /// public partial class suprDailyQuote : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "dailyquotes"); migrationBuilder.UpdateData( table: "quotes", keyColumn: "Id", keyValue: 10, column: "IsValid", value: false); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "dailyquotes", columns: table => new { IdQuote = table.Column(type: "int", nullable: false) }, constraints: table => { table.PrimaryKey("PK_dailyquotes", x => x.IdQuote); table.ForeignKey( name: "FK_dailyquotes_quotes_IdQuote", column: x => x.IdQuote, principalTable: "quotes", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.InsertData( table: "dailyquotes", column: "IdQuote", values: new object[] { 1, 5 }); migrationBuilder.UpdateData( table: "quotes", keyColumn: "Id", keyValue: 10, column: "IsValid", value: true); } } }