Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created November 5, 2019 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/3b3500022f8cb45ff9567538d2af208d to your computer and use it in GitHub Desktop.
Save IntegerMan/3b3500022f8cb45ff9567538d2af208d to your computer and use it in GitHub Desktop.
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace MattEland.TestManager.Data.Migrations
{
public partial class AddedTestSuite : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "TestSuite",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name = table.Column<string>(nullable: false),
Description = table.Column<string>(nullable: true),
DateCreatedUtc = table.Column<DateTime>(nullable: false),
DateModifiedUtc = table.Column<DateTime>(nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_TestSuite", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "TestSuite");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment