From 6e4592dab4f7604cce4c1e2491072ef42d8f740f Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 17 Mar 2023 07:08:47 +0545 Subject: [PATCH 1/2] Update migration V18.php --- src/Appwrite/Migration/Version/V18.php | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Appwrite/Migration/Version/V18.php b/src/Appwrite/Migration/Version/V18.php index 510713096..648a35d89 100644 --- a/src/Appwrite/Migration/Version/V18.php +++ b/src/Appwrite/Migration/Version/V18.php @@ -80,13 +80,7 @@ class V18 extends Migration /** * Bump version number. */ - $document->setAttribute('version', '1.2.0'); - break; - case 'projects': - /** - * Bump version number. - */ - $document->setAttribute('passwordHistory', []); + $document->setAttribute('version', '1.3.0'); /** * Set default passwordHistory @@ -95,7 +89,12 @@ class V18 extends Migration 'passwordHistory' => 0, 'passwordDictionary' => false, ])); - + break; + case 'users': + /** + * Default Password history + */ + $document->setAttribute('passwordHistory', []); break; } From c094a40a533693b54067008a3307683e79ec210a Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 17 Mar 2023 07:09:50 +0545 Subject: [PATCH 2/2] Update Migration.php --- src/Appwrite/Migration/Migration.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Appwrite/Migration/Migration.php b/src/Appwrite/Migration/Migration.php index ab394f101..1e518a7b6 100644 --- a/src/Appwrite/Migration/Migration.php +++ b/src/Appwrite/Migration/Migration.php @@ -50,6 +50,7 @@ abstract class Migration '1.1.2' => 'V16', '1.2.0' => 'V17', '1.2.1' => 'V17', + '1.3.0' => 'V18', ]; /**