Files
advent-of-code/old/2021/06/Migrations/20211206123902_InitialCreate.cs
T
2023-11-30 12:51:45 +00:00

32 lines
946 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace _06.Migrations
{
public partial class InitialCreate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Fishes",
columns: table => new
{
FishId = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
InternalTimer = table.Column<int>(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Fishes", x => x.FishId);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Fishes");
}
}
}