aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Migration
Commit message (Collapse)AuthorAgeFilesLines
* fix: Adjust parameter type usage and add SQLite supportFerdinand Thiessen2024-10-171-17/+15
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(AppFramework): Add full support for date / time / datetime columnsFerdinand Thiessen2024-10-171-16/+32
| | | | | | | | | | | | | | | | This adds support for all Doctrine supported types, for the column types only the immutable variants needed to be added. But especially those types are the important ones, as our **Entity** class works by detecting changes through setters. Meaning if it is mutable, changes like `$entity->date->modfiy()` can not be detected, so the immutable types make more sense here. Similar the parameter types needed to be added. `Enity` and `QBMapper` needed to be adjusted so they support (auto map) those types, required when insert or update an entity. Also added more tests, especially to make sure the mapper really serializes the values correctly. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(migration-attributes): psalmMaxence Lange2024-07-295-0/+32
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat(migration-attributes): testsMaxence Lange2024-07-2914-21/+39
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(migration-attributes): privatizing AttributeExceptionMaxence Lange2024-07-2914-24/+193
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat(upgrade): migration attributesMaxence Lange2024-07-2915-0/+474
| | | | | | | | | | | | | | | | 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>
* chore: Add SPDX headerAndy Scherzinger2024-05-245-105/+15
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(install): Make installing more verboseJoas Schilling2023-11-031-0/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-203-3/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(database): Explicitly inherit stricly typed database schema closureChristoph Wurst2022-12-062-16/+27
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Migrate Repair events to OCP\EventDispatcher\EventCôme Chilliet2022-08-251-1/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-045-8/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-164-2/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add psalm types for the migration schema closureChristoph Wurst2020-10-152-12/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22432 from nextcloud/enh/phpdocRoeland Jago Douma2020-08-261-1/+0
|\ | | | | Add php docs build script
| * Remove @package annotations from public namespaceJulius Härtl2020-08-261-1/+0
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Replace TYPE with TYPESDaniel Kesselberg2020-06-301-2/+3
| | | | | | As TYPE::* is deprecated. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-055-5/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-222-0/+2
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add since tagsRoeland Jago Douma2018-05-301-0/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add human readable description to migration stepsRobin Appelman2018-05-302-0/+32
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix the type hints of migrations and correctly inject the wrapped schema ↵Joas Schilling2018-01-173-14/+14
| | | | | | into migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersMorris Jobke2017-11-063-0/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add a base migration for easy updating to bigintsJoas Schilling2017-09-291-0/+66
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to check the schema in pre and post as wellJoas Schilling2017-07-052-8/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust the code to use our interface and abstractJoas Schilling2017-07-052-2/+57
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Start migrationsJoas Schilling2017-07-051-0/+49
| | | | | | | | | | Fixme: - Install and update of apps - No revert on live systems (debug only) - Service adjustment to our interface - Loading via autoloader Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix othersJoas Schilling2016-07-212-2/+4
|
* Implement classification migration as repair stepThomas Müller2016-06-091-1/+2
|
* Update license headersLukas Reschke2016-05-262-0/+2
|
* Move \OCP\Migration to PSR-4Roeland Jago Douma2016-05-182-0/+108