Carl Schwan
7a43bf26ca
refactor(dbal): Migrate away from Type::getName
...
Instead use Type::lookupName
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-10-10 16:13:09 +07:00
Carl Schwan
b0c6ef5821
refactor(dbal): Port away from deprecated hasPrimaryKey
...
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-10-10 15:44:43 +07:00
Carl Schwan
9e848551be
refactor: Port away from more IQueryBuilder::execute
...
Signed-off-by: Carl Schwan <carl.schwan@nextcloud.com>
2025-10-02 14:40:28 +07:00
Robin Appelman
4da6081786
feat: add table filter to schema:export and schema:expected
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2025-08-07 19:09:07 +07:00
Côme Chilliet
7127ac4b43
fix: Replace OC_App::loadApp calls by IAppManager
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-07-10 11:40:27 +07:00
Ferdinand Thiessen
5981b7eb51
chore: apply new CSFixer rules
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
# Conflicts:
# apps/settings/lib/SetupChecks/PhpOpcacheSetup.php
2025-07-01 16:26:50 +07:00
Christoph Wurst
3a7c094f3b
refactor: generate migrations with override attributes
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2025-06-04 07:38:06 +07:00
provokateurin
82fb8f8508
refactor: Extend rector to core/
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-05-15 00:16:54 +07:00
Christoph Wurst
29161c0dfd
fix(db): Create replacement index where original index is missing
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2025-04-17 17:59:19 +07:00
Côme Chilliet
a3685551f7
fix: Replace isInstalled calls with isEnabledForAnyone or isEnabledForUser
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2025-02-13 10:19:19 +07:00
provokateurin
d8cc8aae1a
fix(ConvertType): Read hostname from arguments and not options
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2025-01-30 09:24:58 +07:00
Nils Wenninghoff
cf5d55edb7
fix(ConvertType): Read dbtype in createConnectionParams and remove safeguard
...
Signed-off-by: Nils Wenninghoff <nils@ungemein.cool>
2025-01-30 09:24:58 +07:00
Git'Fellow
a1681b0756
chore(db): Apply query prepared statements
...
Fix: psalm
fix: bad file
fix: bug
chore: add batch
chore: add batch
chore: add batch
fix: psalm
2024-10-17 20:30:47 +07:00
Joas Schilling
c109ae9437
ci: Fix psalm by typing the QuestionHelper
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-10-07 12:11:27 +07:00
provokateurin
9836e9b164
chore(deps): Update nextcloud/coding-standard to v1.3.1
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-19 14:21:20 +07:00
Côme Chilliet
76f2bc0bfc
fix: Replace OC_App::getAllApps with a method in AppManager
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-09-13 10:08:44 +07:00
Anna Larch
8af7ecb257
chore: adjust code to adhere to coding standard
...
Signed-off-by: Anna Larch <anna@nextcloud.com>
2024-09-05 21:23:38 +07:00
John Molakvoæ
c28340dd5b
Merge pull request #39242 from joshtrichards/db-convert-type-mysql-socket-no-pw
2024-09-04 09:32:21 +07:00
Daniel Kesselberg
af6de04e9e
style: update codestyle for coding-standard 1.2.3
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-08-25 19:34:58 +07:00
Josh Richards
71fff03e9b
fix(occ): Add support for UNIX sockets to `db:convert-type`
...
Fixes #31998
Adds support to `occ db:convert-type` to support UNIX socket connections via MySQL/MariaDB. Uses same `dbhost` / `hostname` parameter parsing logic (adapted) as used elsewhere (at least the relevant parts) for consistency.
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
2024-08-16 09:04:36 +07:00
Maxence Lange
6ad6fa6425
fix(migration-preview): display a message if no attributes set
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-08-06 22:23:12 +07:00
Maxence Lange
7c1ee524be
fix(migration-attributes): privatizing AttributeException
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-07-29 12:44:52 +07:00
Maxence Lange
79e6014879
feat(upgrade): release metadata
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-07-29 12:44:52 +07:00
Maxence Lange
88cfab4f32
feat(upgrade): migration attributes
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
d
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
f
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
d
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-07-29 12:44:52 +07:00
Joas Schilling
829f2b9bc7
fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of removed upstream platforms
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-19 11:21:14 +07:00
Joas Schilling
a4c1d7291f
fix(db): Use `createSchemaManager()` method as `getSchemaManager()` is deprecated
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-19 11:21:11 +07:00
Robin Appelman
5f7b33fbea
Merge pull request #46194 from nextcloud/schema-export-cmnd
...
feat: add commands for exporting current and expected database schema
2024-07-02 16:44:55 +07:00
Robin Appelman
4f01486da0
feat: add commands for exporting current and expected database schema
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-07-02 13:45:12 +07:00
Daniel Kesselberg
d00b8ed1f5
chore: use spdx for migrations generator
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-06-28 18:54:50 +07:00
Andy Scherzinger
5c49a54801
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-26 20:05:04 +07:00
Josh
2ccde6f231
fix(db): cs-fix spacing
...
Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-05-18 10:50:38 +07:00
Josh
59dc6b49cd
fix(db): Prevent data loss by temporarily disabling `db:convert-type`
...
Needed until #45257 is addressed to prevent data loss
Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-05-17 22:26:15 +07:00
Josh
20953d0374
Merge pull request #43824 from nextcloud/fix/db/occ-db-convert-disabled-apps
...
fix(db): db-convert supports disabled apps but not removed ones
2024-03-07 10:17:45 +07:00
Joas Schilling
92fc12918e
fix(migrations): Help developers to add description and copyright info
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-03-05 12:56:38 +07:00
Johannes Merkel
06d076410a
feat(occ): add possibility to edit indices
...
Signed-off-by: Johannes Merkel <mail@johannesgge.de>
2024-02-27 11:03:08 +07:00
Josh
7ce0088737
fix(db): db-convert supports disabled apps but not removed ones
...
Signed-off-by: Josh <josh.t.richards@gmail.com>
2024-02-25 13:46:50 +07:00
Côme Chilliet
51758117a7
Migrate database pending bigint conversions check to new API
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-11-28 14:07:47 +07:00
Joas Schilling
aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-23 10:36:13 +07:00
Christoph Wurst
5f0ada879e
fix(db): Print why the migration file could not be created
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-11-22 11:46:17 +07:00
Joas Schilling
ab70bbd3ff
fix(db)!: Remove private legacy event because we can not keep it
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-24 14:51:35 +07:00
Joas Schilling
86310a35b2
fix(db): Move missing core indices to typed event
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-24 14:51:34 +07:00
Joas Schilling
00d483585b
fix: Add options to support all used features by core
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-24 14:51:34 +07:00
Joas Schilling
f73f14207c
fix(db): Move missing core columns to typed event
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-24 14:51:33 +07:00
Joas Schilling
77c2b169a5
fix(db): Move missing core primary keys to typed event
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-24 14:51:33 +07:00
Joas Schilling
bd0a149a4f
feat(dispatcher): Add typed event for "db:add-missing-primary-keys"
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-24 14:51:32 +07:00
Joas Schilling
2eded24eff
feat(dispatcher): Add typed event for "db:add-missing-columns"
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-24 14:51:32 +07:00
Julius Härtl
2601db240f
Merge pull request #39389 from nextcloud/enh/add-missing-indices-event
2023-07-14 14:21:39 +07:00
Julius Härtl
925bcebcb6
feat: Add public event for missing indices
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-07-14 13:11:22 +07:00
Arthur Schiwon
e5160e0c1c
fix(db): no hardcoded table prefix is expected
...
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2023-07-13 23:34:39 +07:00
Marcel Klehr
fcf1c3033b
fix(systemtags): Add missing systemtags index
...
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-06-21 15:20:30 +07:00