Open Bibendus83 opened 4 years ago
TENANCY_DATABASE_AUTO_DELETE
TENANCY_DATABASE_AUTO_DELETE_USER
app(WebsiteRepository::class)->delete($website, false);
The website is soft deleted from the websites table, however the database and user are hard deleted from the DBMS too.
websites
Database and user should not be removed when soft deleting a website
@Bibendus83 can you try my branch if it works for you?
How to reproduce
TENANCY_DATABASE_AUTO_DELETE
and/orTENANCY_DATABASE_AUTO_DELETE_USER
to true in .env settingsapp(WebsiteRepository::class)->delete($website, false);
Result
The website is soft deleted from the
websites
table, however the database and user are hard deleted from the DBMS too.Expected behavior
Database and user should not be removed when soft deleting a website