-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readonly mode for database #5693
Comments
Hi sminnee. I've created a module which checks 5/6 of the boxes and will continue working on it until 6/6 is achieved at https://github.com/fspringveldt/db-read-only-mode for review. |
@tractorcow Franco's module looks good—you should check it out. :-) |
I've done a code review and it's excellent. :) Take care: DBSchemaManager::query() will still invoke query on the UN-mocked database service, so make sure that your proxy injects itself into the schema instance as well. |
Thanks for the review and suggestion Damian. I'll inject DBSchemaManager as well and write a test for it too. Regards, On 05 Sep 2016 05:04, "Damian Mooyman" [email protected] wrote:
|
This has missed 3.5 and can't go into a new patch release. I highly doubt a 3.6 release will happen so this needs to target master. sorry. |
We might but probably won't have 3.6. |
I disagree with this. SilverStripe 3.x is going to be supported until Dec 2018. This is good for 3 and was posted here at my request. |
As a sysadmin, I want to have a way of setting SilverStripe to readonly mode, so that I can safely reduce downtime during deployments
Acceptance criteria
_ss_environment.php
define.DB::query("INSERT ...")
shouldn't bypass this readonly-mode.The text was updated successfully, but these errors were encountered: