aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Db
Commit message (Collapse)AuthorAgeFilesLines
* chore(db): Apply query prepared statementsdbQueriesExecStmt2Git'Fellow2024-10-171-2/+2
| | | | | | | | | | | | | | | | Fix: psalm fix: bad file fix: bug chore: add batch chore: add batch chore: add batch fix: psalm
* ci: Fix psalm by typing the QuestionHelperJoas Schilling2024-10-072-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-3/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Replace OC_App::getAllApps with a method in AppManagerCôme Chilliet2024-09-132-9/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: adjust code to adhere to coding standardAnna Larch2024-09-051-2/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Merge pull request #39242 from joshtrichards/db-convert-type-mysql-socket-no-pwJohn Molakvoæ2024-09-041-1/+19
|\
| * fix(occ): Add support for UNIX sockets to `db:convert-type`Josh Richards2024-08-161-1/+19
| | | | | | | | | | | | | | | | 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>
* | style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-257-8/+8
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(migration-preview): display a message if no attributes setMaxence Lange2024-08-061-0/+9
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(migration-attributes): privatizing AttributeExceptionMaxence Lange2024-07-292-3/+7
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat(upgrade): release metadataMaxence Lange2024-07-292-124/+37
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat(upgrade): migration attributesMaxence Lange2024-07-292-0/+268
| | | | | | | | | | | | | | | | 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>
* fix(db): Promote the use of `getDatabaseProvider` to reduce the impage of ↵Joas Schilling2024-07-192-4/+3
| | | | | | removed upstream platforms Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(db): Use `createSchemaManager()` method as `getSchemaManager()` is ↵Joas Schilling2024-07-191-2/+2
| | | | | | deprecated Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #46194 from nextcloud/schema-export-cmndRobin Appelman2024-07-023-0/+227
|\ | | | | feat: add commands for exporting current and expected database schema
| * feat: add commands for exporting current and expected database schemaRobin Appelman2024-07-023-0/+227
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | chore: use spdx for migrations generatorDaniel Kesselberg2024-06-281-19/+2
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-2610-225/+28
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(db): cs-fix spacingJosh2024-05-181-1/+1
| | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* fix(db): Prevent data loss by temporarily disabling `db:convert-type`Josh2024-05-171-0/+7
| | | | | Needed until #45257 is addressed to prevent data loss Signed-off-by: Josh <josh.t.richards@gmail.com>
* Merge pull request #43824 from nextcloud/fix/db/occ-db-convert-disabled-appsJosh2024-03-071-1/+1
|\ | | | | fix(db): db-convert supports disabled apps but not removed ones
| * fix(db): db-convert supports disabled apps but not removed onesJosh2024-02-251-1/+1
| | | | | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* | fix(migrations): Help developers to add description and copyright infoJoas Schilling2024-03-051-3/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | feat(occ): add possibility to edit indicesJohannes Merkel2024-02-271-5/+51
|/ | | | Signed-off-by: Johannes Merkel <mail@johannesgge.de>
* Migrate database pending bigint conversions check to new APICôme Chilliet2023-11-281-3/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-233-3/+3
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(db): Print why the migration file could not be createdChristoph Wurst2023-11-221-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix(db)!: Remove private legacy event because we can not keep itJoas Schilling2023-07-243-27/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(db): Move missing core indices to typed eventJoas Schilling2023-07-241-416/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Add options to support all used features by coreJoas Schilling2023-07-241-1/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(db): Move missing core columns to typed eventJoas Schilling2023-07-241-36/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(db): Move missing core primary keys to typed eventJoas Schilling2023-07-241-121/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(dispatcher): Add typed event for "db:add-missing-primary-keys"Joas Schilling2023-07-241-7/+48
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(dispatcher): Add typed event for "db:add-missing-columns"Joas Schilling2023-07-241-9/+43
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #39389 from nextcloud/enh/add-missing-indices-eventJulius Härtl2023-07-141-1/+30
|\
| * feat: Add public event for missing indicesJulius Härtl2023-07-141-1/+30
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | fix(db): no hardcoded table prefix is expectedArthur Schiwon2023-07-131-2/+2
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix(systemtags): Add missing systemtags indexMarcel Klehr2023-06-211-0/+13
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Update core/Command/Db/ConvertType.phpFaraz Samapoor2023-06-191-1/+1
| | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Update core/Command/Db/ConvertFilecacheBigInt.phpFaraz Samapoor2023-06-191-1/+3
| | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Update core/Command/Db/Migrations/MigrateCommand.phpFaraz Samapoor2023-06-191-1/+3
| | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Update core/Command/Db/Migrations/StatusCommand.phpFaraz Samapoor2023-06-191-1/+3
| | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Uses PHP8's constructor property promotion in core/Command/Db classes.Faraz Samapoor2023-06-199-58/+27
| | | | Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* add new index in repair step instead of on-migrateRobin Appelman2023-04-281-0/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add parent index on filecacheLouis Chemineau2023-03-201-0/+10
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix typo that added a letter to migration templateVitor Mattos2023-02-251-1/+1
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* properly typehint generated migrationsRoeland Jago Douma2022-10-091-4/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update ConvertFilecacheBigInt.phptimm2k2022-09-141-0/+1
| | | Signed-off-by: timm2k <timm2k@gmx.de>
* DB mounts table: Add index for mount_provider_classMarcel Klehr2022-08-011-0/+13
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Update core to PHP 7.4 standardCarl Schwan2022-05-2010-79/+19
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>