aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Proper logging for appstore updatesMorris Jobke2017-05-111-1/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add console command to migrate the charsetThomas Müller2017-04-281-6/+6
|
* Do not disable 3rdparty apps on occ upgradeMorris Jobke2017-04-271-7/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-1/+2
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use false because null crashes the cacheJoas Schilling2017-03-261-3/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure blob columns are correctly converted as parametersJoas Schilling2017-03-261-1/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve error message of charset convert script and behaviourMorris Jobke2017-03-231-4/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Address commentsMorris Jobke2017-03-211-1/+1
| | | | | | | | | * fix URL to documentation * improve logic of UTF8mb4 check * fix connection parameter creation - it's done already in ConnectionFactory::createConnectionParams * remove unused attributes of MDB2SchemaReader Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adding tests for 4 byte unicode charactersMorris Jobke2017-03-211-0/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Merge pull request #3952 from nextcloud/downstream-27209Morris Jobke2017-03-201-0/+26
|\ | | | | Log files:scan exception, add InterruptedException
| * Log files:scan exception, add InterruptedExceptionVincent Petry2017-03-201-0/+26
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3947 from nextcloud/downstream-27323Morris Jobke2017-03-201-0/+5
|\ \ | | | | | | Disable empty password for user::resetpassword command using CLI
| * | Disable empty password for user::resetpassword command using CLISujith H2017-03-201-0/+5
| |/ | | | | | | | | | | | | Fixes issue: https://github.com/owncloud/core/issues/25206 Signed-off-by: Sujith H <sharidasan@owncloud.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | ownC -> NextcMorris Jobke2017-03-191-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Update the occ:encrypt-all promptMatthew Setter2017-03-191-4/+4
|/ | | | | | | | The message isn't as clear, nor as succinct, as it could be. Given that, this commit seeks to address both those points. This commit was prompted by https://github.com/owncloud/documentation/pull/2835. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use SystemConfig instead of AllConfig for DB stuffMorris Jobke2017-03-192-6/+6
| | | | | | * preparation for followup PRs to clean up the DB bootstrapping Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Clean up single user modeMorris Jobke2017-02-223-101/+22
| | | | | | | | | | | | | | Single user mode basically disables WebDAV, OCS and cron execution. Since we heavily rely on WebDAV and OCS also in the web UI it's basically useless. An admin only sees a broken interface and can't even change any settings nor sees any files. Also sharing is not possible. As this is at least the case since Nextcloud 9 and we haven't received any reports for this it seems that this feature is not used at all so I removed it. The encryption commands now rely on the well tested maintenance mode. Signed-off-by: Morris Jobke <hey@morrisjobke.de>