mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
214 lines
7.4 KiB
214 lines
7.4 KiB
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace AuthServer.Host.Migrations
|
|
{
|
|
public partial class SetConcurrencyStampMaxLength : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "IdentityServerPersistedGrants",
|
|
maxLength: 40,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "IdentityServerIdentityResources",
|
|
maxLength: 40,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "IdentityServerDeviceFlowCodes",
|
|
maxLength: 40,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "IdentityServerClients",
|
|
maxLength: 40,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "IdentityServerApiResources",
|
|
maxLength: 40,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpUsers",
|
|
maxLength: 40,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpTenants",
|
|
maxLength: 40,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpRoles",
|
|
maxLength: 40,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(256)",
|
|
oldMaxLength: 256);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpOrganizationUnits",
|
|
maxLength: 40,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpClaimTypes",
|
|
maxLength: 40,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(256)",
|
|
oldMaxLength: 256);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpAuditLogs",
|
|
maxLength: 40,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "IdentityServerPersistedGrants",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 40,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "IdentityServerIdentityResources",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 40,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "IdentityServerDeviceFlowCodes",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 40,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "IdentityServerClients",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 40,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "IdentityServerApiResources",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 40,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpUsers",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 40,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpTenants",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 40,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpRoles",
|
|
type: "nvarchar(256)",
|
|
maxLength: 256,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 40,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpOrganizationUnits",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 40,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpClaimTypes",
|
|
type: "nvarchar(256)",
|
|
maxLength: 256,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 40,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ConcurrencyStamp",
|
|
table: "AbpAuditLogs",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 40,
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|