mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
debug
This commit is contained in:
parent
9bfab69062
commit
bcb593e6df
1 changed files with 2 additions and 1 deletions
|
|
@ -224,6 +224,7 @@ App::post('/v1/projects')
|
||||||
}
|
}
|
||||||
|
|
||||||
var_dump($dsn->getHost());
|
var_dump($dsn->getHost());
|
||||||
|
var_dump(in_array($dsn->getHost(), $sharedTablesV1));
|
||||||
var_dump($sharedTablesV1);
|
var_dump($sharedTablesV1);
|
||||||
var_dump($globalCollections);
|
var_dump($globalCollections);
|
||||||
var_dump($create);
|
var_dump($create);
|
||||||
|
|
@ -242,7 +243,7 @@ App::post('/v1/projects')
|
||||||
if (($collection['$collection'] ?? '') !== Database::METADATA) {
|
if (($collection['$collection'] ?? '') !== Database::METADATA) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
var_dump('trying to create collection ' . $collection['$collection']);
|
||||||
$attributes = \array_map(fn ($attribute) => new Document($attribute), $collection['attributes']);
|
$attributes = \array_map(fn ($attribute) => new Document($attribute), $collection['attributes']);
|
||||||
$indexes = \array_map(fn (array $index) => new Document($index), $collection['indexes']);
|
$indexes = \array_map(fn (array $index) => new Document($index), $collection['indexes']);
|
||||||
$dbForProject->createCollection($key, $attributes, $indexes);
|
$dbForProject->createCollection($key, $attributes, $indexes);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue