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.
abp/docs/en/Migration-Guides/Abp-5_0.md

1.7 KiB

ABP Framework v4.x to v5.0 Migration Guide

IdentityUser

IsActive <bool> property is added to the IdentityUser. This flag will be checked during the authentication of the users. See PR. After the migration, set this property to true for the existing users: UPDATE AbpUsers SET IsActive=1

For EFCore you can change defaultValue to true in the migration class: (This will add the column with true value for the existing records.)

public partial class AddIsActiveToIdentityUser : Migration
{
    protected override void Up(MigrationBuilder migrationBuilder)
    {
        migrationBuilder.AddColumn<bool>(
            name: "IsActive",
            table: "AbpUsers",
            type: "bit",
            nullable: false,
            defaultValue: true); // Default is false.
    }

    protected override void Down(MigrationBuilder migrationBuilder)
    {
        migrationBuilder.DropColumn(
            name: "IsActive",
            table: "AbpUsers");
    }
}

For document base databases like MongoDB, you need to manually update the IsActive field for the existing user records.

MongoDB

ABP Framework will serialize the datetime based on AbpClockOptions starting from ABP v5.0. It was saving DateTime values as UTC in MongoDB. Check out MongoDB Datetime Serialization Options.

You can disable this behavior with AbpMongoDbOptions:

services.Configure<AbpMongoDbOptions>(x => x.UseAbpClockHandleDateTime = false);

Angular UI

See the Angular UI 5.0 Migration Guide.