aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Migration
Commit message (Collapse)AuthorAgeFilesLines
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-201-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-194-7/+10
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: adjust code to adhere to coding standardAnna Larch2024-09-052-2/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-257-8/+8
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(metadata): revert wrongly renamed columnMaxence Lange2024-08-021-2/+2
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat(migrations): add metadata to existing migrationsMaxence Lange2024-08-021-1/+5
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of ↵Joas Schilling2024-07-191-2/+1
| | | | | | removed upstream platforms Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #45766 from nextcloud/feat/ooo-replacementDaniel2024-07-011-0/+44
|\ | | | | Feat: Allow users to select another user as their out-of-office replacement
| * Feat: Allow users to select another user as their out-of-office replacementHamza Mahjoubi2024-07-011-0/+44
| | | | | | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* | fix(BuildSocialSearchIndexBackgroundJob): offset not appliedArthur Schiwon2024-07-011-0/+2
|/ | | | | | with more than 100 results, this job may never finish Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix(dav): add missing database index for dav_shares resourceid, type and accessSebastianKrupinski2024-06-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com> Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Sebastian Krupinski <165827823+SebastianKrupinski@users.noreply.github.com> Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com> Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Sebastian Krupinski <165827823+SebastianKrupinski@users.noreply.github.com> Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Sebastian Krupinski <165827823+SebastianKrupinski@users.noreply.github.com> Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Sebastian Krupinski <165827823+SebastianKrupinski@users.noreply.github.com> Co-authored-by: Daniel <mail@danielkesselberg.de> Signed-off-by: Sebastian Krupinski <165827823+SebastianKrupinski@users.noreply.github.com> Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* fix(dav): Limit number of UPDATES for sync token created_atChristoph Wurst2024-06-191-1/+28
| | | | | | | | | | | Address book and calendar sync tokens have a created_at column in 26+ and we need to assign a current timestamp to the existing data at upgrade so the data isn't cleaned up immediately. Updating the full table is expensive and fails on clustered setups that limit transaction size. We don't need a timestamp for the oldest rows so we can skip updating them. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(caldav): automatically delete outdated scheduling objectsAnna Larch2024-05-312-0/+39
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-2740-801/+82
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(dav): Add retention time to sync token cleanupChristoph Wurst2024-03-211-0/+84
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(db): remove redundant index in cardsJohannes Merkel2024-02-182-1/+56
| | | | Signed-off-by: Johannes Merkel <mail@johannesgge.de>
* Merge pull request #43387 from nextcloud/fix/migrate-away-from-ilogger-in-jobsCôme Chilliet2024-02-082-76/+34
|
* Revert "Merge branch 'master' of github.com:nextcloud/server"Louis Chemineau2024-02-082-34/+76
| | | | | This reverts commit d9d60238c7aaab9c61bf2d50c15aa59bc88c8975, reversing changes made to ba3fdb0cdcfbb84f0080a2146a4ba2f01569915d.
* fix!: Migrate jobs away from deprecated interfacesCôme Chilliet2024-02-082-76/+34
| | | | | | BREAKING CHANGE: Removed ILogFactory::getCustomLogger deprecated method Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-2319-44/+43
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix: lower threshold for system address book syncDaniel Kesselberg2023-11-221-1/+1
| | | | | | | - Switch back to countUsers to have the actual value. countSeenUsers is bad if Nextcloud is connected to a larger directory, but only a part is using Nextcloud and therefore the seen count is much lower because the sync is done for all users. - Lower the threshold to 100 for smaller installations. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* add index for classificationAkhil2023-10-311-0/+55
| | | | | Signed-off-by: Akhil <akhil@e.email> Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* feat(dav): implement personal absence settings backendRichard Steinmetz2023-10-291-0/+83
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix: use faster method to fetch user countDaniel Kesselberg2023-09-141-1/+1
| | | | | | | | | | countUsers: the actual user count reported by the backend. countSeenUsers: count every user who was logged in once. 1: We should avoid expensive operations (like asking every backend for it's user count) in migrations. 2: The current check is wrong because countUsers returns an array. var_dump([] > 1000) => true ;) Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(CardDAV): only run upgrade sync if 1000 users or lessAnna Larch2023-08-261-7/+14
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(dav): Catch SAB sync errors during upgradeChristoph Wurst2023-06-261-1/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat(dav): store scopes for properties and filter locally scoped properties ↵Anna Larch2023-05-091-0/+54
| | | | | | for federated address book sync Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(Repair): Fix repair step compatibility with Oracle DBJoas Schilling2023-02-231-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow DAV Object propertiesThomas Citharel2022-05-162-0/+123
| | | | | | | | | | | | | | | | | | | The current implementation only saves them as string. It seems they can be more complex than that, and that objects were saved directly. You may find such objects saved in some production databases by executing: ```sql SELECT * from oc_properties where propertyvalue = 'Object'; ``` This commit adds a repair job to clean all of these "broken" properties values, adds a new database column to save the type of the property, and handles converting from and to correct values. Implementation is very similar to SabreDAV's own PDO backend: https://github.com/nextcloud/3rdparty/blob/4921806dfb1c5c309eac60195ed34e2749baf3c1/sabre/dav/lib/DAV/PropertyStorage/Backend/PDO.php Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Migrate dav application from ILogger to LoggerInterfaceCôme Chilliet2022-05-021-9/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Cast orphan subscription id to intChristoph Wurst2021-12-011-4/+5
| | | | | | DB columns are of type int by default, so they need to be casted. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add repair job to delete calendar subscriptions that were orphaned whenThomas Citharel2021-09-041-0/+144
| | | | | | | | deleteding an user Follow-up to https://github.com/nextcloud/server/pull/28419 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0432-76/+82
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add a trashbin for calendars and calendar objectsChristoph Wurst2021-05-311-0/+45
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Drop redundant indesRoeland Jago Douma2021-02-162-1/+55
| | | | | | | Those indexes are already covered by others. So those can just be used. THose extra indexes just take up space. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add cards_abiduri index on installRoeland Jago Douma2021-01-161-0/+1
| | | | | | Else we directly tell the admin to add this on install. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Migrate internal classes to the OCP db col typesChristoph Wurst2021-01-1210-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-084-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2020-12-302-4/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* re-index contacts with social profilescall-me-matt2020-12-222-0/+216
| | | | Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-165-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Adjust further columnsVincent Petry2020-12-091-0/+6
| | | | | | | - calendarsubscriptions.lastmodified -> not null - external_config.value -> allow null Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Adjust calendars.components to 64 charsVincent Petry2020-12-091-0/+6
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Manually iterate over calendardata when oracle is usedJulius Härtl2020-11-111-0/+32
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix CSJoas Schilling2020-11-101-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure columns with an empty default are nullable for OracleJoas Schilling2020-11-102-1/+61
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't leave cursors open when tests failJoas Schilling2020-11-092-2/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-2410-1/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't load all calendar objects into memoryJoas Schilling2020-08-201-14/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Replace TYPE with TYPESDaniel Kesselberg2020-06-3010-56/+56
| | | | | | As TYPE::* is deprecated. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>