Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
  • Loading branch information
Carl Schwan committed Aug 13, 2025
commit e230cc8705d6dd2a36b123fdd3ba58fd609c6043
2 changes: 1 addition & 1 deletion apps/dav/lib/DAV/CustomPropertiesBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ private function updateProperties(string $path, array $properties): bool {
];

// 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
Expand Down
Loading