dotbot/Migrations/20171205032404_Init.cs

31 lines
850 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace dotbot.Migrations
{
public partial class Init : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Defs",
columns: table => new
{
Id = table.Column<string>(nullable: false),
Def = table.Column<string>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Defs", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Defs");
}
}
}