aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations
Commit message (Collapse)AuthorAgeFilesLines
* Add comments expire dateVitor Mattos2022-06-151-0/+57
| | | | | | https://github.com/nextcloud/spreed/pull/7327 Signed-off-by: Vitor Mattos <vitor@php.rio>
* Add new share attributes columnVincent Petry2022-06-081-0/+52
| | | | | | To store more extended permissions in the future. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix older migrations to the version patternJoas Schilling2022-04-252-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add missing indexJoas Schilling2022-04-251-0/+53
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #31047 from nextcloud/enh/preferences-indexJulius Härtl2022-04-211-0/+1
|\ | | | | Additional index on oc_preferences to make queries without a user filter faster
| * Additional index on oc_preferences to make sure that gettingh values without ↵Julius Härtl2022-04-191-0/+1
| | | | | | | | | | | | a user filter is fast Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Add a metadata service to store file metadataCarl Schwan2022-04-131-0/+62
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update Version24000Date20211222112246.phpJoas Schilling2022-03-151-2/+4
|
* store mountprovider for each mount in the mounts tableRobin Appelman2022-02-231-0/+37
| | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #31042 from nextcloud/enh/direct_edit_indexVincent Petry2022-02-101-0/+1
|\ | | | | Add index for direct editing cleanup job
| * Add index for direct editing cleanup jobJulius Härtl2022-02-071-0/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Allow apps to specify if their background job can be delayedJoas Schilling2022-02-071-0/+55
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a primary key to ratelimit_entries tableJoas Schilling2022-01-283-20/+139
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix column size to work with Oracle. Add unit testsVitor Mattos2022-01-211-4/+4
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Add comments reactionsVitor Mattos2022-01-211-0/+96
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Add hashed attribute column for indexed job existence checkJulius Härtl2022-01-181-0/+67
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Check style updateCarl Schwan2022-01-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add missing index for propertypath only queries against propertiesChristoph Wurst2021-12-231-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Migrate profile_config id column to bigintChristopher Ng2021-12-141-0/+42
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Use bigint for autoincremented columnChristopher Ng2021-12-141-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Use proper app id (settings instead of core)Julius Härtl2021-12-131-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Lowercase all core=>email valuesJoas Schilling2021-12-131-0/+63
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #29996 from zordsdavini/patch-1Pytal2021-12-092-1/+55
|\
| * Update core/Migrations/Version23000Date20211203110726.phpPytal2021-12-091-8/+4
| | | | | | | | | | Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com> Signed-off-by: Christopher Ng <chrng8@gmail.com>
| * Fix relation "user_id" already exists migration errorChristopher Ng2021-12-032-1/+59
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Add an index for selecting the next jobJoas Schilling2021-12-011-0/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #28541 from nextcloud/path-prefix-index2Robin Appelman2021-10-191-0/+4
|\ | | | | add a prefix index to filecache.path, attempt 2
| * disable path prefix index on postgresql for nowRobin Appelman2021-10-081-1/+4
| | | | | | | | | | | | | | having the index work properly for the queries we need it for requires some additional options which dbal does not support at the momement. to prevent making it harder to add the correct index later on we don't create the index for now on postgresql Signed-off-by: Robin Appelman <robin@icewind.nl>
| * add a prefix index to filecache.pathRobin Appelman2021-10-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The reason that `filecache.path` hasn't had an index added is the mysql limitation of ~1kb for indexeded fields, which is to small for the `path`, however mysql supports indexing only the first N bytes of a column instead of the entire column, allowing us to add an index even if the column is to long. Because the index doesn't cover the entire column it can't be used in all situations where a normal index would be used, but it does cover the `path like 'folder/path/%'` queries that are used in various places. Sqlite and Postgresql don't support prefix indexes, but they also don't have the 1kb limit and DBAL handles the differences in index creation. Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Profile backendChristopher Ng2021-10-191-0/+69
|/ | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* add better index for finding unindexed pathsRobin Appelman2021-10-071-0/+1
| | | | | | | | | | for the following query 'SELECT "path" FROM "oc_filecache" WHERE ("storage" = $storage) AND ("size" < 0) ORDER BY "fileid" DESC LIMIT 1;' currently the database will in some cases decide to priorize the sort by fileid over the filter when picking what index to use, resulting in a much slower query. by creating an index that allows first sorting by fileid and also filter by storage and size this case will be greatly sped up Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add admin privilege delegation for admin settingsCarl Schwan2021-09-291-0/+62
| | | | | | | This makes it possible for selected groups to access some settings pages. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Implement review feedbackLukas Reschke2021-09-131-2/+2
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Apply suggestions from code review Lukas Reschke2021-09-131-2/+3
| | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch> Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
* Implement PR review feedbackLukas Reschke2021-09-071-3/+0
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* phpcsLukas Reschke2021-09-061-2/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Adjust logic to store period instead of current timestampLukas Reschke2021-09-061-2/+2
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add database ratelimiting backendLukas Reschke2021-09-061-0/+47
| | | | | | | In case no distributed memory cache is specified this adds a database backend for ratelimit purposes. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0435-74/+53
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Revert "add a prefix index to filecache.path"Roeland Jago Douma2021-04-081-1/+0
|
* add a prefix index to filecache.pathRobin Appelman2021-03-191-0/+1
| | | | | | | | | | | | The reason that `filecache.path` hasn't had an index added is the mysql limitation of ~1kb for indexeded fields, which is to small for the `path`, however mysql supports indexing only the first N bytes of a column instead of the entire column, allowing us to add an index even if the column is to long. Because the index doesn't cover the entire column it can't be used in all situations where a normal index would be used, but it does cover the `path like 'folder/path/%'` queries that are used in various places. Sqlite and Postgresql don't support prefix indexes, but they also don't have the 1kb limit and DBAL handles the differences in index creation. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add missing index on the user columnJoas Schilling2021-03-171-0/+52
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a KnownUsers database with modelJoas Schilling2021-03-101-0/+69
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Drop redundant indesRoeland Jago Douma2021-02-161-0/+65
| | | | | | | Those indexes are already covered by others. So those can just be used. THose extra indexes just take up space. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Drop authtoken_version_indexRoeland Jago Douma2021-01-202-1/+55
| | | | | | | The index was used when deleting old tokens. On top of that the index is of course not that great since the version is either 1 or 2. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Migrate internal classes to the OCP db col typesChristoph Wurst2021-01-1211-11/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #25073 from nextcloud/psalm/24521/remove-unneeded-castsMorris Jobke2021-01-111-1/+1
|\ | | | | Remove unneeded casts that were found by Psalm
| * Remove unneeded casts that were found by PsalmMorris Jobke2021-01-111-1/+1
| | | | | | | | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Don't remove assignable column for nowVincent Petry2021-01-111-7/+0
|/ | | | | | It causes side effects. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-082-6/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>