Fix extra collection keys

This commit is contained in:
Jake Barnby 2025-05-16 22:06:37 +12:00
parent 15c13aa032
commit fa3894ef1c
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -96,18 +96,14 @@ abstract class Migration
$this->collections = Config::getParam('collections', []);
$this->collections['projects'][] = [
'_metadata' => [
'$id' => ID::custom('_metadata'),
'$collection' => Database::METADATA
]
$this->collections['projects']['_metadata'] = [
'$id' => ID::custom('_metadata'),
'$collection' => Database::METADATA,
];
$this->collections['projects'][] = [
'audit' => [
'$id' => ID::custom('audit'),
'$collection' => Database::METADATA
],
$this->collections['projects']['audit'] = [
'$id' => ID::custom('audit'),
'$collection' => Database::METADATA,
];
}