summaryrefslogtreecommitdiffstats
path: root/tests/lib/DB
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix QueryBuilderTestsThomas Müller2016-10-111-10/+10
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Various database migration fixes (#25209)Thomas Müller2016-06-297-3/+1599
| | | | | | | | | | | | | * String columns with a length higher then 4000 are converted into a CLOB columns automagically - we have to respect this when migrating * Adding schema migration tests to prevent unnecessary and non-sense migration steps Fix Oracle autoincrement and unsigned handling * Fix sqlite integer type for autoincrement * Use lower case table names - fixes pg * Fix postgres with default -1 - this only affect pg 9.4 servers - 9.5 seems to work fine
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-2014-0/+3050
* 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