2019-08-09 14:46:09 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
2025-01-02 04:48:47 +00:00
|
|
|
$common = include __DIR__ . '/collections/common.php';
|
2025-01-02 13:49:39 +00:00
|
|
|
$projects = include __DIR__ . '/collections/projects.php';
|
|
|
|
|
$databases = include __DIR__ . '/collections/databases.php';
|
2025-01-02 04:48:47 +00:00
|
|
|
$platform = include __DIR__ . '/collections/platform.php';
|
2025-01-27 02:50:50 +00:00
|
|
|
$logs = include __DIR__ . '/collections/logs.php';
|
2025-01-02 04:48:47 +00:00
|
|
|
|
2025-01-03 11:50:27 +00:00
|
|
|
// see - http.php#245
|
|
|
|
|
// $collections['buckets']['files'];
|
|
|
|
|
$buckets = ['files' => $common['files']];
|
2025-01-03 10:26:36 +00:00
|
|
|
|
|
|
|
|
// no more required.
|
|
|
|
|
unset($common['files']);
|
2020-03-28 12:42:16 +00:00
|
|
|
|
2021-12-23 08:31:32 +00:00
|
|
|
/**
|
|
|
|
|
* $collection => id of the parent collection where this will be inserted
|
|
|
|
|
* $id => id of this collection
|
|
|
|
|
* name => name of this collection
|
2022-08-04 04:20:11 +00:00
|
|
|
* project => whether this collection should be created per project
|
2021-12-23 08:31:32 +00:00
|
|
|
* attributes => list of attributes
|
|
|
|
|
* indexes => list of indexes
|
|
|
|
|
*/
|
|
|
|
|
|
2023-08-04 19:15:32 +00:00
|
|
|
$collections = [
|
2025-01-02 13:49:39 +00:00
|
|
|
'buckets' => $buckets,
|
|
|
|
|
'databases' => $databases,
|
2025-12-23 12:30:43 +00:00
|
|
|
'projects' => array_merge_recursive($projects, $common),
|
|
|
|
|
'console' => array_merge_recursive($platform, $common),
|
2025-01-27 02:50:50 +00:00
|
|
|
'logs' => $logs,
|
2019-09-03 20:37:34 +00:00
|
|
|
];
|
|
|
|
|
|
2022-01-18 11:05:04 +00:00
|
|
|
return $collections;
|