mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
perf(properties): Remove useless calendar-enabled rows
Instead of setting calendar-enabled to true, delete the row as true is the default value anyway. This should make the oc_properties table a bit smaller as calendar-enabled is the properties the most often set. Signed-off-by: Carl Schwan <carl.schwan@nextclound.com>
This commit is contained in:
parent
2979a2bab0
commit
e230cc8705
1 changed files with 1 additions and 1 deletions
|
|
@ -439,7 +439,7 @@ class CustomPropertiesBackend implements BackendInterface {
|
|||
];
|
||||
|
||||
// If it was null, we need to delete the property
|
||||
if (is_null($propertyValue)) {
|
||||
if (is_null($propertyValue) || ($propertyName === '{http://owncloud.org/ns}calendar-enabled' && $propertyValue === '1')) {
|
||||
if (array_key_exists($propertyName, $existing)) {
|
||||
$deleteQuery = $deleteQuery ?? $this->createDeleteQuery();
|
||||
$deleteQuery
|
||||
|
|
|
|||
Loading…
Reference in a new issue