summaryrefslogtreecommitdiff
path: root/spec/migrations
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-071-0/+30
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-01-061-0/+54
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-201-0/+19
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-171-0/+67
|
* Add latest changes from gitlab-org/gitlab@masterogolowinski-master-patch-80898GitLab Bot2019-12-161-0/+30
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-101-0/+137
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-12-021-0/+50
|
* Encrypt application settings with pre and post deploymentsArturo Herrero2019-11-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | We had concerns about the cached values on Redis with the previous two releases strategy: First release (this commit): - Create new encrypted fields in the database. - Start populating new encrypted fields, read the encrypted fields or fallback to the plaintext fields. - Backfill the data removing the plaintext fields to the encrypted fields. Second release: - Remove the virtual attribute (created in step 2). - Drop plaintext columns from the database (empty columns after step 3). We end up with a better strategy only using migration scripts in one release: - Pre-deployment migration: Add columns required for storing encrypted values. - Pre-deployment migration: Store the encrypted values in the new columns. - Post-deployment migration: Remove the old unencrypted columns
* Encrypt application setting tokensArturo Herrero2019-11-261-0/+58
| | | | | | | | | | | | | | This is the plan to encrypt the plaintext tokens: First release (this commit): 1. Create new encrypted fields in the database. 2. Start populating new encrypted fields, read the encrypted fields or fallback to the plaintext fields. 3. Backfill the data removing the plaintext fields to the encrypted fields. Second release: 4. Remove the virtual attribute (created in step 2). 5. Drop plaintext columns from the database (empty columns after step 3).
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-211-0/+56
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-191-0/+33
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-131-145/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-121-0/+37
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-111-0/+34
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-11-081-0/+39
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-301-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-301-0/+55
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-241-0/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-231-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-2310-14/+14
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-221-0/+143
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-2237-0/+74
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-101-0/+29
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-091-0/+63
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-301-0/+57
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-261-73/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-241-0/+73
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-241-137/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-191-0/+37
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-181-63/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-181-3/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-171-0/+63
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-171-39/+0
|
* Create self-monitoring project in background migrationReuben Pereira2019-09-121-213/+0
| | | | | - A regular migration caused problems such as https://gitlab.com/charts/gitlab/issues/1565.
* Change discussion_ids on promoted epics notesAlexandru Croitor2019-09-111-0/+81
| | | | | | Notes on epics promoted from an issue used to get same discussion_id as the notes from the issue the epic was promoted from, which would cause problems when trying to reply to the epic discussion.
* Added EncryptDeployTokensTokens spec fileEtienne BaquƩ2019-08-261-0/+47
|
* Add a link to docs in project descriptionReuben Pereira2019-08-231-0/+252
| | | | Add to the service and migration both.
* Migrations for adding issue_id to versions tableLuke Duncalfe2019-07-291-0/+38
| | | | | | | | | | | | | | These migrations do the following: - Adds a new `issue_id` column to `versions`. This fixes an n+1 problem when loading versions for an issue in GraphQL as AR can now load from cache - Change the unique restraint on versions.sha to be scoped to `issue_id` as in order to import version data, we need to allow duplicate `sha` values for versions - Update all versions with an `issue_id` https://gitlab.com/gitlab-org/gitlab-ee/issues/11090
* Add default for outbound_local_requests_whitelistThong Kuah2019-07-251-0/+21
| | | | It needs to default to an empty array logically.
* Fix wrong pages access level defaultVladimir Shushlin2019-07-171-0/+97
| | | | | - Set access level in before_validation hook - Add post migration for updating existing project_features
* Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-121-1/+1
| | | | Updates changed method names and fixes spec failures
* Change occurrence of Sidekiq::Testing.inline!Reuben Pereira2019-07-031-1/+1
| | | | - Change it to perform_enqueued_jobs
* Merge branch '44990-remove-old-i' into 'master'Nick Thomas2019-07-031-21/+0
|\ | | | | | | | | Remove old migration specs that violate FactoriesInMigrationSpecs See merge request gitlab-org/gitlab-ce!30280
| * Remove old migrations and specs44990-remove-old-iHeinrich Lee Yu2019-07-031-21/+0
| | | | | | | | | | This removes old migrations that violate the FactoriesinMigrationSpecs cop
* | Show upcoming status for releasesJason Goodman2019-07-031-0/+28
|/ | | | | | Add released_at field to releases API Add released_at column to releases table Return releases to the API sorted by released_at
* Remove migration specs from 201[4567]Nick Thomas2019-07-0246-2948/+0
| | | | Since the migrations are gone, we don't need these specs either
* Prevent EE backport migrations from running if CE is not migratedsh-recover-ee-schema-backport-migration-failureStan Hu2019-06-251-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a user upgraded to any GitLab 11.x EE version but switched back to CE, it's possible the state of the EE tables are not in the right state for the EE backport migration to work properly. In particular, there were three tables that had trouble: * epics * geo_event_log * vulnerability_feedback The EE backport migration would fail while trying to add foreign key constraints because a key didn't exist in the table. This happens because any EE migration that add or removed columns between v11.0.0 and v11.11.3 are not guaranteed to be applied in an CE installation. The EE backport schema does not individually backport these migrations. We now check if certain columns are present to determine whether the backport migration is in the proper state. CE users are required to upgrade to v11.11.3 EE if they ever installed EE previously before they can go back to v12.x CE. Tested via: ``` git checkout -f v11.0.0-ee bundle exec rake db:reset git checkout .; git checkout -f v11.11.3 bundle exec rake db:migrate git checkout .; git checkout -f v12.0.0 bundle exec rake db:migrate <failure happens> ```
* Merge branch 'sync-merge-ref-upon-mergeability-check' into 'master'Douwe Maan2019-06-241-0/+52
|\ | | | | | | | | Automatically update MR merge-ref along merge status See merge request gitlab-org/gitlab-ce!29569
| * Automatically update MR merge-ref along merge statusOswaldo Ferreira2019-06-201-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | This couples the code that transitions the `MergeRequest#merge_status` and refs/merge-requests/:iid/merge ref update. In general, instead of directly telling `MergeToRefService` to update the merge ref, we should rely on `MergeabilityCheckService` to keep both the merge status and merge ref synced. Now, if the merge_status is `can_be_merged` it means the merge-ref is also updated to the latest. We've also updated the logic to be more systematic and less user-based.
* | Merge branch '62772-migrate-managed-clusters-to-unmanaged' into 'master'Thong Kuah2019-06-211-0/+55
|\ \ | | | | | | | | | | | | | | | | | | Migrate managed clusters that aren't using managed features to unmanaged Closes #62772 See merge request gitlab-org/gitlab-ce!29251