1
0
Fork 0
mirror of synced 2024-10-05 12:43:13 +13:00

Add metadata in worker dbs

This commit is contained in:
Jake Barnby 2023-11-30 16:06:49 +13:00
parent 4f539f1ed4
commit e109f1e008
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -69,6 +69,10 @@ Server::setResource('dbForProject', function (Cache $cache, Registry $register,
$database = new Database($adapter, $cache); $database = new Database($adapter, $cache);
$database
->setMetadata('host', \gethostname())
->setMetadata('project', $project->getId());
if ($project->getAttribute('shareTables')) { if ($project->getAttribute('shareTables')) {
$database $database
->setShareTables(true) ->setShareTables(true)