summaryrefslogtreecommitdiff
path: root/db/post_migrate
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 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
| |
| * Merge branch 'master' into 'backstage/gb/migrate-pipeline-stages-index'Grzegorz Bizon2018-04-251-0/+34
| |\ | | | | | | | | | # Conflicts: # db/schema.rb
| * | Update stages index migration batch sizeGrzegorz Bizon2018-04-241-1/+1
| | |
| * | Schedule pipeline stages index background migrationGrzegorz Bizon2018-04-241-0/+29
| | |
* | | Start persisting runner_type when creating runnersDylan Griffith2018-04-301-0/+20
| |/ |/|
* | Introduce new ProjectCiCdSetting10244-add-project-ci-cd-settingsYorick Peterse2018-04-161-0/+34
|/ | | | | | | | | | | | | This model and the corresponding table will be used for storing settings specific to CI/CD, starting with the "group_runners_enabled" boolean. The model is called ProjectCiCdSetting and not ProjectCiCdSettings. The project exporter doesn't like plural model names as it uses "classify" which turns those into singular (so "ProjectCiCdSettings" becomes "ProjectCiCdSetting", producing an error if said class is undefined). The initial work in this commit was done by Dylan Griffith, with most of the migration work being done by Yorick Peterse.
* Merge branch 'fix/gb/reschedule-pipeline-stages-migration' into 'master'Kamil Trzciński2018-04-052-20/+38
|\ | | | | | | | | Reschedule pipeline stages migration to run it again See merge request gitlab-org/gitlab-ce!18191
| * Reschedule pipeline stages migration to run it againfix/gb/reschedule-pipeline-stages-migrationGrzegorz Bizon2018-04-052-20/+38
| |
* | Merge branch 'jej/mattermost-notification-confidentiality-10-6' into ↵Douwe Maan2018-04-052-0/+46
|/ | | | | | | | | | 'security-10-6' [10.6] Prevent notes on confidential issues from being sent to chat See merge request gitlab/gitlabhq!2366 # Conflicts: # app/helpers/services_helper.rb
* Add the RedirectRoute#path index setup_postgresqlBob Van Landuyt2018-03-281-9/+9
|
* Add index on lower path to redirect routesBob Van Landuyt2018-03-281-0/+38
| | | | | This will speed up the LIKE query in RedirectRoute.matching_path_and_descendants
* Remove `permanent` from `redirect_routes`Bob Van Landuyt2018-03-281-0/+37
| | | | | | This removes the column that was added in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15670 since we will no longer be allowing _permanent_ redirects
* Merge branch 'master' into 'latest-security-to-master-21-03-18'James Lopez2018-03-221-5/+5
|\ | | | | | | | | # Conflicts: # Gemfile # Gemfile.lock
| * Shortcut concurrent foreign key creation if already exists.ab-43887-concurrent-migration-helpersAndreas Brandl2018-03-201-5/+5
| | | | | | | | Closes #43887.
* | Merge branch 'fix/auth0-unsafe-login-10-6' into 'security-10-6'James Lopez2018-03-211-0/+25
|/ | | | | | [10.6] Fix GitLab Auth0 integration signs in the wrong user See merge request gitlab/gitlabhq!2354
* Fix concurrency issue with migration for user_interacted_projects table.ab-44205-user_interacted_projects-migrationAndreas Brandl2018-03-141-48/+94
| | | | | | | | | | | | | | | 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.
* Merge branch '43460-track-projects-a-user-contributed-to' into 'master'Yorick Peterse2018-03-071-0/+124
|\ | | | | | | | | | | | | 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-061-0/+6
| |
| * Rename to UserInteractedProjects.Andreas Brandl2018-03-061-12/+12
| | | | | | | | | | | | 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-061-1/+9
| |
| * 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.
* | Move update_head_pipeline_for_merge_request queue to pipeline_processing ↵Shinya Maeda2018-03-071-0/+15
| | | | | | | | namespace
* | Integrate two workers into one ArchiveTraceWorker with pipeline_background ↵Shinya Maeda2018-03-061-0/+13
|/ | | | queue. This queue takes loqer precedence than pipeline_default.
* Make project#namespace_id not nulldz-namespace-id-not-nullDmitriy Zaporozhets2018-03-011-0/+29
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* 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
| * Create index on id instead of stage_id in migrationGrzegorz Bizon2018-02-212-6/+6
| |
| * Separate adding and removing index from stages migrationGrzegorz Bizon2018-02-203-5/+28
| |
| * Add index before going through builds in a migrationGrzegorz Bizon2018-02-201-0/+5
| |
| * Use a helper to schedule pipeline stages migrationGrzegorz Bizon2018-02-161-5/+6
| |
| * Merge branch 'master' into 'backstage/gb/build-stages-catch-up-migration'Grzegorz Bizon2018-02-151-1/+1
| |\ | | | | | | | | | Conflicts: db/schema.rb
| * | Recover from unique constraint violation in stages migrationGrzegorz Bizon2018-02-151-1/+1
| | |
| * | Schedule pipeline stages migration every 5 minutesGrzegorz Bizon2018-02-131-5/+13
| | | | | | | | | | | | [ci skip]
| * | Move pipeline stages background migration in timeGrzegorz Bizon2018-02-121-0/+0
| | |
| * | Merge branch 'master' into backstage/gb/build-stages-catch-up-migrationGrzegorz Bizon2018-02-0912-46/+605
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | * master: (1480 commits) Conflicts: db/schema.rb
| * | | Reduce batch size of stages we schedule for a migrationGrzegorz Bizon2018-01-061-1/+1
| | | |