Torma Kristóf
634488c2d8
All checks were successful
continuous-integration/drone/push Build is passing
86 lines
2.8 KiB
C#
86 lines
2.8 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace HanyadikHetVan.Data.Migrations
|
|
{
|
|
public partial class AddRoles : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "AspNetUserTokens",
|
|
type: "nvarchar(450)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(128)",
|
|
oldMaxLength: 128);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LoginProvider",
|
|
table: "AspNetUserTokens",
|
|
type: "nvarchar(450)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(128)",
|
|
oldMaxLength: 128);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProviderKey",
|
|
table: "AspNetUserLogins",
|
|
type: "nvarchar(450)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(128)",
|
|
oldMaxLength: 128);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LoginProvider",
|
|
table: "AspNetUserLogins",
|
|
type: "nvarchar(450)",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(128)",
|
|
oldMaxLength: 128);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "AspNetUserTokens",
|
|
type: "nvarchar(128)",
|
|
maxLength: 128,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(450)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LoginProvider",
|
|
table: "AspNetUserTokens",
|
|
type: "nvarchar(128)",
|
|
maxLength: 128,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(450)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ProviderKey",
|
|
table: "AspNetUserLogins",
|
|
type: "nvarchar(128)",
|
|
maxLength: 128,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(450)");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LoginProvider",
|
|
table: "AspNetUserLogins",
|
|
type: "nvarchar(128)",
|
|
maxLength: 128,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(450)");
|
|
}
|
|
}
|
|
}
|