1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 05:44:04 +00:00
tenancy/src/Commands
lukinovec 2057e1e5ae
[4.x] Make forcing RLS configurable (#1293)
* Add `$forceRls` static property to tenants:rls

* Set `$forceRls` in tests where scoping is tested, add non-superuser, non-bypassrls table owner test

* Move DROP TABLE statement

* Remove try/catch

* Put DROP OWNED BY into try/catch

* Static property cleanup in afterEach

* Make with() matrix syntax more clear by using with() multiple times

* Fix typo, improve comment

* Move and update force RLS comment

* Add test for `$forceRls = false`, refactor BYPASSRLS test

* Update link in test comment

* Add a dataset for `$forceRls` in the table owner test, fix BYPASSRLS test

* Correct PR link comment

* minor fixes

* Add test that makes the bypassrls/forceRls behavior clear

* Delete redundant test

* cleanup

* Update tests/RLS/TableManagerTest.php

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-05 05:06:05 +02:00
..
ClearPendingTenants.php Improve commands CLI output (#1030) 2022-12-14 15:08:00 +01:00
CreatePendingTenants.php Improve commands CLI output (#1030) 2022-12-14 15:08:00 +01:00
CreateUserWithRLSPolicies.php [4.x] Make forcing RLS configurable (#1293) 2025-06-05 05:06:05 +02:00
Down.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
Install.php improve command output 2024-09-27 22:50:22 +02:00
Link.php fix phpstan errors 2024-08-06 04:35:25 +02:00
Migrate.php [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
MigrateFresh.php parallel commands: core # autodetect, bugfixes, improved output 2024-09-27 23:02:03 +02:00
MigrateFreshOverride.php Only delete tenants in MigrateFreshOverride if the tenants table exists (#1007) 2022-11-18 15:58:04 +01:00
Rollback.php [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
Run.php [4.x] Fix tenants:run argument parsing (#1287) 2025-01-11 12:03:09 +01:00
Seed.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
TenantDump.php Fix code style (php-cs-fixer) 2024-03-29 20:42:20 +00:00
TenantList.php fix phpstan errors 2024-08-06 04:35:25 +02:00
Tinker.php [4.x] General code cleanup (#1278) 2024-12-31 00:35:46 +01:00
Up.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00