mirror of
https://github.com/appwrite/appwrite
synced 2026-04-27 08:27:20 +00:00
34 lines
949 B
PHP
34 lines
949 B
PHP
<?php
|
|
|
|
|
|
$common = include __DIR__ . '/collections/common.php';
|
|
$projects = include __DIR__ . '/collections/projects.php';
|
|
$databases = include __DIR__ . '/collections/databases.php';
|
|
$platform = include __DIR__ . '/collections/platform.php';
|
|
$logs = include __DIR__ . '/collections/logs.php';
|
|
|
|
// see - http.php#245
|
|
// $collections['buckets']['files'];
|
|
$buckets = ['files' => $common['files']];
|
|
|
|
// no more required.
|
|
unset($common['files']);
|
|
|
|
/**
|
|
* $collection => id of the parent collection where this will be inserted
|
|
* $id => id of this collection
|
|
* name => name of this collection
|
|
* project => whether this collection should be created per project
|
|
* attributes => list of attributes
|
|
* indexes => list of indexes
|
|
*/
|
|
|
|
$collections = [
|
|
'buckets' => $buckets,
|
|
'databases' => $databases,
|
|
'projects' => array_merge($projects, $common),
|
|
'console' => array_merge($platform, $common),
|
|
'logs' => $logs,
|
|
];
|
|
|
|
return $collections;
|