mirror of
https://github.com/appwrite/appwrite
synced 2026-05-21 16:08:22 +00:00
Use create bulk attributes
This commit is contained in:
parent
4d4cfef1ad
commit
768d005f08
1 changed files with 4 additions and 6 deletions
|
|
@ -234,12 +234,10 @@ class V23 extends Migration
|
|||
'buildLogs',
|
||||
'totalSize',
|
||||
];
|
||||
foreach ($attributes as $attribute) {
|
||||
try {
|
||||
$this->createAttributeFromCollection($this->dbForProject, $id, $attribute);
|
||||
} catch (\Throwable $th) {
|
||||
Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}");
|
||||
}
|
||||
try {
|
||||
$this->createAttributesFromCollection($this->dbForProject, $id, $attributes);
|
||||
} catch (\Throwable $th) {
|
||||
Console::warning('Failed to create attributes "' . \implode(', ', $attributes) . "\" in collection {$id}: {$th->getMessage()}");
|
||||
}
|
||||
|
||||
$indexes = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue