From 8c1f04806977468006bfb8c7a4587550cc7b42a5 Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Mon, 25 Oct 2021 14:30:14 +0300 Subject: [PATCH 1/2] Add MongoDB Script for migration --- docs/en/Migration-Guides/Abp-5_0.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/en/Migration-Guides/Abp-5_0.md b/docs/en/Migration-Guides/Abp-5_0.md index e9ef522162..8a4dd05086 100644 --- a/docs/en/Migration-Guides/Abp-5_0.md +++ b/docs/en/Migration-Guides/Abp-5_0.md @@ -95,6 +95,10 @@ public partial class AddIsActiveToIdentityUser : Migration For MongoDB, you need to update the `IsActive` field for the existing users in the database. +```js +db.AbpUsers.updateMany({},{$set:{ IsActive : true }}) +``` + #### Identity -> Account API Changes `IProfileAppService` (and the implementation and the related DTOs) are moved to the Account module from the Identity module (done with [this PR](https://github.com/abpframework/abp/pull/10370/files)). From 73399808511b7115b015df7f8ce350504d4548dd Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Mon, 25 Oct 2021 14:33:55 +0300 Subject: [PATCH 2/2] Update Abp-5_0.md --- docs/en/Migration-Guides/Abp-5_0.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/Migration-Guides/Abp-5_0.md b/docs/en/Migration-Guides/Abp-5_0.md index 8a4dd05086..1a34de43c9 100644 --- a/docs/en/Migration-Guides/Abp-5_0.md +++ b/docs/en/Migration-Guides/Abp-5_0.md @@ -95,6 +95,7 @@ public partial class AddIsActiveToIdentityUser : Migration For MongoDB, you need to update the `IsActive` field for the existing users in the database. +You can use following script in MongoShell: ```js db.AbpUsers.updateMany({},{$set:{ IsActive : true }}) ```