1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 17:14:03 +00:00
Commit graph

24 commits

Author SHA1 Message Date
lukinovec
cb775a9fba Improve RLS policy creation command 2023-06-05 13:43:21 +02:00
PHP CS Fixer
9f166a59a4 Fix code style (php-cs-fixer) 2023-06-05 10:04:15 +00:00
lukinovec
983e4c1f84 Get RLS models from a temporary tenant 2023-06-05 12:03:48 +02:00
lukinovec
ac6bf3651a Delete redundant str($x)->toString() 2023-05-31 13:33:37 +02:00
lukinovec
61519ecec3 Wrap makeModelUseRls() in transaction 2023-05-31 07:53:21 +02:00
lukinovec
3ef1c38414 Delete single-call DB transactions 2023-05-31 07:38:43 +02:00
lukinovec
ea9690f915 Handle phpstan errors 2023-05-24 14:47:17 +02:00
lukinovec
ae568e1227 Reduce nesting, rename methods 2023-05-24 14:29:30 +02:00
PHP CS Fixer
526002c7b2 Fix code style (php-cs-fixer) 2023-05-24 10:59:36 +00:00
lukinovec
0a6c1b69ea Update RLS policy command (use DB transactions, improve nesting) 2023-05-24 12:59:12 +02:00
lukinovec
253061730e Remove UUID constraint from RLS policy 2023-05-10 12:48:06 +02:00
lukinovec
17d779e130 Scope queries using Postgres RLS (WIP) 2023-05-09 16:07:06 +02:00
lukinovec
9ad183d296 Use tenantKeyColumn() instead of the config 2023-04-28 14:27:55 +02:00
PHP CS Fixer
483630897e Fix code style (php-cs-fixer) 2023-04-27 11:48:25 +00:00
lukinovec
2745f824aa Fix command 2023-04-27 13:44:45 +02:00
lukinovec
9226a1ec6c Fix syntax error 2023-04-26 12:48:04 +02:00
lukinovec
44acaadb6e Improve command for creating RLS policies 2023-04-26 12:43:45 +02:00
lukinovec
2d75f185b8 Use Schema::getAllTables() instead of the migration file names 2023-04-24 11:10:06 +02:00
lukinovec
91936bc5ab Fix PHPStan error 2023-04-21 15:36:00 +02:00
lukinovec
0bf464b80d Filter migration files in create RLS policies command 2023-04-21 15:32:08 +02:00
lukinovec
26eafd30ba Fix PHPStan error 2023-02-13 15:42:46 +01:00
lukinovec
d4025fb886 Fix PHPStan error 2023-02-13 15:36:23 +01:00
PHP CS Fixer
e3e85b3ffa Fix code style (php-cs-fixer) 2023-02-13 14:32:50 +00:00
lukinovec
5469358e95 Add command for creating RLS policies for tenant tables 2023-02-13 15:32:13 +01:00