From a7e87e6a073e0977200a551623d40c4563faabb2 Mon Sep 17 00:00:00 2001 From: Ebicoglu Date: Wed, 6 Oct 2021 13:48:26 +0300 Subject: [PATCH 1/5] Update Abp-5_0.md --- docs/en/Migration-Guides/Abp-5_0.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/en/Migration-Guides/Abp-5_0.md b/docs/en/Migration-Guides/Abp-5_0.md index a41a794ed6..896d33d7b1 100644 --- a/docs/en/Migration-Guides/Abp-5_0.md +++ b/docs/en/Migration-Guides/Abp-5_0.md @@ -2,9 +2,11 @@ ## IdentityUser -We added an `IsActive(bool)` property to `IdentityUser` to [control whether it is available](https://github.com/abpframework/abp/pull/10185). **Please set it to `true` of the old user after the upgrade.** +`IsActive(bool)` property is added to the `IdentityUser`. This flag will be checked during the authentication of the users. See [PR](https://github.com/abpframework/abp/pull/10185). **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.) -For EF Core you can change `defaultValue` to `true` in the migration class: ```cs public partial class AddIsActiveToIdentityUser : Migration { @@ -27,16 +29,18 @@ public partial class AddIsActiveToIdentityUser : Migration } ``` - +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](https://docs.abp.io/en/abp/latest/Timing#clock-options) start from 5.0, before `DateTime` values in MongoDB are [always saved as UTC](https://mongodb.github.io/mongo-csharp-driver/2.13/reference/bson/mapping/#datetime-serialization-options). +ABP Framework will serialize the datetime based on [AbpClockOptions](https://docs.abp.io/en/abp/latest/Timing#clock-options) starting from ABP v5.0. It was saving `DateTime` values as UTC in MongoDB. Check out [MongoDB Datetime Serialization Options](https://mongodb.github.io/mongo-csharp-driver/2.13/reference/bson/mapping/#datetime-serialization-options). + +You can disable this behavior with `AbpMongoDbOptions`: -You can disable this behavior by configure `AbpMongoDbOptions`. ```cs services.Configure(x => x.UseAbpClockHandleDateTime = false); ``` ## Angular UI -See the [Angular UI Migration Guide](Abp-5_0-Angular.md). +See the [Angular UI 5.0 Migration Guide](Abp-5_0-Angular.md). From 20bc18e29a1dd2d4a3de32e539ab5f8c5a5e3598 Mon Sep 17 00:00:00 2001 From: Ebicoglu Date: Wed, 6 Oct 2021 13:48:43 +0300 Subject: [PATCH 2/5] Update Abp-5_0.md --- docs/en/Migration-Guides/Abp-5_0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/Migration-Guides/Abp-5_0.md b/docs/en/Migration-Guides/Abp-5_0.md index 896d33d7b1..90abe4e6dc 100644 --- a/docs/en/Migration-Guides/Abp-5_0.md +++ b/docs/en/Migration-Guides/Abp-5_0.md @@ -2,7 +2,7 @@ ## IdentityUser -`IsActive(bool)` property is added to the `IdentityUser`. This flag will be checked during the authentication of the users. See [PR](https://github.com/abpframework/abp/pull/10185). **After the migration, set this property to `true` for the existing users: `UPDATE AbpUsers SET IsActive=1`** +`IsActive ` property is added to the `IdentityUser`. This flag will be checked during the authentication of the users. See [PR](https://github.com/abpframework/abp/pull/10185). **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.) From 18168a95f33f28f8fa508ab80a652289b82f2905 Mon Sep 17 00:00:00 2001 From: Ebicoglu Date: Wed, 6 Oct 2021 13:49:07 +0300 Subject: [PATCH 3/5] Update Abp-5_0.md --- docs/en/Migration-Guides/Abp-5_0.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en/Migration-Guides/Abp-5_0.md b/docs/en/Migration-Guides/Abp-5_0.md index 90abe4e6dc..1c8604b214 100644 --- a/docs/en/Migration-Guides/Abp-5_0.md +++ b/docs/en/Migration-Guides/Abp-5_0.md @@ -2,7 +2,8 @@ ## IdentityUser -`IsActive ` property is added to the `IdentityUser`. This flag will be checked during the authentication of the users. See [PR](https://github.com/abpframework/abp/pull/10185). **After the migration, set this property to `true` for the existing users: `UPDATE AbpUsers SET IsActive=1`** +`IsActive ` property is added to the `IdentityUser`. This flag will be checked during the authentication of the users. See the related [PR](https://github.com/abpframework/abp/pull/10185). +**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.) From 25c8399bb48d56f821d9dbcd9875902cbb9d889d Mon Sep 17 00:00:00 2001 From: Ebicoglu Date: Wed, 6 Oct 2021 13:49:29 +0300 Subject: [PATCH 4/5] Update Abp-5_0.md --- docs/en/Migration-Guides/Abp-5_0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/Migration-Guides/Abp-5_0.md b/docs/en/Migration-Guides/Abp-5_0.md index 1c8604b214..6386146177 100644 --- a/docs/en/Migration-Guides/Abp-5_0.md +++ b/docs/en/Migration-Guides/Abp-5_0.md @@ -5,7 +5,7 @@ `IsActive ` property is added to the `IdentityUser`. This flag will be checked during the authentication of the users. See the related [PR](https://github.com/abpframework/abp/pull/10185). **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: +For EFCore you can set `defaultValue` to `true` in the migration class: (This will add the column with `true` value for the existing records.) ```cs From 77cdeb6c452f75e3a8b966ecdfb9d8859f116c39 Mon Sep 17 00:00:00 2001 From: Ebicoglu Date: Wed, 6 Oct 2021 13:50:30 +0300 Subject: [PATCH 5/5] Update Abp-5_0.md --- docs/en/Migration-Guides/Abp-5_0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/Migration-Guides/Abp-5_0.md b/docs/en/Migration-Guides/Abp-5_0.md index 6386146177..83d8ad62c0 100644 --- a/docs/en/Migration-Guides/Abp-5_0.md +++ b/docs/en/Migration-Guides/Abp-5_0.md @@ -36,7 +36,7 @@ For document base databases like MongoDB, you need to manually update the `IsAct ABP Framework will serialize the datetime based on [AbpClockOptions](https://docs.abp.io/en/abp/latest/Timing#clock-options) starting from ABP v5.0. It was saving `DateTime` values as UTC in MongoDB. Check out [MongoDB Datetime Serialization Options](https://mongodb.github.io/mongo-csharp-driver/2.13/reference/bson/mapping/#datetime-serialization-options). -You can disable this behavior with `AbpMongoDbOptions`: +To revert back this feature, set `UseAbpClockHandleDateTime = false` in `AbpMongoDbOptions`: ```cs services.Configure(x => x.UseAbpClockHandleDateTime = false);