mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
fix(migration): fix Attribute not found when migrating users collection
This throws because Appwrite tries to migrate attributes that don't exist yet like mfaRecoveryCodes. Since the attribute doesn't exist yet, just log a warning and continue.
This commit is contained in:
parent
40a8bd45fe
commit
77e309af50
1 changed files with 5 additions and 1 deletions
|
|
@ -127,7 +127,11 @@ class V20 extends Migration
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->projectDB->updateAttribute($id, $attribute['$id'], $attribute['type']);
|
try {
|
||||||
|
$this->projectDB->updateAttribute($id, $attribute['$id'], $attribute['type']);
|
||||||
|
} catch (Throwable $th) {
|
||||||
|
Console::warning("'{$attribute['$id']}' from {$id}: {$th->getMessage()}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue