mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge pull request #5243 from appwrite/fix-migration
Update migration V18.php
This commit is contained in:
@@ -50,6 +50,7 @@ abstract class Migration
|
||||
'1.1.2' => 'V16',
|
||||
'1.2.0' => 'V17',
|
||||
'1.2.1' => 'V17',
|
||||
'1.3.0' => 'V18',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user