|
|
|
@ -5,8 +5,10 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
namespace MyCompanyName.MyProjectName.Mvc.Migrations
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public partial class Initial : Migration
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
@ -138,6 +140,7 @@ namespace MyCompanyName.MyProjectName.Mvc.Migrations
|
|
|
|
|
ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
|
|
|
Code = table.Column<string>(type: "nvarchar(95)", maxLength: 95, nullable: false),
|
|
|
|
|
DisplayName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false),
|
|
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false),
|
|
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
|
|
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
|
|
@ -218,6 +221,7 @@ namespace MyCompanyName.MyProjectName.Mvc.Migrations
|
|
|
|
|
IsDefault = table.Column<bool>(type: "bit", nullable: false),
|
|
|
|
|
IsStatic = table.Column<bool>(type: "bit", nullable: false),
|
|
|
|
|
IsPublic = table.Column<bool>(type: "bit", nullable: false),
|
|
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false),
|
|
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true)
|
|
|
|
|
},
|
|
|
|
@ -272,6 +276,7 @@ namespace MyCompanyName.MyProjectName.Mvc.Migrations
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
|
|
|
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false),
|
|
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false),
|
|
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
|
|
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
|
|
@ -310,6 +315,7 @@ namespace MyCompanyName.MyProjectName.Mvc.Migrations
|
|
|
|
|
LockoutEnd = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true),
|
|
|
|
|
LockoutEnabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
|
|
|
|
|
AccessFailedCount = table.Column<int>(type: "int", nullable: false, defaultValue: 0),
|
|
|
|
|
EntityVersion = table.Column<int>(type: "int", nullable: false),
|
|
|
|
|
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
|
|
|
|
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
|
|
|
@ -931,6 +937,7 @@ namespace MyCompanyName.MyProjectName.Mvc.Migrations
|
|
|
|
|
column: "ReferenceId");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropTable(
|