29 lines
817 B
C#
29 lines
817 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace PokemonSleepAPI.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddBulbasaurBackOoops : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.InsertData(
|
|
table: "Pokemons",
|
|
columns: new[] { "Id", "Name", "SleepType", "Speciality" },
|
|
values: new object[] { 1, "Bulbasaur", "Dozing", "Ingredients" });
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DeleteData(
|
|
table: "Pokemons",
|
|
keyColumn: "Id",
|
|
keyValue: 1);
|
|
}
|
|
}
|
|
}
|