mirror of
https://github.com/appwrite/appwrite
synced 2026-05-09 18:21:06 +00:00
sync with feat-migration
This commit is contained in:
parent
3ff5472543
commit
e687c64ca0
1 changed files with 1 additions and 0 deletions
|
|
@ -241,6 +241,7 @@ App::post('/v1/projects')
|
|||
|
||||
$attributes = \array_map(fn ($attribute) => new Document($attribute), $collection['attributes']);
|
||||
$indexes = \array_map(fn (array $index) => new Document($index), $collection['indexes']);
|
||||
|
||||
try {
|
||||
$dbForProject->createCollection($key, $attributes, $indexes);
|
||||
} catch (Duplicate) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue