1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 14:14:04 +00:00
tenancy/src/Database
Samuel Štancl a0a9b85982 Refactor DatabaseConfig, minor DB manager improvements, resolve todos
Notable changes:
- CreateUserWithRLSPolicies: Clarify why we're creating a custom
  DatabaseConfing instance
- HasDatabase: Clarify why we're ignoring tenancy_db_connection
- DatabaseConfig: General refactor, clarify the role of the host conn
- SQLiteDatabaseManager: Handle trailing DIRECTORY_SEPARATOR
  in static::$path
- DisallowSqliteAttach: Don't throw any exceptions, just silently fail
  since the class isn't 100% portable
- Clean up todos that are no longer relevant
- Clean up dead code or comments in some database managers
2025-10-13 16:01:34 +02:00
..
Concerns Refactor DatabaseConfig, minor DB manager improvements, resolve todos 2025-10-13 16:01:34 +02:00
Contracts Tenant DB manager database() -> connection() 2024-09-12 18:34:45 +02:00
Exceptions Postgres RLS + permission controlled database managers (#33) 2024-04-24 22:32:49 +02:00
Models [4.x] Make the ImpersonationToken model configurable (#1335) 2025-03-18 18:42:08 +01:00
TenantDatabaseManagers Refactor DatabaseConfig, minor DB manager improvements, resolve todos 2025-10-13 16:01:34 +02:00
DatabaseConfig.php Refactor DatabaseConfig, minor DB manager improvements, resolve todos 2025-10-13 16:01:34 +02:00
DatabaseManager.php Supported named in-memory SQLite databases (#69) 2024-11-25 04:48:52 +01:00
ParentModelScope.php fix phpstan errors 2024-08-06 04:35:25 +02:00
TenantCollection.php fix phpstan errors 2024-08-06 04:35:25 +02:00
TenantScope.php fix phpstan errors 2024-08-06 04:35:25 +02:00