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

13 commits

Author SHA1 Message Date
Samuel Štancl
7317d2638a
Postgres RLS + permission controlled database managers (#33)
This PR adds Postgres RLS (trait manager + table manager approach) and permission controlled managers for PostgreSQL.

---------

Co-authored-by: lukinovec <lukinovec@gmail.com>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
2024-04-24 22:32:49 +02:00
Abrar Ahmad
fb2369dc11
anonymous publishable migrations (#1001) 2022-11-11 13:02:13 +01:00
Samuel Štancl
2a39b0526a Fix #998, properly replace ALL tenant_id literals 2022-11-10 16:44:52 +01:00
Abrar Ahmad
627233d07a
[4.x] Don't use onDeleteCascade in the migrations (#883)
* removed `cascade` on delete for domains

* removed only `onDelete` cascade

* keep impersonation migrations unchanged

* domains set null on delete

* Update 2019_09_15_000020_create_domains_table.php

* Added DeleteDomain Job while deleting tenant.

* Update assets/TenancyServiceProvider.stub.php

Co-authored-by: Samuel Štancl <samuel@archte.ch>

* renamed class

* Update DeleteDomains.php

* onDelete restrict

* revert nullable

* removed `shouldQueue` interface

* Update TenancyServiceProvider.stub.php

* fetch and delete domains individually

* Update DeleteDomains.php

* tests for `DeleteDomains` job

Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-07-20 13:02:33 +02:00
Samuel Štancl
10a5b80d44 User impersonation 2020-05-15 07:30:57 +02:00
Samuel Štancl
7ad93adde5 Remove is_primary from domain migrations 2020-05-09 02:49:27 +02:00
Samuel Štancl
a602cec940 Fix event listener tests, improve domain logic 2020-05-09 02:49:08 +02:00
Samuel Štancl
e1a4054743 Domain model & resolver test 2020-05-08 18:16:18 +02:00
Samuel Štancl
33f5f0e316 Remove timestamps 2019-09-29 11:59:17 +02:00
Samuel Štancl
6b103cd2cb Model timestamps 2019-09-27 22:53:38 +02:00
Anton Komarev
cacf239801 Replace drop with dropIfExists in migrations (#143) 2019-09-26 19:02:44 +02:00
Anton Komarev
ee06ff296e [2.x] Make Domain's model domain key as a primary (#141)
* Make Domain's model domain key as a primary

* Remove comments
2019-09-26 18:04:39 +02:00
Chris Brown
a166de2ef6 Rename migration stubs so they show next to each other (#127) 2019-09-25 08:07:01 +02:00
Renamed from assets/migrations/2019_09_15_000000_create_domains_table.php (Browse further)