summaryrefslogtreecommitdiff
path: root/db
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'issue_41724' into 'master'Sean McGivern2018-03-151-0/+103
|\ | | | | | | | | | | | | Add labeled issues seed Closes #41724 See merge request gitlab-org/gitlab-ce!17754
| * Add labeled issues seedissue_41724Felipe Artur2018-03-151-0/+103
| |
* | Fix concurrency issue with migration for user_interacted_projects table.ab-44205-user_interacted_projects-migrationAndreas Brandl2018-03-142-49/+97
|/ | | | | | | | | | | | | | | The concurrency issue originates from inserts on `user_interacted_projects` from the app while running the post-deploy migration. This change comes with a strategy to lock the table while removing duplicates and creating the unique index (and similar for FK constraints). Also, we'll have a non-unique index until the post-deploy migration is finished to speed up queries during that time. Closes #44205.
* Add partial indexes on todos to handle users with many todosadd-indexes-to-todos-for-heavy-users-like-seanGreg Stark2018-03-092-1/+31
|
* Merge branch 'jprovazn-commits-count-reschedule' into 'master'Yorick Peterse2018-03-092-1/+31
|\ | | | | | | | | Reschedule commits_count background migration See merge request gitlab-org/gitlab-ce!17599
| * Reschedule commits_count background migrationjprovazn-commits-count-rescheduleJan Provaznik2018-03-092-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | We still have >100K unmigrated MergeRequestDiffs which don't have commits_count set yet (see https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17567#note_61904891) This migration re-schedules the original background migration. To assure that records are not processed twice, records with commits_count set are skipped. Related to #41698 and !17567
* | Fix index name to Rails default to ensure idempotencysh-make-add-index-idempotentStan Hu2018-03-081-3/+4
|/ | | | See https://gitlab.com/gitlab-com/infrastructure/issues/3822
* Merge branch 'jprovazn-revert-commit-cleanup' into 'master'Sean McGivern2018-03-081-14/+0
|\ | | | | | | | | Revert "Cleanup after adding MR diff's commit_count" See merge request gitlab-org/gitlab-ce!17639
| * Revert "Cleanup after adding MR diff's commit_count"Jan Provaznik2018-03-081-14/+0
| | | | | | | | This reverts commit 0b7d10851456018328da137beeca931767b4fd0a.
* | Merge branch '43802-ensure-foreign-keys-on-clusters-applications' into 'master'Yorick Peterse2018-03-082-0/+52
|\ \ | | | | | | | | | | | | | | | | | | Resolve "Add missing foreign key constraint in clusters_applications_ingress" Closes #43802 See merge request gitlab-org/gitlab-ce!17488
| * | Ensure orphaned rows are deleted before adding the foreign key43802-ensure-foreign-keys-on-clusters-applicationsMayra Cabrera2018-03-072-2/+18
| | |
| * | Ensure foreign keys on Clusters ApplicationsMayra Cabrera2018-03-072-0/+36
| | | | | | | | | | | | Closes #43802
* | | Merge branch 'sh-add-missing-acts-as-taggable-indices' into 'master'Yorick Peterse2018-03-082-0/+23
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Adding missing indexes migrations from taggings table Closes #43927 See merge request gitlab-org/gitlab-ce!17563
| * | | Adding missing indexes on taggings tablesh-add-missing-acts-as-taggable-indicesStan Hu2018-03-072-0/+23
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | API requests were timing out because `tag_id` was missing an index. These migrations were imported by running https://github.com/mbleigh/acts-as-taggable-on#post-installation: ``` bundle exec rake acts_as_taggable_on_engine:install:migrations ``` It looks like the `acts-as-tagglable` gem added the indexes in v4.0.0, but when we upgraded from v3.5.0 (back in 2016 via f571aeb5ce38dce1a9e5f58d76360836d4a8f8a0) we did not add them. On staging, there are about 10.7 million rows on the `taggings` table. It took about 30 seconds for each index to be created. On production, there are about 17.4 million rows, so I suspect the time to be about a minute per index. Closes #43927
* | | Add index on section_name_id on ci_build_trace_sections tablesh-add-section-name-indexStan Hu2018-03-082-1/+24
|/ / | | | | | | | | | | This was causing user deletions to time out. Closes #44008
* | Add `allow_maintainer_to_push` to `merge_requests`Bob Van Landuyt2018-03-072-0/+19
|/ | | | | This flag will allow maintainers of a project to push to specific branches of a fork of a project
* Merge branch '43460-track-projects-a-user-contributed-to' into 'master'Yorick Peterse2018-03-073-0/+151
|\ | | | | | | | | | | | | Keep track of projects a user interacted with Closes #43460 See merge request gitlab-org/gitlab-ce!17327
| * Improve robustness of migration.Andreas Brandl2018-03-061-6/+39
| |
| * For MySQL, foreign keys are dependent on index.Andreas Brandl2018-03-062-3/+6
| |
| * Rename to UserInteractedProjects.Andreas Brandl2018-03-064-42/+42
| | | | | | | | | | | | This is to avoid a mix-up with the existing concept of 'user contributions'. See `User#contributed_projects` or `Event#contributions`.
| * Improve migration robustness and speed.Andreas Brandl2018-03-063-4/+10
| |
| * Simpler migration strategy for MySQL.Andreas Brandl2018-03-061-29/+58
| | | | | | | | | | MySQL does not return the number of inserted rows (or at least not expose them through cmd_tuples). Let's do one-shot INSERT instead.
| * Add post-migration to populate user_contributed_projects table.Andreas Brandl2018-03-061-0/+48
| | | | | | | | | | Trying to be a good citizen here, we spread the load building that table. Maybe not required, but at least good practice and no harm.
| * Create user_contributed_projects table.Andreas Brandl2018-03-062-0/+32
| |
* | Fix group boards migration nameSean McGivern2018-03-071-1/+1
| | | | | | | | This had the same name in EE, so give it a different name in CE.
* | Merge branch ↵Kamil Trzciński2018-03-062-1/+16
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 'move-pipeline_default-update_head_pipeline_for_merge_request-queue-to-pipeline_processing-namespace' into 'master' Move update_head_pipeline_for_merge_request queue to `pipeline_processing` namespace Closes #43919 See merge request gitlab-org/gitlab-ce!17572
| * | Move update_head_pipeline_for_merge_request queue to pipeline_processing ↵Shinya Maeda2018-03-072-1/+16
| | | | | | | | | | | | namespace
* | | Merge branch 'master' into 'issue_38337'Felipe Artur2018-03-066-1/+87
|\ \ \ | |/ / | | | | | | | | | # Conflicts: # app/models/group.rb # db/schema.rb
| * | Integrate two workers into one ArchiveTraceWorker with pipeline_background ↵Shinya Maeda2018-03-062-1/+14
| | | | | | | | | | | | queue. This queue takes loqer precedence than pipeline_default.
| * | Merge branch 'feature/sm/add-check-sum-to-job-artifacts' into 'master'Kamil Trzciński2018-03-062-0/+8
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Add checksum to ci_job_artifacts Closes #43599 See merge request gitlab-org/gitlab-ce!17354
| | * | Change column to file_sha256. Add test. Add changelogShinya Maeda2018-03-062-2/+2
| | | |
| | * | Revert logic of calculating checksumShinya Maeda2018-03-061-25/+0
| | | |
| | * | Add post migration for checksum calculationShinya Maeda2018-03-061-0/+25
| | | |
| | * | Change column type to binary from stringShinya Maeda2018-03-062-3/+2
| | | |
| | * | Add checksum to ci_job_artifactsShinya Maeda2018-03-062-0/+9
| | | |
| * | | Resolve "Enable privileged mode for Runner installed on Kubernetes"Mayra Cabrera2018-03-062-1/+20
| |/ /
| * | Projects and groups badges APIFrancisco Javier López2018-03-052-0/+32
| |/
| * Cleanup after adding MR diff's commit_countJan Provaznik2018-03-052-1/+15
| | | | | | | | | | | | * processes any pending records which are not migrated yet * bumps import_export version because of new commits_count attribute * removes commits_count fallback method
* | Address review commentsFelipe Artur2018-03-051-19/+14
| |
* | Bring one group board to CEFelipe Artur2018-03-032-1/+43
|/
* Extend Cluster Applications to install GitLab Runner to Kubernetes clusterMayra Cabrera2018-03-012-0/+47
|
* Merge branch '42643-persist-external-ip-of-ingress-controller-gke' into 'master'Kamil Trzciński2018-03-012-0/+10
|\ | | | | | | | | Display ingress IP address in the Kubernetes page See merge request gitlab-org/gitlab-ce!17052
| * Merge branch 'master' into 42643-persist-external-ip-of-ingress-controller-gkeDylan Griffith2018-02-232-1/+23
| |\
| * | Refactor ingress IP address waiting code (#42643)Dylan Griffith2018-02-201-22/+0
| | |
| * | [ci skip] Merge branch 'master' into ↵Filipa Lacerda2018-02-191-1/+0
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 42643-persist-external-ip-of-ingress-controller-gke * master: (114 commits) Fix Error 500 when viewing a commit with a GPG signature in Geo Remember assignee when moving an issue Add changelog entry Allow oxford commas and spaces before commas in MR issue closing pattern. Don't cache a nil repository root ref to prevent caching issues Add back database changes for Ci::Build Revert "Merge branch 'expired-ci-artifacts' into 'master'" Fix order dependencies in some specs migrate admin:users:* to static bundle correct for missing break statement in dispatcher.js alias create and update actions to new and edit migrate projects:merge_requests:edit to static bundle migrate projects:merge_requests:creations:diffs to static bundle migrate projects:merge_requests:creations:new to static bundle migrate projects:issues:new and projects:issues:edit to static bundle migrate projects:branches:index to static bundle migrate projects:branches:new to static bundle migrate projects:compare:show to static bundle migrate projects:environments:metrics to static bundle migrate projects:milestones:* and groups:milestones:* to static bundle ...
| * | | Persist external IP of ingress controller created for GKE (#42643)Dylan Griffith2018-02-152-1/+33
| | | |
* | | | Update schema with latest migrationDmitriy Zaporozhets2018-03-011-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Make project#namespace_id not nulldz-namespace-id-not-nullDmitriy Zaporozhets2018-03-011-0/+29
| | | | | | | | | | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | | | Persist runner IP address on contact (#43489)Dylan Griffith2018-02-282-1/+11
| | | |
* | | | Merge branch 'backstage/gb/build-stages-catch-up-migration' into 'master'Kamil Trzciński2018-02-273-0/+57
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fully migrate build stages again Closes #38756 See merge request gitlab-org/gitlab-ce!15741