using Microsoft.EntityFrameworkCore.Migrations; namespace AuthServer.Host.Migrations { public partial class SetConcurrencyStampMaxLength : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "IdentityServerPersistedGrants", maxLength: 40, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "IdentityServerIdentityResources", maxLength: 40, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "IdentityServerDeviceFlowCodes", maxLength: 40, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "IdentityServerClients", maxLength: 40, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "IdentityServerApiResources", maxLength: 40, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpUsers", maxLength: 40, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpTenants", maxLength: 40, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpRoles", maxLength: 40, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(256)", oldMaxLength: 256); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpOrganizationUnits", maxLength: 40, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpClaimTypes", maxLength: 40, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(256)", oldMaxLength: 256); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpAuditLogs", maxLength: 40, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "IdentityServerPersistedGrants", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldMaxLength: 40, oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "IdentityServerIdentityResources", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldMaxLength: 40, oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "IdentityServerDeviceFlowCodes", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldMaxLength: 40, oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "IdentityServerClients", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldMaxLength: 40, oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "IdentityServerApiResources", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldMaxLength: 40, oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpUsers", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldMaxLength: 40, oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpTenants", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldMaxLength: 40, oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpRoles", type: "nvarchar(256)", maxLength: 256, nullable: false, oldClrType: typeof(string), oldMaxLength: 40, oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpOrganizationUnits", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldMaxLength: 40, oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpClaimTypes", type: "nvarchar(256)", maxLength: 256, nullable: false, oldClrType: typeof(string), oldMaxLength: 40, oldNullable: true); migrationBuilder.AlterColumn( name: "ConcurrencyStamp", table: "AbpAuditLogs", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldMaxLength: 40, oldNullable: true); } } }