1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-14 18:54:04 +00:00

Minor fixes

The change in SQLiteDatabaseManager wasn't properly saving the
updated internal value.

The check in CacheTenancyBootstrapper wasn't handling that local tests
have a 'testing' environment, not local. However fixing only the
condition would've still added the store to $names which would throw
an exception down the line. We make sure to only throw the exception
in prod, but also make sure to only add the store to $names if it is
supported.
This commit is contained in:
Samuel Štancl 2025-10-22 12:58:23 +02:00
parent 99b79a5d08
commit aba7a50619
No known key found for this signature in database
GPG key ID: BA146259A1E16C57
2 changed files with 13 additions and 12 deletions

View file

@ -79,6 +79,7 @@ class SQLiteDatabaseManager implements TenantDatabaseManager
$name = '_tenancy_inmemory_' . $tenant->getTenantKey();
$tenant->setInternal('db_name', "file:$name?mode=memory&cache=shared");
$tenant->save();
return true;
}