summaryrefslogtreecommitdiffstats
path: root/lib/private/DB
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused import statementsMorris Jobke2018-02-142-3/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Create the migrations table also with the UTF8mb4 collationJoas Schilling2018-01-311-12/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use ::class statement instead of stringMorris Jobke2018-01-291-8/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use short for of substr to not need strlen()Morris Jobke2018-01-252-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7909 from nextcloud/fix-migration-type-hintsMorris Jobke2018-01-172-21/+16
|\ | | | | Fix the type hints of migrations and correctly inject the wrapped sch…
| * Fix the type hints of migrations and correctly inject the wrapped schema ↵Joas Schilling2018-01-172-21/+16
| | | | | | | | | | | | into migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Correctly drop the ownCloud migrations tableJoas Schilling2018-01-171-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Check if realpath() returns falseMorris Jobke2018-01-121-1/+1
| | | | | | realpath() returns false in case the directory does not exist. Found it while preparing strict_typing for PHP7+. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Drop the ownCloud migration table instead of reusing itJoas Schilling2018-01-041-3/+36
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add postgresql10 compatibility to dbalRobin Appelman2017-11-222-98/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersMorris Jobke2017-11-0618-8/+33
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Die NoCheckMigratorVictor Dubiniuk2017-10-303-41/+2
|
* Add foreign key support to OCPiotr Mrowczynski2017-10-301-4/+36
|
* quote index columns on oracle, handle all index changes, minor phpdoc cleanupJörn Friedrich Dreyer2017-10-301-27/+85
|
* Fix bigint handling on postgresJoas Schilling2017-09-292-0/+98
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a method to compare empty strings with an expressionJoas Schilling2017-08-022-0/+45
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix ILIKE regex for oracleJoas Schilling2017-08-021-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Quote aliases as wellJoas Schilling2017-08-022-10/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Function also accepts intsLukas Reschke2017-08-011-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add brackets around concat statements so comparing the result works as intendedJoas Schilling2017-07-282-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* "Only variables must be passed by reference"Joas Schilling2017-07-251-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use order by to avoid problems when chunking finds a same item again...Joas Schilling2017-07-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add Phan plugin to check for SQL injectionsLukas Reschke2017-07-201-0/+1
| | | | | | | | | | This adds a phan plugin which checks for SQL injections on code using our QueryBuilder, while it isn't perfect it should already catch most potential issues. As always, static analysis will sometimes have false positives and this is also here the case. So in some cases the analyzer just doesn't know if something is potential user input or not, thus I had to add some `@suppress SqlInjectionChecker` in front of those potential injections. The Phan plugin hasn't the most awesome code but it works and I also added a file with test cases. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Only create the migration directory when necessaryJoas Schilling2017-07-061-9/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add migration for personal settings stuffJoas Schilling2017-07-051-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix the installer testsJoas Schilling2017-07-051-1/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix tests of CodeChecker and MigrationServiceJoas Schilling2017-07-051-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix dropping tables and handle the prefix automaticallyJoas Schilling2017-07-052-3/+143
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to check the schema in pre and post as wellJoas Schilling2017-07-051-3/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a version to migrations, so parallel legacy branches can also have ↵Joas Schilling2017-07-051-0/+8
| | | | | | migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add author and copyrightJoas Schilling2017-07-051-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix code issuesJoas Schilling2017-07-051-11/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use autoloading instead of require_once from a different dirJoas Schilling2017-07-051-12/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust the code to use our interface and abstractJoas Schilling2017-07-051-13/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Start migrationsJoas Schilling2017-07-055-14/+507
| | | | | | | | | | 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>
* Add console command to migrate the charsetThomas Müller2017-04-281-0/+49
|
* Adjust query/event logging code in favour of more complex ↵Piotr Mrówczyński2017-04-261-3/+0
| | | | | | | owncloud/diagnostics (#27643) * Adjust query/event logging code in favour of more complex owncloud/diagnostics * Add descriptions to IQueryLogger and IEventLogger interfaces
* Remove unused use statementsMorris Jobke2017-04-222-8/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #4282 from nextcloud/oci-connect-stringMorris Jobke2017-04-121-23/+35
|\ | | | | use the same oci connectstring in all code paths
| * use the same oci connectstring in all code pathsRobin Appelman2017-04-101-23/+35
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #4331 from nextcloud/query-builder-sumMorris Jobke2017-04-121-0/+4
|\ \ | | | | | | Add sum() to the query function builder
| * | Add sub() to the query function builderRobin Appelman2017-04-121-0/+4
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #4146 from nextcloud/unread-comments-folderMorris Jobke2017-04-101-1/+1
|\ \ | |/ |/| Allow getting the unread comment count for an entire folder at once
| * Allow getting the unread comment count for an entire folder at onceRobin Appelman2017-03-301-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | rename fun to funcRobin Appelman2017-03-301-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | dont double escapeRobin Appelman2017-03-302-2/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix licence headersRobin Appelman2017-03-305-40/+45
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add function builder to the query builderRobin Appelman2017-03-305-0/+172
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add support for escaping like parameters when using the query builderRobin Appelman2017-03-303-0/+50
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>