summaryrefslogtreecommitdiffstats
path: root/tests/lib/DB
Commit message (Collapse)AuthorAgeFilesLines
* Pick a shorter name for the transfer ownership tableJoas Schilling2019-12-101-11/+11
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #17833 from nextcloud/propagator-no-negative-sizesRoeland Jago Douma2019-12-041-0/+20
|\ | | | | dont set folder size to negative values during propagation
| * add LEAST and GREATER to db function builderRobin Appelman2019-11-261-0/+20
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | TO REVERT LATER: disable decimaltest from LegacyDBTestRoeland Jago Douma2019-11-271-3/+3
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Mode to modern phpunitRoeland Jago Douma2019-11-274-46/+46
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Make phpunit8 compatibleRoeland Jago Douma2019-11-2714-24/+24
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some php-cs fixesRoeland Jago Douma2019-11-222-4/+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>
* add MAX and MIN to functionbuilderRobin Appelman2019-09-061-0/+78
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update the tests to the comparison logicJoas Schilling2018-12-171-15/+95
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #11942 from nextcloud/techdebt/noid/use-count-functionMorris Jobke2018-11-121-1/+1
|\ | | | | Use the defined func()->count() instead of manual counting
| * Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Exception is not thrown anymoreMorris Jobke2018-11-121-2/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add test that unique constraint is workingDaniel Kesselberg2018-11-061-0/+13
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix testsRoeland Jago Douma2018-08-081-2/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Ignore custom prefixes which are longerJoas Schilling2018-07-271-10/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix calculation of default nameJoas Schilling2018-07-271-3/+60
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add unit testsJoas Schilling2018-07-271-1/+293
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add count to function builderRobin Appelman2018-06-141-0/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add tests for special domain nameMorris Jobke2018-04-191-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add tests for domainsMorris Jobke2018-04-191-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move regex to a function and add testsJoas Schilling2018-04-191-0/+52
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* dont keep shared database locks when running cli scriptsRobin Appelman2018-04-111-0/+21
| | | | | | For cli scripts we don't have the assumption that the universe will be cleaned up soon Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use insertIfNotExist of the new interfaceMorris Jobke2018-03-124-135/+140
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7419 from Abijeet/feature-7175Morris Jobke2018-03-062-1/+13
|\ | | | | Fixes #7175 - Allow to search for email address in user management
| * reuse query builderRobin Appelman2018-01-121-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * refactor user searchingRobin Appelman2017-12-201-0/+10
| | | | | | | | | | | | add additional user searching tests Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix risky tests without assertionsJoas Schilling2018-01-257-13/+15
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix the type hints of migrations and correctly inject the wrapped schema ↵Joas Schilling2018-01-171-2/+0
|/ | | | | | into migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* add postgresql10 compatibility to dbalRobin Appelman2017-11-221-17/+18
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add foreign key support to OCPiotr Mrowczynski2017-10-301-2/+37
|
* Fix bigint handling on postgresJoas Schilling2017-09-291-0/+74
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix querybuilder and functionbuilder testsJoas Schilling2017-08-022-25/+33
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix autoloader and namespace testMorris Jobke2017-07-051-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix tests of CodeChecker and MigrationServiceJoas Schilling2017-07-051-21/+69
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Start migrationsJoas Schilling2017-07-051-0/+162
| | | | | | | | | | 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>
* Merge pull request #4146 from nextcloud/unread-comments-folderMorris Jobke2017-04-102-2/+2
|\ | | | | Allow getting the unread comment count for an entire folder at once
| * fix quote helper testRobin Appelman2017-03-302-2/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | rename fun to funcRobin Appelman2017-03-301-4/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add tests for query builder (i)likeRobin Appelman2017-03-301-0/+106
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add function builder to the query builderRobin Appelman2017-03-301-0/+74
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add support for escaping like parameters when using the query builderRobin Appelman2017-03-301-8/+12
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Adding tests for 4 byte unicode charactersMorris Jobke2017-03-212-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * success on SQLite and Postgres * failure on MySQL due to the limited charset that only supports up to 3 bytes Add config option to update charset of mysql to utf8mb4 * fully optional * requires additional options set in the database only disable unicode test on mysql Fixing ctor call Adding docker based unit test execution for mysql utf8mb4 Add mysqlmb4 test configuration to Jenkinsfile fix collation on utf8mb4 Properly setup charset and collation in the doctrine connection Allow files containing 4-byte chars in case the database supports it During setup of a mysql database we try to detect if charset 'utf8mb4' can be used Fix mysql settings Add console command to migrate the charset Set ROW_FORMAT before setting collation to mb4 Also select tables with wrong collation Faster MySQL docker Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Namespace and array syntax fixesMorris Jobke2017-03-191-5/+17
| | | | | | * minor fixes in preparation of a bigger DB and config PR Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fixed failing test which was ignoring a required (not null) column (#26303)Philipp Schaffrath2017-03-173-7/+5
| | | | | | | | | | | | | | | | | | | | | | | * Fixed failing test which was ignoring a required (not null) column * restored test to original, catching DriverException which also catches ConstraintViolationException * catch ConstraintViolationException again * removed unnecessary field from this test * clobfield should be nullable * clobfield now is nullable * removed autoincrement since whenever this strategy is enabled, oracle would not throw constraint violation exceptions (needed for setValues), which mysql still does * this field does not auto increment anymore * mark integerfield as primary, since it is not getting marked as such through auto increment anymore, integerfield default always has been 0 instead of null Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* remove static:// stream wrapperRobin Appelman2017-01-043-6/+22
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add testsLukas Reschke2016-11-021-0/+126
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Inject config and loggerJoas Schilling2016-11-021-4/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix the testJoas Schilling2016-10-191-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* only disable unicode test on mysqlMorris Jobke2016-10-191-7/+11
|
* Adding tests for 4 byte unicode charactersMorris Jobke2016-10-191-0/+31
| | | | | * success on SQLite and Postgres * failure on MySQL due to the limited charset that only supports up to 3 bytes