|
|
|
|
@ -1,738 +0,0 @@
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace GremlinBlazorServer.Migrations
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public partial class InitialCreate : Migration
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
_ = migrationBuilder.DropIndex(
|
|
|
|
|
name: "UserNameIndex",
|
|
|
|
|
table: "AspNetUsers");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.DropIndex(
|
|
|
|
|
name: "RoleNameIndex",
|
|
|
|
|
table: "AspNetRoles");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Value",
|
|
|
|
|
table: "AspNetUserTokens",
|
|
|
|
|
type: "longtext",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(max)",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Name",
|
|
|
|
|
table: "AspNetUserTokens",
|
|
|
|
|
type: "varchar(128)",
|
|
|
|
|
maxLength: 128,
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(128)",
|
|
|
|
|
oldMaxLength: 128)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "LoginProvider",
|
|
|
|
|
table: "AspNetUserTokens",
|
|
|
|
|
type: "varchar(128)",
|
|
|
|
|
maxLength: 128,
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(128)",
|
|
|
|
|
oldMaxLength: 128)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "UserId",
|
|
|
|
|
table: "AspNetUserTokens",
|
|
|
|
|
type: "varchar(255)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(450)")
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "UserName",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "varchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<bool>(
|
|
|
|
|
name: "TwoFactorEnabled",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "tinyint(1)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(ulong),
|
|
|
|
|
oldType: "bit");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "SecurityStamp",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "longtext",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(max)",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<bool>(
|
|
|
|
|
name: "PhoneNumberConfirmed",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "tinyint(1)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(ulong),
|
|
|
|
|
oldType: "bit");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "PhoneNumber",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "longtext",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(max)",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "PasswordHash",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "longtext",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(max)",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "NormalizedUserName",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "varchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "NormalizedEmail",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "varchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<DateTimeOffset>(
|
|
|
|
|
name: "LockoutEnd",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "datetime(6)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(DateTimeOffset),
|
|
|
|
|
oldType: "datetimeoffset(6)",
|
|
|
|
|
oldNullable: true);
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<bool>(
|
|
|
|
|
name: "LockoutEnabled",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "tinyint(1)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(ulong),
|
|
|
|
|
oldType: "bit");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<bool>(
|
|
|
|
|
name: "EmailConfirmed",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "tinyint(1)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(ulong),
|
|
|
|
|
oldType: "bit");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Email",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "varchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ConcurrencyStamp",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "longtext",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(max)",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Id",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "varchar(255)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(450)")
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "RoleId",
|
|
|
|
|
table: "AspNetUserRoles",
|
|
|
|
|
type: "varchar(255)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(450)")
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "UserId",
|
|
|
|
|
table: "AspNetUserRoles",
|
|
|
|
|
type: "varchar(255)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(450)")
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "UserId",
|
|
|
|
|
table: "AspNetUserLogins",
|
|
|
|
|
type: "varchar(255)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(450)")
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ProviderDisplayName",
|
|
|
|
|
table: "AspNetUserLogins",
|
|
|
|
|
type: "longtext",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(max)",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ProviderKey",
|
|
|
|
|
table: "AspNetUserLogins",
|
|
|
|
|
type: "varchar(128)",
|
|
|
|
|
maxLength: 128,
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(128)",
|
|
|
|
|
oldMaxLength: 128)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "LoginProvider",
|
|
|
|
|
table: "AspNetUserLogins",
|
|
|
|
|
type: "varchar(128)",
|
|
|
|
|
maxLength: 128,
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(128)",
|
|
|
|
|
oldMaxLength: 128)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "UserId",
|
|
|
|
|
table: "AspNetUserClaims",
|
|
|
|
|
type: "varchar(255)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(450)")
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ClaimValue",
|
|
|
|
|
table: "AspNetUserClaims",
|
|
|
|
|
type: "longtext",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(max)",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ClaimType",
|
|
|
|
|
table: "AspNetUserClaims",
|
|
|
|
|
type: "longtext",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(max)",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "NormalizedName",
|
|
|
|
|
table: "AspNetRoles",
|
|
|
|
|
type: "varchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Name",
|
|
|
|
|
table: "AspNetRoles",
|
|
|
|
|
type: "varchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ConcurrencyStamp",
|
|
|
|
|
table: "AspNetRoles",
|
|
|
|
|
type: "longtext",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(max)",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Id",
|
|
|
|
|
table: "AspNetRoles",
|
|
|
|
|
type: "varchar(255)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(450)")
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "RoleId",
|
|
|
|
|
table: "AspNetRoleClaims",
|
|
|
|
|
type: "varchar(255)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(450)")
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ClaimValue",
|
|
|
|
|
table: "AspNetRoleClaims",
|
|
|
|
|
type: "longtext",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(max)",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ClaimType",
|
|
|
|
|
table: "AspNetRoleClaims",
|
|
|
|
|
type: "longtext",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "nvarchar(max)",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.CreateIndex(
|
|
|
|
|
name: "UserNameIndex",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
column: "NormalizedUserName",
|
|
|
|
|
unique: true);
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.CreateIndex(
|
|
|
|
|
name: "RoleNameIndex",
|
|
|
|
|
table: "AspNetRoles",
|
|
|
|
|
column: "NormalizedName",
|
|
|
|
|
unique: true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
_ = migrationBuilder.DropIndex(
|
|
|
|
|
name: "UserNameIndex",
|
|
|
|
|
table: "AspNetUsers");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.DropIndex(
|
|
|
|
|
name: "RoleNameIndex",
|
|
|
|
|
table: "AspNetRoles");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Value",
|
|
|
|
|
table: "AspNetUserTokens",
|
|
|
|
|
type: "nvarchar(max)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "longtext",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Name",
|
|
|
|
|
table: "AspNetUserTokens",
|
|
|
|
|
type: "nvarchar(128)",
|
|
|
|
|
maxLength: 128,
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(128)",
|
|
|
|
|
oldMaxLength: 128)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "LoginProvider",
|
|
|
|
|
table: "AspNetUserTokens",
|
|
|
|
|
type: "nvarchar(128)",
|
|
|
|
|
maxLength: 128,
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(128)",
|
|
|
|
|
oldMaxLength: 128)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "UserId",
|
|
|
|
|
table: "AspNetUserTokens",
|
|
|
|
|
type: "nvarchar(450)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(255)")
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "UserName",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "nvarchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<ulong>(
|
|
|
|
|
name: "TwoFactorEnabled",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "bit",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(bool),
|
|
|
|
|
oldType: "tinyint(1)");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "SecurityStamp",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "nvarchar(max)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "longtext",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<ulong>(
|
|
|
|
|
name: "PhoneNumberConfirmed",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "bit",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(bool),
|
|
|
|
|
oldType: "tinyint(1)");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "PhoneNumber",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "nvarchar(max)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "longtext",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "PasswordHash",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "nvarchar(max)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "longtext",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "NormalizedUserName",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "nvarchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "NormalizedEmail",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "nvarchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<DateTimeOffset>(
|
|
|
|
|
name: "LockoutEnd",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "datetimeoffset(6)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(DateTimeOffset),
|
|
|
|
|
oldType: "datetime(6)",
|
|
|
|
|
oldNullable: true);
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<ulong>(
|
|
|
|
|
name: "LockoutEnabled",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "bit",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(bool),
|
|
|
|
|
oldType: "tinyint(1)");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<ulong>(
|
|
|
|
|
name: "EmailConfirmed",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "bit",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(bool),
|
|
|
|
|
oldType: "tinyint(1)");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Email",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "nvarchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ConcurrencyStamp",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "nvarchar(max)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "longtext",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Id",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
type: "nvarchar(450)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(255)")
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "RoleId",
|
|
|
|
|
table: "AspNetUserRoles",
|
|
|
|
|
type: "nvarchar(450)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(255)")
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "UserId",
|
|
|
|
|
table: "AspNetUserRoles",
|
|
|
|
|
type: "nvarchar(450)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(255)")
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "UserId",
|
|
|
|
|
table: "AspNetUserLogins",
|
|
|
|
|
type: "nvarchar(450)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(255)")
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ProviderDisplayName",
|
|
|
|
|
table: "AspNetUserLogins",
|
|
|
|
|
type: "nvarchar(max)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "longtext",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ProviderKey",
|
|
|
|
|
table: "AspNetUserLogins",
|
|
|
|
|
type: "nvarchar(128)",
|
|
|
|
|
maxLength: 128,
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(128)",
|
|
|
|
|
oldMaxLength: 128)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "LoginProvider",
|
|
|
|
|
table: "AspNetUserLogins",
|
|
|
|
|
type: "nvarchar(128)",
|
|
|
|
|
maxLength: 128,
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(128)",
|
|
|
|
|
oldMaxLength: 128)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "UserId",
|
|
|
|
|
table: "AspNetUserClaims",
|
|
|
|
|
type: "nvarchar(450)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(255)")
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ClaimValue",
|
|
|
|
|
table: "AspNetUserClaims",
|
|
|
|
|
type: "nvarchar(max)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "longtext",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ClaimType",
|
|
|
|
|
table: "AspNetUserClaims",
|
|
|
|
|
type: "nvarchar(max)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "longtext",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "NormalizedName",
|
|
|
|
|
table: "AspNetRoles",
|
|
|
|
|
type: "nvarchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Name",
|
|
|
|
|
table: "AspNetRoles",
|
|
|
|
|
type: "nvarchar(256)",
|
|
|
|
|
maxLength: 256,
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(256)",
|
|
|
|
|
oldMaxLength: 256,
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ConcurrencyStamp",
|
|
|
|
|
table: "AspNetRoles",
|
|
|
|
|
type: "nvarchar(max)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "longtext",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "Id",
|
|
|
|
|
table: "AspNetRoles",
|
|
|
|
|
type: "nvarchar(450)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(255)")
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "RoleId",
|
|
|
|
|
table: "AspNetRoleClaims",
|
|
|
|
|
type: "nvarchar(450)",
|
|
|
|
|
nullable: false,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "varchar(255)")
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ClaimValue",
|
|
|
|
|
table: "AspNetRoleClaims",
|
|
|
|
|
type: "nvarchar(max)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "longtext",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.AlterColumn<string>(
|
|
|
|
|
name: "ClaimType",
|
|
|
|
|
table: "AspNetRoleClaims",
|
|
|
|
|
type: "nvarchar(max)",
|
|
|
|
|
nullable: true,
|
|
|
|
|
oldClrType: typeof(string),
|
|
|
|
|
oldType: "longtext",
|
|
|
|
|
oldNullable: true)
|
|
|
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.CreateIndex(
|
|
|
|
|
name: "UserNameIndex",
|
|
|
|
|
table: "AspNetUsers",
|
|
|
|
|
column: "NormalizedUserName",
|
|
|
|
|
unique: true,
|
|
|
|
|
filter: "[NormalizedUserName] IS NOT NULL");
|
|
|
|
|
|
|
|
|
|
_ = migrationBuilder.CreateIndex(
|
|
|
|
|
name: "RoleNameIndex",
|
|
|
|
|
table: "AspNetRoles",
|
|
|
|
|
column: "NormalizedName",
|
|
|
|
|
unique: true,
|
|
|
|
|
filter: "[NormalizedName] IS NOT NULL");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|