Created
November 5, 2019 04:18
-
-
Save IntegerMan/3b3500022f8cb45ff9567538d2af208d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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