using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RecordMyRuck.Migrations
{
///
public partial class CreateRuck : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Rucks",
columns: table => new
{
DateTime = table.Column(type: "TEXT", nullable: false),
Route = table.Column(type: "TEXT", nullable: false),
WeightPounds = table.Column(type: "REAL", nullable: false),
Notes = table.Column(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Rucks", x => x.DateTime);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Rucks");
}
}
}