summaryrefslogtreecommitdiffstats
path: root/core/Command
Commit message (Collapse)AuthorAgeFilesLines
* App manager is not needed anymoreJoas Schilling2018-02-161-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Validate the info.xml against the appstore schema fileJoas Schilling2018-02-161-50/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #8335 from nextcloud/remove-unused-importMorris Jobke2018-02-1413-26/+0
|\ | | | | Remove unused import statements
| * Remove unused import statementsMorris Jobke2018-02-1413-26/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use non aliased method insteadMorris Jobke2018-02-133-4/+4
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use ::class statement instead of stringMorris Jobke2018-01-291-3/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-265-5/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use type casting instead of *val() methodMorris Jobke2018-01-261-1/+1
| | | | | | It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8063 from nextcloud/inline-valueJoas Schilling2018-01-261-2/+1
|\ | | | | Return value immediately instead of assigning to a one-time variable
| * Return value immediately instead of assigning to a one-time variableMorris Jobke2018-01-261-2/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Implements are not needed because they are already done by base classMorris Jobke2018-01-251-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7354 from nextcloud/refacor-update-page-printblizzz2018-01-221-1/+2
|\ | | | | Refactor method to check if update is needed
| * Refactor method to check if update is neededMorris Jobke2017-11-301-1/+2
| | | | | | | | | | | | There was only one call, that actually needed the parameter to be set to true. So this change moved the print of the page to that location and replaces all other occurences with a direct call to the underlying OCP API. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove not needed 3rdparty app disabling during upgrade for PHP 5.xMorris Jobke2018-01-191-13/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix the type hints of migrations and correctly inject the wrapped schema ↵Joas Schilling2018-01-172-6/+6
| | | | | | | | | | | | into migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix case when overwrite URL is empty during setupMorris Jobke2018-01-151-1/+1
| | | | | | | | | | | | Found while testing strict typing for PHP 7+. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #7517 from nextcloud/add-index-to-share-tableRoeland Jago Douma2017-12-181-0/+91
|\ \ | | | | | | Add index to share_with column in the share table
| * | make occ command more genericBjoern Schiessle2017-12-181-7/+25
| | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * | add occ command to add a index to share_with at the share tableBjoern Schiessle2017-12-181-0/+73
| |/ | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Merge pull request #7531 from nextcloud/ldap/createdistributedRoeland Jago Douma2017-12-181-1/+1
|\ \ | | | | | | don't use deprecated method for requesting memcache
| * | Also replace all other occurencesMorris Jobke2017-12-181-1/+1
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / Use injected AppManagerRoeland Jago Douma2017-12-181-1/+1
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Get the Installer via DIMorris Jobke2017-11-253-12/+17
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-0631-25/+59
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use proper DI for repair commandMorris Jobke2017-10-241-3/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use appmanager instead of OC_App for check for enabled appMorris Jobke2017-10-231-2/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Also update the activity table with thisJoas Schilling2017-10-131-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a command to manually migrate to big intsJoas Schilling2017-10-131-0/+101
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix missing "unsigned" on integer columnsJoas Schilling2017-09-191-0/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add mimetype support for .URL (Windows) and .webloc (macOS) files. Update ↵Thomas Ebert2017-08-311-1/+1
| | | | | | places/link svg. Add filetype/link icon. Add repair step for mime types. Signed-off-by: Thomas Ebert <thomas.ebert@te-online.net>
* Fix typo in template for migration generationJoas Schilling2017-08-091-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #5816 from nextcloud/fix-oracleMorris Jobke2017-08-021-0/+4
|\ | | | | Fix oracle
| * Allow to specify the table space on occJoas Schilling2017-08-021-0/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Use public methods for OC_App::isShippedMorris Jobke2017-08-011-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* add namespacesualko2017-07-261-0/+2
| | | | Signed-off-by: sualko <klaus@jsxc.org>
* add occ app:install commandsualko2017-07-261-0/+75
| | | | Signed-off-by: Klaus Herberth <klaus@jsxc.org>
* Add *lob support for all tablesJoas Schilling2017-07-251-14/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* use template placeholders instead of htmlJoas Schilling2017-07-251-6/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Always order by all values, to make sure all entries are copied correctlyJoas Schilling2017-07-251-9/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only migrate to the current stateJoas Schilling2017-07-251-6/+16
| | | | 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-9/+30
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove generate change script which doesnt work with migrations anymoreJoas Schilling2017-07-251-89/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use default connection parameters for utf8 4byte supportJoas Schilling2017-07-251-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Skip migrations table because it was already done when creating the schemaJoas Schilling2017-07-251-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use migrations on convertJoas Schilling2017-07-251-1/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Core is converted, so this is dead codeJoas Schilling2017-07-251-9/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a script to generate a migration from database.xmlJoas Schilling2017-07-252-5/+214
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add Phan plugin to check for SQL injectionsLukas Reschke2017-07-201-0/+8
| | | | | | | | | | 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-0/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Check the migration files for table, column and index length errorsJoas Schilling2017-07-051-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>