summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/MigrationService.php
Commit message (Collapse)AuthorAgeFilesLines
* Log missing primary key until we make it a requirementJoas Schilling2022-04-081-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add missing doc changesJoas Schilling2022-04-071-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix typos and empty tabsJoas Schilling2022-04-071-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve error logging on migration failureJohn Molakvoæ2022-04-071-4/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Ensure schema change before checking OracleConstraintsJohn Molakvoæ2022-04-071-12/+23
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #31679 from ↵Côme Chilliet2022-03-311-0/+4
|\ | | | | | | | | nextcloud/bugfix/noid/ensure-string-columns-to-be-maximum-of-4000 Ensure string column limit of 4.000 characters
| * Ensure string column limit of 4.000 charactersJoas Schilling2022-03-251-0/+4
| | | | | | | | | | | | https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/datatype-limits.html#GUID-963C79C9-9303-49FE-8F2D-C8AAF04D3095 Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Adapt more code to migration to LoggerInterfaceCôme Chilliet2022-03-241-1/+2
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Disable for now again until more apps are fixedJoas Schilling2022-03-211-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Limit missing primary key fail to new tablesJoas Schilling2022-03-211-1/+1
| | | | | | | This will work on CI so devs notice it when they install the app for testing, and at the same time existing faulty tables don't break the upgrade to 24 Signed-off-by: Joas Schilling <coding@schilljs.com>
* Enforce primary keys as they are required to be performant in MySQL clustersJoas Schilling2022-03-101-0/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Do not check Oracle column constraints in unrelated migrationsChristoph Wurst2021-04-191-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Rename the method to match what it doesJoas Schilling2021-03-311-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't allow Notnull for boolean columnsJoas Schilling2021-03-311-0/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Document the constraints we test againstJoas Schilling2021-03-311-0/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix exception messages spacingJoas Schilling2021-03-311-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only mark migrations as installed after executionJoas Schilling2021-03-041-2/+4
| | | | | | | The problem is that if a developer creates a structural error in their migration file, they will already be marked as executed and an not be rerun. Signed-off-by: Joas Schilling <coding@schilljs.com>
* When it kicks inJoas Schilling2021-02-181-7/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-5/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make sure the migrations table schema is always checkedJulius Härtl2020-12-091-1/+1
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Revert "Make sure the migrations table schema is always checked" This reverts commit 258955ef738a52d9da2ac2fe59466e6093d7e9bc. Set current vendor during upgrade and perform migrations table change if needed Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make debugging migration exceptions easierJoas Schilling2020-12-071-1/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Revert "Revert "Installation goes brrrr""Joas Schilling2020-11-111-0/+46
|
* Revert "Installation goes brrrr"Christoph Wurst2020-11-111-46/+0
|
* Don't create a schema to check if the migrations table existsJoas Schilling2020-11-111-0/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Reduce the number of schemas we generate when we just run all migrations anywayJoas Schilling2020-11-111-0/+41
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Warn about adding NotNull columns with nullable defaultJoas Schilling2020-09-071-0/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Replace TYPE with TYPESDaniel Kesselberg2020-06-301-3/+3
| | | | | | As TYPE::* is deprecated. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+1
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Pick a shorter name for the transfer ownership tableJoas Schilling2019-12-101-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-051-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * 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>
* Remove the custom prefix from the table name length when checking on the ↵Joas Schilling2019-04-301-1/+1
| | | | | | default primary index Signed-off-by: Joas Schilling <coding@schilljs.com>
* Indeces, columns and sequences don't have the table prefixJoas Schilling2019-03-281-6/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only check the Oracle schema conditions if the app supports itJoas Schilling2018-12-171-2/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only check changed itemsJoas Schilling2018-12-171-13/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Disable Oracle enforcement for now until the following issues are solved:Joas Schilling2018-08-061-1/+2
| | | | | | | * Only apps should be checked which say they support oracle * Only check newly added items, to allow forward migration from an existing database structure Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix primary key handling on postgresJoas Schilling2018-07-271-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Ignore custom prefixes which are longerJoas Schilling2018-07-271-9/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Ignore automatic generated sequencesJoas Schilling2018-07-271-1/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix calculation of default nameJoas Schilling2018-07-271-3/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Prevent too long identifier namesJoas Schilling2018-07-271-1/+41
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only create the schema when moving between databasesJoas Schilling2018-07-191-9/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add human readable description to migration stepsRobin Appelman2018-05-301-4/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove unused import statementsMorris Jobke2018-02-141-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>