usaquote-api/Migrations/20200920084041_InitialCreate.cs
2020-09-21 20:07:48 +10:00

30 lines
958 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
namespace usaquote_api.Migrations
{
public partial class InitialCreate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Quotes",
columns: table => new
{
ID = table.Column<int>(nullable: false)
.Annotation("Sqlite:Autoincrement", true),
speaker = table.Column<string>(nullable: true),
content = table.Column<string>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Quotes", x => x.ID);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Quotes");
}
}
}