summaryrefslogtreecommitdiff
path: root/db
Commit message (Collapse)AuthorAgeFilesLines
* Fix missing key change in ↵sh-fix-secrets-not-workingStan Hu2018-06-021-1/+1
| | | | 20171124104327_migrate_kubernetes_service_to_new_clusters_architectures.rb
* Merge branch 'sh-bump-ruby-2.4' into 'master'Stan Hu2018-06-012-2/+2
|\ | | | | | | | | Upgrade to Ruby 2.4.4 See merge request gitlab-org/gitlab-ce!19055
| * Upgrade to Ruby 2.4.4sh-bump-ruby-2.4Stan Hu2018-05-292-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fixes that make this work: * A change in Ruby (https://github.com/ruby/ruby/commit/ce635262f53b760284d56bb1027baebaaec175d1) requires passing in the exact required length for OpenSSL keys and IVs. * Ensure the secrets.yml is generated before any prepended modules are loaded. This is done by renaming the `secret_token.rb` initializer to `01_secret_token.rb`, which is a bit ugly but involves the least impact on other files.
* | Merge branch '46019-add-missing-migration' into 'master'Yorick Peterse2018-06-011-0/+19
|\ \ | | | | | | | | | | | | | | | | | | Resolve "ActiveRecord::RecordInvalid: Validation failed: Build timeout needs to be at least 10 minutes" Closes #46019 See merge request gitlab-org/gitlab-ce!18775
| * | Add missing migration for minimal Project build_timeoutTomasz Maczukin2018-05-221-0/+19
| | |
* | | Merge branch '46487-add-support-for-jupyter-in-gitlab-via-kubernetes' into ↵Dmitriy Zaporozhets2018-06-012-0/+36
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Resolve "Add support for Jupyter in GitLab via Kubernetes" Closes #46487 See merge request gitlab-org/gitlab-ce!19019
| * | | Fix schema.rb46487-add-support-for-jupyter-in-gitlab-via-kubernetesDmitriy Zaporozhets2018-05-311-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | Fix column order for jupyter table in schema.rbDmitriy Zaporozhets2018-05-311-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | Improve jupyter app db migrationsDmitriy Zaporozhets2018-05-312-3/+5
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | Merge remote-tracking branch 'origin/master' into ↵Dmitriy Zaporozhets2018-05-306-1/+181
| |\ \ \ | | | | | | | | | | | | | | | 46487-add-support-for-jupyter-in-gitlab-via-kubernetes
| * | | | Rename clusters_applications_jupyters to uncountableDmitriy Zaporozhets2018-05-302-2/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | | Revert changes to db/schemaDmitriy Zaporozhets2018-05-301-26/+24
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | | Add oauth reference to jupyter cluster appDmitriy Zaporozhets2018-05-252-0/+2
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| * | | | Add support for Jupyter in GitLab via KubernetesDmitriy Zaporozhets2018-05-252-24/+58
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | | Merge branch '41587-osw-mr-metrics-migration-take-two' into 'master'Grzegorz Bizon2018-05-311-0/+44
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Take two for MR metrics population background migration See merge request gitlab-org/gitlab-ce!19097
| * | | | | Take two for MR metrics population background migrationOswaldo Ferreira2018-05-301-0/+44
| | |/ / / | |/| | |
* | | | | Export assigned issues in iCalendar feedImre Farkas2018-05-313-2/+30
|/ / / /
* | | | Merge branch 'blackst0ne-squash-and-merge-in-gitlab-core-ce' into 'master'Phil Hughes2018-05-302-0/+20
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | Resolve "Squash and merge in GitLab Core (CE)" Closes #34591 See merge request gitlab-org/gitlab-ce!18956
| * | | Add 'squash and rebase' feature to CEblackst0ne-squash-and-merge-in-gitlab-core-ceblackst0ne2018-05-292-0/+20
| | | |
* | | | Adds migration to ensure all remote mirror columns get createdTiago Botelho2018-05-292-1/+25
| | | |
* | | | Merge branch 'groups-controller-show-performance' into 'master'Douwe Maan2018-05-292-1/+29
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Improve performance of GroupsController#show See merge request gitlab-org/gitlab-ce!18973
| * | | Added partial index for merge requestsYorick Peterse2018-05-282-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This index is added on `(target_project_id, iid)` and has a `WHERE state = 'opened'` condition. Using this index we can drastically improve the performance of the query used to count the total number of merge requests in a group. Without this index the query would eventually perform the following: -> Index Scan using index_merge_requests_on_target_project_id_and_iid on merge_requests (cost=0.43..4.89 rows=7 width=4) (actual time=0.058..0.353 rows=6 loops=228) Index Cond: (target_project_id = projects.id) Filter: ((state)::text = 'opened'::text) Rows Removed by Filter: 141 Buffers: shared hit=34351 dirtied=1 Out of the ~180 milliseconds the entire query would take, around 170 milliseconds was spent in just this segment. With the index in place, the above segment is turned into the following: -> Index Only Scan using yorick_test on merge_requests (cost=0.42..0.55 rows=7 width=4) (actual time=0.004..0.010 rows=6 loops=228) Index Cond: (target_project_id = projects.id) Heap Fetches: 419 Buffers: shared hit=1381 The index also reduces the total query time to roughly 10 milliseconds.
* | | | Merge branch 'add-background-migration-to-fill-file-store' into 'master'Kamil Trzciński2018-05-281-0/+72
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | Add background migration to fill file stores from `NULL` to `1` Closes #45337 and #45476 See merge request gitlab-org/gitlab-ce!18557
| * | | Remove disable_statement_timeoutadd-background-migration-to-fill-file-storeShinya Maeda2018-05-281-2/+0
| | | |
| * | | Rename FillFileStoreUpload to FillStoreUploadShinya Maeda2018-05-281-1/+2
| | | |
| * | | Add spec for fill_file_store migrationShinya Maeda2018-05-281-0/+0
| | | |
| * | | Fix schema and refactoring migration fileShinya Maeda2018-05-281-24/+26
| | | |
| * | | Remove legacy artifacts file_store migrationShinya Maeda2018-05-281-30/+6
| | | |
| * | | Add background migration to fill file storesShinya Maeda2018-05-281-0/+95
| |/ /
* | | Persist truncated note diffs on a new table45190-create-notes-diff-filesOswaldo Ferreira2018-05-242-0/+36
|/ / | | | | | | | | We request Gitaly in a N+1 manner to build discussion diffs. Once the diffs are from different revisions, it's hard to make a single request to the service in order to build the whole response. With this change we solve this problem and simplify a lot fetching this piece of info.
* | Rollback changes made to CreateProjectMirrorData46630-add-missing-columns-to-project-mirror-dataTiago Botelho2018-05-231-11/+7
| |
* | Renames AddMissingColumnsToProjectMirrorData to ↵Tiago Botelho2018-05-231-1/+1
| | | | | | | | EnsureMissingColumnsToProjectMirrorData
* | Adds migration to ensure the new project_mirror_data columns are indeed ↵Tiago Botelho2018-05-231-0/+15
| | | | | | | | added to the table
* | Edits create_project_mirror_data to add the new columns when table already ↵Tiago Botelho2018-05-231-7/+11
| | | | | | | | exists
* | Resolve "Deprecate Gemnasium project service"Olivier Gonzalez2018-05-231-0/+15
| |
* | Increase text limit for GPG keys (mysql only).ab-46530-mediumtext-for-gpg-keysAndreas Brandl2018-05-223-1/+18
| | | | | | | | Closes #46530.
* | Migration to add/drop primary key constraints for composite keys.ab-43706-composite-primary-keysAndreas Brandl2018-05-211-0/+63
| | | | | | | | Closes #43706.
* | Add NOT NULL constraints to project_authorizations.Andreas Brandl2018-05-212-4/+42
| | | | | | | | Closes #32258.
* | Fix: Use case in-sensitive ordering by name for groupsHarish Ved2018-05-171-0/+32
| |
* | Add a unique and not null constraint on the project_features.project_id columnStan Hu2018-05-153-3/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit has two migrations: 1. The first prunes duplicate rows in the project_features table and leaves the row with the highest ID. Since the behavior was indeterministic before and depended on which row the database decided to use, this change at least makes the permissions consistent. For example, in some cases, the Wiki may have been disabled but enabled in another entry. 2. The second adds a non-null constraint on the project_features.project_id column. Closes #37882 Fixes a significant part of gitlab-com/migration#408. We found that we were overcounting Wikis because of these duplicates. On GitLab.com, there are 56 rows with duplicate entries by project_id, and 16,661 rows with NULL project_id values.
* | Add index on runner_type for ci_runners46010-add-index-to-runner-typeDylan Griffith2018-05-152-1/+17
| | | | | | | | | | We use this to filter runner and will use this increasingly in future instead of is_shared so it should be indexed
* | Merge branch 'master' into 'fix-project-mirror-data-schema'Douwe Maan2018-05-0990-1139/+410
|\ \ | | | | | | | | | # Conflicts: # db/schema.rb
| * \ Merge branch 'fix/gb/add-missing-foreign-key-to-database-schema' into 'master'Kamil Trzciński2018-05-091-0/+1
| |\ \ | | | | | | | | | | | | | | | | Add missing pipeline build foreign key to the schema See merge request gitlab-org/gitlab-ce!18846
| | * | Add missing pipeline build foreign key to the schemaGrzegorz Bizon2018-05-091-0/+1
| | |/
| * | Merge branch 'fix/gb/add-tmp-index-to-improve-stages-migration-cleanup' into ↵Kamil Trzciński2018-05-091-1/+34
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Add tmp index to ci_builds to optimize stages migration Closes #46179 See merge request gitlab-org/gitlab-ce!18844
| | * | Add tmp index to ci_builds to optimize stages migrationGrzegorz Bizon2018-05-091-1/+34
| | |/
| * | Merge branch '46010-runner-type-not-null' into 'master'Kamil Trzciński2018-05-092-2/+11
| |\ \ | | | | | | | | | | | | | | | | Set `ci_runners.runner_type` not null See merge request gitlab-org/gitlab-ce!18825
| | * | Add DB constraint ci_runners.runner_type not nullDylan Griffith2018-05-092-2/+11
| | |/
| * | Fix `downtime_check` jobblackst0ne2018-05-091-0/+2
| |/ | | | | | | | | | | | | | | | | | | 15fcd9650f6a4a5832e2ed57419b11e30d3f606f (!18547) squashes old migrations to a single one. Old migrations had `rubocop:disable all` rule, but the new migration doesn't have it, so the `downtime_check` fails. This commit explicitly tells that the migration requires downtime.
| * Merge branch 'fix/gb/add-pipeline-builds-foreign-key' into 'master'Kamil Trzciński2018-05-081-0/+27
| |\ | | | | | | | | | | | | | | | | | | Add database foreign key between pipelines and builds Closes #46035 See merge request gitlab-org/gitlab-ce!18822