Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix user membership destroy relation | Francisco Javier López | 2018-01-02 | 1 | -0/+78 |
| | |||||
* | Fix PostgreSQL implementation of migrationsh-fix-mysql-migration-10-3 | Stan Hu | 2017-12-27 | 1 | -1/+1 |
| | |||||
* | Fix migration for removing orphaned issues.moved_to_id values in MySQL | Stan Hu | 2017-12-26 | 1 | -0/+25 |
| | | | | | | | | | | | | | | | According to https://dev.mysql.com/doc/refman/5.7/en/update.html, "You cannot update a table and select from the same table in a subquery." Attempting to do so results in the error: ``` Mysql2::Error: Table 'issues' is specified twice, both as a target for 'UPDATE' and as a separate source for data ``` Instead, we can use a LEFT JOIN on the same table to make MySQL do the right thing. Closes #41498 | ||||
* | Create models directly in migration specsbvl-backport-migration-spec-changes-to-ce | Bob Van Landuyt | 2017-12-12 | 1 | -6/+5 |
| | | | | | | Instead of using the factories. Since the factories might be using columns that aren't available in the schema at version the particular spec is running in. | ||||
* | Add spec for removing issues.assignee_id | Sean McGivern | 2017-12-11 | 1 | -0/+37 |
| | | | | | This migration also needs to be a post-deployment migration, as it removes a column. | ||||
* | Merge branch 'mk-add-old-attachments-to-uploads-table' into 'master' | Stan Hu | 2017-12-07 | 1 | -0/+27 |
|\ | | | | | | | | | Add old files to uploads table See merge request gitlab-org/gitlab-ce!15270 | ||||
| * | Fix specs after rebase | Michael Kozono | 2017-12-06 | 1 | -74/+0 |
| | | | | | | | | | | | | | | | | Later migrations added fields to the EE DB which were used by factories which were used in these specs. And in CE on MySQL, a single appearance row is enforced. The migration and migration specs should not depend on the codebase staying the same. | ||||
| * | Make sure empty uploads doesn’t break anything | Michael Kozono | 2017-12-04 | 1 | -1/+9 |
| | | |||||
| * | Don’t recreate deleted uploads | Michael Kozono | 2017-12-01 | 1 | -0/+9 |
| | | |||||
| * | Use bulk inserts | Michael Kozono | 2017-12-01 | 1 | -4/+4 |
| | | |||||
| * | Move temp table creation into the prepare job | Michael Kozono | 2017-12-01 | 1 | -31/+3 |
| | | | | | | | | | | * Hopefully fixes spec failures in which the table doesn’t exist * Decouples the background migration from the post-deploy migration, e.g. we could easily run it again even though the table is dropped when finished. | ||||
| * | Fix Rubocop offenses | Michael Kozono | 2017-12-01 | 1 | -1/+1 |
| | | |||||
| * | Drop temporary tracking table when finished | Michael Kozono | 2017-12-01 | 1 | -42/+42 |
| | | |||||
| * | Refactor specs | Michael Kozono | 2017-12-01 | 1 | -64/+34 |
| | | |||||
| * | Store paths relative to CarrierWave.root | Michael Kozono | 2017-12-01 | 1 | -4/+2 |
| | | | | | | | | | | | | So the path on source installs cannot be too long for our column. And fix the column length test since Route.path is limited to 255 chars, it doesn’t matter how many nested groups there are. | ||||
| * | Rename table to untracked_files_for_uploads | Michael Kozono | 2017-12-01 | 1 | -8/+8 |
| | | |||||
| * | Refactor, no change in behavior | Michael Kozono | 2017-12-01 | 1 | -12/+14 |
| | | |||||
| * | Make regexes more readable | Michael Kozono | 2017-12-01 | 1 | -2/+2 |
| | | |||||
| * | Fix Rubocop offenses | Michael Kozono | 2017-12-01 | 1 | -2/+2 |
| | | |||||
| * | Calculate checksums | Michael Kozono | 2017-12-01 | 1 | -25/+39 |
| | | | | | | | | | | | | by copy-pasting in the whole `Upload` class. Also, fix `Namespace` `model_type` (it should not be `Group`). | ||||
| * | Add untracked files to uploads | Michael Kozono | 2017-12-01 | 1 | -23/+38 |
| | | |||||
| * | Add TrackUntrackedUploads post-deploy migration | Michael Kozono | 2017-12-01 | 1 | -0/+113 |
| | | | | | | | | To create the table, and schedule the background migration that begins the work. | ||||
* | | Merge remote-tracking branch 'origin/master' into list-multiple-clusters | Matija Čupić | 2017-12-05 | 1 | -9/+30 |
|\ \ | |||||
| * | | Fix specs failures, and use factory with `:ci_job_artifact, :archive` | Kamil Trzcinski | 2017-12-03 | 1 | -1/+1 |
| | | | |||||
| * | | Fix legacy migration test | Zeger-Jan van de Weg | 2017-12-03 | 1 | -8/+29 |
| |/ | |||||
* | | Remove references of project.cluster from specs | Matija Čupić | 2017-12-04 | 1 | -2/+2 |
|/ | |||||
* | Merge branch 'bvl-delete-empty-fork-networks' into 'master' | Douwe Maan | 2017-11-17 | 1 | -0/+24 |
|\ | | | | | | | | | Delete empty fork networks See merge request gitlab-org/gitlab-ce!15373 | ||||
| * | Delete orphaned fork networks in a migrationbvl-delete-empty-fork-networks | Bob Van Landuyt | 2017-11-17 | 1 | -0/+24 |
| | | |||||
* | | Merge branch 'sh-background-migration-move-mr-diff-id' into 'master' | Sean McGivern | 2017-11-17 | 2 | -61/+64 |
|\ \ | | | | | | | | | | | | | Convert migration to populate latest merge request ID into a background migration See merge request gitlab-org/gitlab-ce!15440 | ||||
| * | | Convert migration to populate latest merge request ID into a background ↵ | Stan Hu | 2017-11-17 | 2 | -61/+64 |
| |/ | | | | | | | | | | | | | migration This is to smear updates over a few hours to avoid causing excessive replication lag as seen in https://gitlab.com/gitlab-com/infrastructure/issues/3235. | ||||
* | | De-duplicate background migration matchers defined in ↵sh-deduplicate-background-migration-specs | Stan Hu | 2017-11-16 | 2 | -32/+6 |
|/ | | | | spec/support/migrations_helpers.rb | ||||
* | Move migration file to post-migration. Use EachBatch. batch_size 1 | Shinya Maeda | 2017-11-04 | 1 | -13/+3 |
| | |||||
* | Fix MigrateGcpClustersToNewClustersArchitectures. Improve spec | Shinya Maeda | 2017-11-03 | 1 | -76/+164 |
| | |||||
* | Fix spec failure. MySQL does not bite true | Shinya Maeda | 2017-11-03 | 1 | -2/+2 |
| | |||||
* | Merge branch 'master' into refactor-clusters | Shinya Maeda | 2017-11-03 | 2 | -0/+86 |
|\ | |||||
| * | Merge branch '37631-add-a-merge_request_diff_id-column-to-merge_requests' ↵ | Yorick Peterse | 2017-11-02 | 1 | -0/+61 |
| |\ | | | | | | | | | | | | | | | | | | | into 'master' Resolve "Add a `merge_request_diff_id` column to `merge_requests`" See merge request gitlab-org/gitlab-ce!15035 | ||||
| | * | Add a column linking an MR to its diff | Sean McGivern | 2017-11-02 | 1 | -0/+61 |
| | | | | | | | | | | | | | | | | | | We already had this the other way around (merge_request_diffs.merge_request_id), but this is needed to gather only the most recent diffs for a set of merge requests. | ||||
| * | | Migrate user private tokens to personal access tokens | Douwe Maan | 2017-11-02 | 1 | -0/+25 |
| |/ | |||||
* | | Improve migration file. Add migration spec. Reorder columns of the table. | Shinya Maeda | 2017-11-01 | 1 | -0/+88 |
|/ | |||||
* | Add readme only option as project view | Annabel Dunstone Gray | 2017-10-16 | 1 | -6/+1 |
| | |||||
* | Merge branch '37552-replace-js-true-with-js' into 'master' | Rémy Coutable | 2017-10-09 | 1 | -2/+2 |
|\ | | | | | | | | | | | | | Replaces `tag: true` into `:tag` in the specs Closes #37552 See merge request gitlab-org/gitlab-ce!14653 | ||||
| * | Replaces `tag: true` into `:tag` in the specs | Jacopo | 2017-10-07 | 1 | -2/+2 |
| | | | | | | | | | | | | Replaces all the explicit include metadata syntax in the specs (tag: true) into the implicit one (:tag). Added a cop to prevent future errors and handle autocorrection. | ||||
* | | Add migration specs | Michael Kozono | 2017-10-07 | 1 | -0/+56 |
|/ | |||||
* | Add a project forks spec helper | Bob Van Landuyt | 2017-10-07 | 1 | -2/+3 |
| | | | | | The helper creates a fork of a project with all provided attributes, but skipping the creation of the repository on disk. | ||||
* | Add more specs.36829-gpg-commit-not-verified-if-signed-with-a-subkey | Rubén Dávila | 2017-10-05 | 1 | -0/+43 |
| | |||||
* | Merge branch ↵ | Rémy Coutable | 2017-09-29 | 1 | -0/+59 |
|\ | | | | | | | | | | | | | | | | | '36631-activerecord-statementinvalid-pg-querycanceled-error-canceling-statement-due-to-statement-timeout' into 'master' Insert at most 1,000 rows at once in MR diff background migration Closes #36631 et #37505 See merge request gitlab-org/gitlab-ce!13661 | ||||
| * | Reschedule merge request diff background migration36631-activerecord-statementinvalid-pg-querycanceled-error-canceling-statement-due-to-statement-timeout | Sean McGivern | 2017-09-29 | 1 | -0/+59 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | The first attempt didn't migrate all rows on GitLab.com, due to a couple of issues: 1. Some rows in merge_request_diffs had truly huge numbers of commits and diffs serialised - one in particular had 26,000 commits! 2. The jobs were sometimes on Sidekiq hosts with frequent OOM errors, leading to the job being lost. The previous commit adds more logging, and a more robust insertion method. This commit reschedules the jobs, with a generous pause between each. | ||||
* | | Fix notes type created from import | Lin Jen-Shin (godfat) | 2017-09-29 | 2 | -0/+44 |
|/ | |||||
* | Make sure all stages are migrated after a cleanupbackstage/gb/steal-stages-statuses-migration | Grzegorz Bizon | 2017-09-18 | 1 | -0/+16 |
| | |||||
* | Steal stages statuses migration | Grzegorz Bizon | 2017-09-18 | 1 | -0/+35 |
| |