aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/MigratorTest.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(sqlite): Remove some old SQLite cheatsJoas Schilling2023-10-061-4/+0
| | | | | | | - Doctrine correctly forces integer for autoincrement by now - Doctrine correctly maintains integer types by now Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(mysql): Remove custom MySQL workaround from 2015Joas Schilling2023-10-061-8/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(postgres): Remove old Postgres 9.4 workaroundJoas Schilling2023-10-061-4/+0
| | | | | | | | Postgres 10 is the minimum in the meantime and doctrine/dbal fixed this in 2.6.0 already ref https://github.com/doctrine/dbal/pull/2614 Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adapt tests to config value typingCôme Chilliet2023-04-051-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* tests(db): Add test case to ensure column comments workFerdinand Thiessen2023-02-281-0/+24
| | | | Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* Migrate Migrator::executeSql to OCP\EventDispatcher\EventCôme Chilliet2022-08-251-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add a metadata service to store file metadataCarl Schwan2022-04-131-0/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Integer 0 is not stored as Null and therefor worksJoas Schilling2021-04-161-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Test that oracle throws on EmptyValues in a NotNull columnsJoas Schilling2021-04-161-14/+28
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Run migrator tests on OCIJoas Schilling2021-04-161-3/+33
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cleanup unneeded code around database.xmlMorris Jobke2021-03-241-12/+29
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Skip db migration simulation for core schema changesJulius Härtl2021-03-171-53/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-5/+5
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Only rollback when not MySQLJoas Schilling2021-01-111-2/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-14/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add temporary test for migrating int to stringJulius Härtl2020-12-081-0/+49
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+4
| | | | | | | | | | | | | | | 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 the short array syntax, everywhereChristoph Wurst2020-03-261-30/+30
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Mode to modern phpunitRoeland Jago Douma2019-11-271-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-221-3/+3
| | | | | | | | | | | * 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>
* Fix risky tests without assertionsJoas Schilling2018-01-251-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add foreign key support to OCPiotr Mrowczynski2017-10-301-2/+37
|
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-0/+203
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader