aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Db
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #21599 from nextcloud/debt/noid/type-to-typesRoeland Jago Douma2020-07-021-2/+3
|\ | | | | Replace TYPE with TYPES
| * Replace TYPE with TYPESDaniel Kesselberg2020-06-301-2/+3
| | | | | | | | | | | | As TYPE::* is deprecated. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Add return value to all commandsJoas Schilling2020-06-2610-11/+16
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add index to properties tableMario Danic2020-04-301-0/+14
| | | | Signed-off-by: Mario Danic <mario@lovelyhq.com>
* Update license headers for 19Christoph Wurst2020-04-292-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-108-13/+4
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-094-4/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19890 from nextcloud/enh/comments-reference-idJoas Schilling2020-04-022-1/+106
|\ | | | | Add optional comments reference_id
| * Add optional column oc_comments.reference_idJoas Schilling2020-03-312-1/+106
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix license headersChristoph Wurst2020-01-131-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Introduce new variable with the default answer to allow option ↵Bernhard Ostertag2019-12-291-7/+7
| | | | | | | | --no-interaction for command occ db:convert-type Variable is set to true for --no-interaction and false otherwise Signed-off-by: Bernhard Ostertag <bernieo.code@gmx.de>
* enable option '--no-interaction' for db:convert-typeBernhard Ostertag2019-12-271-5/+7
| | | | Signed-off-by: Bernhard Ostertag <bernieo.code@gmx.de>
* Update license headers for 18Christoph Wurst2019-12-201-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Convert various columns in oc_mounts to bigintGeorg Ehrke2019-12-091-0/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Update license headersChristoph Wurst2019-12-059-9/+26
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #18098 from nextcloud/fix/migration_import_orderRoeland Jago Douma2019-11-251-1/+1
|\ | | | | Fix the import order of new migrations
| * Fix the import order of new migrationsRoeland Jago Douma2019-11-251-1/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #18079 from nextcloud/fixes/phpcsRoeland Jago Douma2019-11-252-4/+3
|\ \ | | | | | | Some php-cs fixes
| * | Some php-cs fixesRoeland Jago Douma2019-11-222-4/+3
| |/ | | | | | | | | | | | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #18027 from str0g/fix/14920/convert_type_booleanRoeland Jago Douma2019-11-251-0/+3
|\ \ | |/ |/| Incorrect integer value: '' for column 'password_invalid' while migra…
| * Incorrect integer value: '' for column 'password_invalid' while migrating ↵Łukasz Buśko2019-11-201-0/+3
| | | | | | | | | | | | from pg to mysql #14920 Signed-off-by: Łukasz Buśko <busko.lukasz@pm.me>
* | Convert more columns to bigintRoeland Jago Douma2019-11-201-0/+4
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Check and add index on principaluri for schedulingobjects tableThomas Citharel2019-10-081-0/+13
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Add index on calendarid for calendarobject_props tableThomas Citharel2019-10-071-0/+13
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Deduplicate index namesJoas Schilling2019-03-271-6/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure all tables have named indexesJoas Schilling2019-03-271-0/+81
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add support for boolean defaultMaxence Lange2019-01-091-1/+5
| | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com> code cleaning Signed-off-by: Maxence Lange <maxence@artificial-owl.com> code cleaning Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Add twofactor_providers_uid indexRoeland Jago Douma2018-12-211-2/+15
| | | | | | Fixes #12943 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add setup check for pending bigint conversionMorris Jobke2018-12-051-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix bigint conversion on SQLiteMorris Jobke2018-12-051-1/+5
| | | | | | * on SQLite primary keys can't be bigint - see https://stackoverflow.com/a/18835967/520507 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Show columns to update in CLI interfaceMorris Jobke2018-12-051-1/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix index namesMorris Jobke2018-11-061-2/+2
| | | | * see #11527
* Add uid_owner and uid_initiator share tabe indicesRoeland Jago Douma2018-10-011-0/+16
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Improve class import and strict typing for generated migration classChristoph Wurst2018-09-071-6/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix generated migration class codeChristoph Wurst2018-08-211-3/+0
| | | | | | The `@since` documentation is out of place here. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #10298 from ↵Morris Jobke2018-07-241-1/+1
|\ | | | | | | | | nextcloud/bugfix/talk-714/only-migrate-the-schema-when-moving-database Only create the schema when moving between databases
| * Only create the schema when moving between databasesJoas Schilling2018-07-191-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add filecache index on mtimeRobin Appelman2018-07-191-0/+11
|/ | | | | | Gives searching by mtime and "recent" a proper index to use Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add parent index to share tableRoeland Jago Douma2018-06-031-1/+9
| | | | | | Fixes #9327 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add human readable description to migration stepsRobin Appelman2018-05-301-1/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Emit event when running ./occ db:add-missing-indicesRoeland Jago Douma2018-05-241-7/+15
| | | | | | | This allows apps to listen to this event in order to also update indecies there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add autocomplete to migration commandsJoas Schilling2018-05-035-11/+145
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add mtime and storage_mtime to db:convert-filecache-bigintAlecks Gates2018-02-171-1/+1
|
* 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>
* 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>
* Update license headersMorris Jobke2017-11-067-13/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>