Add metadata in worker dbs
This commit is contained in:
parent
4f539f1ed4
commit
e109f1e008
1 changed files with 4 additions and 0 deletions
|
@ -69,6 +69,10 @@ Server::setResource('dbForProject', function (Cache $cache, Registry $register,
|
|||
|
||||
$database = new Database($adapter, $cache);
|
||||
|
||||
$database
|
||||
->setMetadata('host', \gethostname())
|
||||
->setMetadata('project', $project->getId());
|
||||
|
||||
if ($project->getAttribute('shareTables')) {
|
||||
$database
|
||||
->setShareTables(true)
|
||||
|
|
Loading…
Reference in a new issue