1
0
Fork 0
mirror of synced 2024-05-20 12:42:39 +12:00

Merge pull request #7782 from appwrite/fix-migration-users-attribute-not-found

Fix Attribute not found when migrating users collection
This commit is contained in:
Torsten Dittmann 2024-03-11 10:06:32 +01:00 committed by GitHub
commit 33b4ee5c0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()}");
}
}
}