summaryrefslogtreecommitdiff
path: root/db/post_migrate
Commit message (Collapse)AuthorAgeFilesLines
* disable_statement_timeout doesn't require any argument anymoreGabriel Mazetto2018-08-1114-19/+18
| | | | | | | | | it will decide the method for disable statement_timeout upon per transaction or per session, based on how it's called. When calling with a block, block will be executed and it will use session based statement_timeout, otherwise will default to existing behavior.
* Fix specs to use `disable_statement_timeout` correctlyGabriel Mazetto2018-08-1014-114/+117
|
* Merge branch ↵Douglas Barbosa Alexandre2018-07-251-0/+25
|\ | | | | | | | | | | | | 'ce-6064-geo-sql-query-for-counting-projects-with-wikis-is-very-slow' into 'master' [CE Backport] Geo: Cache projects_count and wikis_count in SiteStatistic See merge request gitlab-org/gitlab-ce!20413
| * Added SiteStatistics as counter cache for Projects and WikisGabriel Mazetto2018-07-241-0/+25
| |
* | Enable rubocop for db/**/* and ee/db/**/*49582-enable-cops-for-dbLin Jen-Shin2018-07-2517-11/+13
|/
* Improve projects indexes4525-fix-project-indexesValery Sizov2018-07-161-0/+23
|
* Use schedulers and delete diff files upon deadtuples checkOswaldo Ferreira2018-07-101-2/+2
|
* Reschedule DeleteDiffFiles until there is none left to removeOswaldo Ferreira2018-07-101-1/+11
|
* Wait postgresql vacuum of deadtuples on merge_request_diff_files deletionOswaldo Ferreira2018-07-101-12/+3
|
* Add 1000 files per minute deletion ratio on schedulerOswaldo Ferreira2018-07-101-35/+3
|
* Create a diff deletion worker scheduler to avoid long-running post-migrationOswaldo Ferreira2018-07-101-18/+4
|
* Schedule batches in bulks of 5 diffsOswaldo Ferreira2018-07-101-9/+10
| | | | Issuing 6M writings in a N+1 manner in Redis takes time, 3 hours to be precise. This commit makes it schedule 5 jobs at a time, what should make it schedule every job in approximately 40 minutes
* Revert "Temporarily remove MR diffs removal migration"Sean McGivern2018-07-101-0/+70
| | | | This reverts commit 15ec6a13eb4d839d252315bf5b0a50d28351cb5f.
* Migration which fixes cross-project label referencesJan Provaznik2018-07-031-0/+30
|
* Merge branch 'temporarily-remove-mr-diffs-migration' into 'master'Alessio Caiazza2018-07-031-70/+0
|\ | | | | | | | | Temporarily remove MR diffs removal migration See merge request gitlab-org/gitlab-ce!20330
| * Temporarily remove MR diffs removal migrationSean McGivern2018-07-031-70/+0
| | | | | | | | We will re-add this with a more efficient bulk scheduling method.
* | Backport partial index to find repositories that have not been checkedStan Hu2018-07-021-0/+18
|/ | | | This was introduced in https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5984.
* Add pipeline stages position clean-up migrationGrzegorz Bizon2018-06-291-0/+43
|
* Schedule workers to delete non-latest diffs in post-migrationOswaldo Ferreira2018-06-281-0/+70
|
* Revert rename allow collaboration columnMark Chao2018-06-082-2/+24
|
* [Rails5] Fix Arel::UpdateManager callsblackst0ne2018-06-062-2/+4
| | | | | | In Rails 5.0 `Arel::UpdateManager.new` doesn't expect any parameters. This commit makes the migration not pass any parameters if on Rails 5.0.
* Migrate jobs in object_storage_upload queueJan Provaznik2018-06-051-0/+16
|
* Merge branch '42751-rename-mr-maintainer-push' into 'master'Robert Speicher2018-06-051-0/+15
|\ | | | | | | | | Rephrase Merge Request Maintainer Edit See merge request gitlab-org/gitlab-ce!19061
| * Rephrase "maintainer" to more precise "members who can merge to the target ↵42751-rename-mr-maintainer-pushMark Chao2018-06-011-0/+15
| | | | | | | | | | | | branch" "Maintainer" will be freed to be used for #42751
* | Merge branch 'add-background-migrations-for-not-archived-traces' into 'master'Kamil Trzciński2018-06-051-0/+35
|\ \ | | | | | | | | | | | | | | | | | | Add background migrations to archive legacy job traces Closes #46642 See merge request gitlab-org/gitlab-ce!19194
| * | Add type_build to ScheduleToArchiveLegacyTraces::BuildShinya Maeda2018-06-041-1/+3
| | |
| * | Fix specs. Rename migration file name which was conflicted with background ↵Shinya Maeda2018-06-041-2/+2
| | | | | | | | | | | | migration's.
| * | Directly refer application code from migration codeShinya Maeda2018-06-041-15/+4
| | |
| * | Add background migrations to arhive legacy tracesShinya Maeda2018-06-041-0/+44
| | |
* | | 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-011-1/+1
|\ \ | | | | | | | | | | | | 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-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 '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-311-0/+13
|/ /
* | 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
| |
* | Resolve "Deprecate Gemnasium project service"Olivier Gonzalez2018-05-231-0/+15
| |
* | Add a unique and not null constraint on the project_features.project_id columnStan Hu2018-05-152-0/+64
|/ | | | | | | | | | | | | | | | | | | | 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.
* Backports every CE related change from ee-44542 to CETiago Botelho2018-05-041-0/+38
|
* Fix constants in backfill_runner_type_for_ci_runners_post_migrate.rbDylan Griffith2018-05-031-4/+4
|
* Extract constants in ↵Dylan Griffith2018-05-031-2/+5
| | | | 20180430143705_backfill_runner_type_for_ci_runners_post_migrate
* Merge branch 'master' into feature/runner-per-groupDylan Griffith2018-05-031-0/+29
|\
| * Update 20180420080616_schedule_stages_index_migration.rbGrzegorz Bizon2018-04-271-1/+1
| |