Arthur Schiwon
607ed31b35
fix(db): no hardcoded table prefix is expected
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-07-14 12:00:47 +00:00
Marcel Klehr
ddf296f76f
fix(systemtags): Add missing systemtags index
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-06-30 14:55:36 +02:00
Arthur Schiwon
2d75209794
Merge pull request #38022 from nextcloud/backport/32877/stable25
...
[stable25] allow storing multiple mounts for the same rootid in the mount cache
2023-06-15 11:47:44 +02:00
Robin Appelman
b9f47232ca
add new index in repair step instead of on-migrate
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-31 16:15:51 +02:00
Robin Appelman
b95b23a8f3
fix php7.4 syntax
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-25 13:34:17 +02:00
Robin Appelman
670bd08af0
add option to list all files instead of limiting
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-25 13:34:16 +02:00
Robin Appelman
75d9dba48f
add command to summarize space usage
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-25 13:34:11 +02:00
Robin Appelman
e6a20e8f36
validate that folder size sums to children
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-01 14:03:21 +00:00
Robin Appelman
c8824825db
add command for getting fileinfo for debugging
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-01 14:03:20 +00:00
Louis Chemineau
dc1c7dd1b0
Add parent index on filecache
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-04-04 09:54:29 +00:00
Joas Schilling
9904e7b72a
Fail the repair command when an error happened
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-28 09:10:07 +01:00
Joas Schilling
bbcfa69dd2
Merge pull request #36218 from nextcloud/backport/35873/stable25
...
[stable25] Add option to return an exit-code when occ status signals an update is needed
2023-02-24 14:01:05 +01:00
Christoph Wurst
2ca92d7d6f
fix(occ): Fix comment formatting of maintenance:repair command
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-01-20 12:26:17 +00:00
Joas Schilling
87678c2fd5
No output by default when --exit-code is used
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-01-18 13:50:00 +00:00
Joas Schilling
02ded7f3ee
Print output also with status code
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-01-18 13:50:00 +00:00
Lee Garrett
9851c86c59
Implement occ status command via return codes ( Fixes : #35704 )
...
Running `./occ status -e` will produce any output. However, it will:
exit 0 during normal operation,
exit 1 when in maintenance mode,
exit 2 when `./occ upgrade` is needed.
Signed-off-by: Lee Garrett <lgarrett@rocketjump.eu>
2023-01-18 13:50:00 +00:00
Robin Appelman
6d049e6a13
fix repairing non user shares when repairing all shares
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-11-08 18:20:08 +00:00
Robin Appelman
c457ebfabe
split repairing into two stages to prevent long open transaction
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-11-08 18:20:08 +00:00
Robin Appelman
ab011363a9
update shares directly in db
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-11-08 18:20:07 +00:00
Vincent Petry
8b1d8c3722
More verbose output for repair share ownership cmd
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-11-08 18:20:07 +00:00
Robin Appelman
c781121a16
move share owner repair to occ command
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-11-08 18:20:07 +00:00
Daniel Kesselberg
487759652b
Fix Uninitialized string offset 0 at GenerateMimetypeFileBuilder.php#39
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-10-25 07:42:33 +00:00
timm2k
6ff58d30b4
Update ConvertFilecacheBigInt.php
...
Signed-off-by: timm2k <timm2k@gmx.de>
2022-09-14 10:15:16 +02:00
Côme Chilliet
9a29025534
Parameter of RepairAdvanceEvent is actually an increment, not a step id
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-25 16:26:31 +02:00
Côme Chilliet
652ab6da3f
Surround cli output with appropriate xml tags
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-25 16:18:53 +02:00
Côme Chilliet
5cfdf9b9ee
Add void return types to callables
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-25 16:15:49 +02:00
Côme Chilliet
a2a7150d6d
Migrate Repair events to OCP\EventDispatcher\Event
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-25 16:15:48 +02:00
Côme Chilliet
a83a8f0dde
Migrate Migrator::executeSql to OCP\EventDispatcher\Event
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-25 16:13:47 +02:00
Côme Chilliet
5aac997d44
Remove listeners of \OC\DB\Migrator::checkTable which is never emitted
...
See commit a2f3077ee8 from PR #24384
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-25 16:13:47 +02:00
Côme Chilliet
4f260dce6e
Moving to string key for arguments of GenericEvent in Repair
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-25 16:13:46 +02:00
Côme Chilliet
4ba30d40cf
Switch to string keys for argument of GenericEvent for OC\DB\Migrator
...
It seems checkTable is actually never dispatched?
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-08-25 16:13:46 +02:00
Carl Schwan
f8b13ecd60
Merge pull request #32363 from nextcloud/cleanup/remove-long-deprecated-classes
...
Remove OCP\App and OCP\BackgroundJob
2022-08-08 17:05:11 +02:00
Marcel Klehr
047cc708d4
DB mounts table: Add index for mount_provider_class
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2022-08-01 14:27:34 +02:00
Carl Schwan
458c2fa297
Remove OCP\App and OCP\BackgroundJob
...
Both deprecated since NC 23
IAppManager is the replacement for OCP\App unfortunately it can't be
dependency injected in classes used by the installed otherwise the
database connection is initialised too early
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-01 09:46:40 +02:00
Côme Chilliet
cc89da26c6
Fix background-job:execute command for QueuedJob instances
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-07-11 09:46:23 +00:00
Côme Chilliet
3920fc1ef2
Format the datetime for last run in ATOM format
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-07-11 09:46:23 +00:00
Côme Chilliet
0cc39d185c
Use symfony console table to render the job list properly
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-07-11 09:46:23 +00:00
Côme Chilliet
868d748dbf
Code cleaning of Background/ListCommand
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-07-11 09:46:23 +00:00
Côme Chilliet
3d01179907
Add command to list jobs
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-07-11 09:46:23 +00:00
Daniel Kesselberg
fb8d54ef72
Fix undefined when no tags
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2022-06-28 15:44:08 +02:00
Carl Schwan
fbae6ffa98
Fix importing float value
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-06-23 12:08:42 +02:00
Carl Schwan
b70c6a128f
Update core to PHP 7.4 standard
...
- Typed properties
- Port to LoggerInterface
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-20 22:18:06 +02:00
Joas Schilling
106d5f9c5c
Merge pull request #32196 from nextcloud/bugfix/noid/fix-strict-comparison
...
Fix strict comparison
2022-05-02 08:19:10 +02:00
Côme Chilliet
b865722ac0
Remove deprecated occ app:check-code command
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-04-28 15:08:01 +02:00
Joas Schilling
60801d8b1c
Fix strict comparison
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-27 20:31:40 +02:00
Joas Schilling
2ffcc08332
Fix type fixing
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-25 16:49:23 +02:00
Joas Schilling
7ee982005a
Give hints on correct migration versioning
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-25 16:21:25 +02:00
Julius Härtl
7fbd93b2ad
Additional index on oc_preferences to make sure that gettingh values without a user filter is fast
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-19 12:37:36 +02:00
Joas Schilling
cfd2e8cc20
Allow to autocomplete user and group ids in commands
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-08 11:54:44 +02:00
blizzz
835e28d0b2
Merge pull request #31661 from nextcloud/enh/user_ldap-add-command-to-unmap-groups
...
Add ldap:reset-group command to unmap groups from LDAP
2022-04-05 10:57:33 +02:00