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

SQLite DB manager: use setInternal() instead of hardcoded tenancy_db_*

This commit is contained in:
Samuel Štancl 2025-10-20 02:08:25 +02:00
parent 5dfb4843b9
commit 99b79a5d08
No known key found for this signature in database
GPG key ID: BA146259A1E16C57

View file

@ -78,7 +78,7 @@ class SQLiteDatabaseManager implements TenantDatabaseManager
// or creating a closure holding a reference to it and passing that to register_shutdown_function(). // or creating a closure holding a reference to it and passing that to register_shutdown_function().
$name = '_tenancy_inmemory_' . $tenant->getTenantKey(); $name = '_tenancy_inmemory_' . $tenant->getTenantKey();
$tenant->update(['tenancy_db_name' => "file:$name?mode=memory&cache=shared"]); $tenant->setInternal('db_name', "file:$name?mode=memory&cache=shared");
return true; return true;
} }