summaryrefslogtreecommitdiffstats
path: root/core/Command
Commit message (Collapse)AuthorAgeFilesLines
* Correctly handle users with numeric user idsJoas Schilling2018-07-111-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add parent index to share tableRoeland Jago Douma2018-06-121-1/+9
| | | | | | Fixes #9327 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Emit event when running ./occ db:add-missing-indicesRoeland Jago Douma2018-05-281-7/+14
| | | | | | | This allows apps to listen to this event in order to also update indecies there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* 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>
* Allow to check the schema in pre and post as wellJoas Schilling2017-07-051-4/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a version to migrations, so parallel legacy branches can also have ↵Joas Schilling2017-07-051-9/+19
| | | | | | migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add author and copyrightJoas Schilling2017-07-052-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not allow to go back on productive systemsJoas Schilling2017-07-051-1/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust the code to use our interface and abstractJoas Schilling2017-07-051-63/+27
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Start migrationsJoas Schilling2017-07-054-0/+412
| | | | | | | | | | 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 command to apply updates to custom themesJulius Härtl2017-07-051-0/+64
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Version and dependency are now requiredJoas Schilling2017-05-221-6/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Implement skip checkers and log the currently tested appMorris Jobke2017-05-161-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Skip the code checking for nowJoas Schilling2017-05-161-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Check the name length of database itemsJoas Schilling2017-05-161-0/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Check the syntax of the language fileJoas Schilling2017-05-161-0/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>