Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
AgeCommit message (Collapse)Author
2019-06-21Don't show private keys for letsencrypt certsVladimir Shushlin
Adds enum certificate_source to pages_domains table with default manually_uploaded Mark certificates as 'gitlab_provided' if the were obtained through Let's Encrypt Mark certificates as 'user_provided' if they were uploaded through controller or api Only show private key in domain edit form if it is 'user_provided' Only show LetsEncrypt option if is enabled by application settings (and feature flag) Refactor and fix some specs to match new logic Don't show Let's Encrypt certificates as well
2019-06-21Merge branch 'db/update-geo-nodes-primary' into 'master'Andreas Brandl
Disallow `NULL` values for `geo_nodes.primary` column Closes gitlab-ee#12061 See merge request gitlab-org/gitlab-ce!29818
2019-06-21Merge branch '62772-migrate-managed-clusters-to-unmanaged' into 'master'Thong Kuah
Migrate managed clusters that aren't using managed features to unmanaged Closes #62772 See merge request gitlab-org/gitlab-ce!29251
2019-06-21Migrate clusters with no token to unmanagedTiger
There are clusters that have Kubernetes namespaces stored which are missing a service account token. These namespaces are unable to be used for deployments, so marking the clusters as unmanaged will allow the platform credentials to be used instead.
2019-06-20Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵Arun Kumar Mohan
db/update-geo-nodes-primary
2019-06-19Remove import columns from projects tableStan Hu
In https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21497, we migrated all project import data into a separate table, `project_import_data`. In addition, we also added: ``` ignore_column :import_status, :import_jid, :import_error ``` In https://gitlab.com/gitlab-com/gl-infra/production/issues/908, we observed some of these `import_error` columns consumed megabytes of error backtraces and caused slow loading of projects whenever a `SELECT * from projects` query loaded the row into memory. Since we have long migrated away from these columns, we can now drop these columns entirely.
2019-06-19Backport of 12014-incremental-es-wiki-updatesMario de la Ossa
Bringing in the DB migration and some light changes for CE classes
2019-06-19Disallow `NULL` values for `geo_nodes.primary` columnArun Kumar Mohan
2019-06-18Merge branch 'backport-report_approver-migration-to-ce' into 'master'Yorick Peterse
Backport approval MR rules report_type migration to CE See merge request gitlab-org/gitlab-ce!29766
2019-06-18Merge branch '57918-encrypt-feature-flags-tokens' into 'master'Kamil Trzciński
Add migrations needed to encrypt feature flags client tokens See merge request gitlab-org/gitlab-ce!29320
2019-06-18Merge branch 'mc/feature/required-template-inclusion-single-commit-ce' into ↵Grzegorz Bizon
'master' Enforce template inclusion in pipelines - CE See merge request gitlab-org/gitlab-ce!29296
2019-06-18Merge branch 'ashmckenzie/add-created-at-index-to-events' into 'master'Thong Kuah
Add index to events and audit_events tables Closes gitlab-com/Product#309 See merge request gitlab-org/gitlab-ce!29194
2019-06-18Merge branch 'migrate_k8s_service_integration' into 'master'Thong Kuah
Migrate Kubernetes service integration templates to clusters See merge request gitlab-org/gitlab-ce!28534
2019-06-18Add index to events and audit_events tablesAsh McKenzie
Index on created_at, author_id
2019-06-18Add migrations needed to encrypt feature flags client tokensKrasimir Angelov
Make plaintext token column not null, add new token_encrypted column and index on project_id & token_encrypted. Post deployment migration to encrypt existing tokens.
2019-06-18Merge branch 'issue-62685-new' into 'master'Andreas Brandl
Add index on invite-email to members See merge request gitlab-org/gitlab-ce!29768
2019-06-17Backport CE changesMatija Čupić
Backports CE changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14011/
2019-06-17Backport approval MR rules report_type migration to CELucas Charles
2019-06-17Hashed Storage is enabled by default on new installationsGabriel Mazetto
updated documentation for Geo
2019-06-17Add index on invite-email to membersyguo
2019-06-17Merge branch 'backport-schema-changes' into 'master'Robert Speicher
Backport the EE schema to CE Closes gitlab-ee#9686 See merge request gitlab-org/gitlab-ce!26940
2019-06-17CE port of IP address restriction for groupsImre Farkas
2019-06-17Backport the EE schema and migrations to CEYorick Peterse
This backports all EE schema changes to CE, including EE migrations, ensuring both use the same schema. == Updated tests A spec related to ghost and support bot users had to be modified to make it pass. The spec in question assumes that the "support_bot" column exists when defining the spec. In the single codebase setup this is not the case, as the column is backported in a later migration. Any attempt to use a different schema version or use of "around" blocks to conditionally disable specs won't help, as reverting the backport migration would also drop the "support_bot" column. Removing the "support_bot" tests entirely appears to be the only solution. We also need to update some foreign key tests now that we have backported the EE columns. Fortunately, these changes are very minor. == Backporting migrations This commit moves EE specific migrations (except those for the Geo tracking database) and related files to CE, and also removes any traces of the ee/db directory. Some migrations had to be modified or removed, as they no longer work with the schema being backported. These migrations were all quite old, so we opted for removing them where modifying them would take too much time and effort. Some old migrations were modified in EE, while also existing in CE. In these cases we took the EE code, and in one case removed them entirely. It's not worth spending time trying to merge these changes somehow as we plan to remove old migrations around the release of 12.0, see https://gitlab.com/gitlab-org/gitlab-ce/issues/59177 for more details.
2019-06-17Merge branch '58886-issue-tracker-fields' into 'master'Sean McGivern
Create models for issue trackers data See merge request gitlab-org/gitlab-ce!28598
2019-06-17CE backport for changes in EE MR 13894Luke Duncalfe
This backports to CE changes that allow the recording of the repository_type in the table lfs_objects_projects. This is in order to allow future pruning of unreferenced LFS objects, as we will need to know which repository to look in for the LFS pointer file. The EE MR that contains the original code and a full explanation of the changes is https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894 EE Issue https://gitlab.com/gitlab-org/gitlab-ee/issues/9490 Note that there was a lot of CE code changed in the EE MR because we want to allow the wiki repository to also use LFS. See https://gitlab.com/gitlab-org/gitlab-ce/issues/43721. As the wiki is an unlicensed feature, a full backport is required to enable this.
2019-06-14Merge branch '4354-lock-memberships-to-ldap-sync-part-1' into 'master'Stan Hu
EE migration port: add app-wide LDAP membership lock field See merge request gitlab-org/gitlab-ce!29302
2019-06-14Migrate project level clusters with no Kubernetes namespace to unmanagedTiger
These clusters were created before we introduced the option to manage your own cluster, and not having a Kubernetes namespace present means that we have tried and failed to create one - and therefore we cannot manage your cluster for you. The 5 minute window should prevent a race condition where a cluster has only just been created and we haven't had a chance to create any resources for it yet.
2019-06-13EE port: add app-wide LDAP membership lock fieldPavel Shutsin
2019-06-13Create models for issue trackers dataJarka Košanová
- create tables for storing issue trackers properties - add model and basic logic & spec
2019-06-13Add index on public_emails for users tableyguo
Clean up issue-62684 Update issue-62684 changelog Update down migrate for issue-62684
2019-06-12Backport of gitlab-ee!13735Rubén Dávila
2019-06-12Merge branch 'jc-migration-for-source-project-id' into 'master'Andreas Brandl
Fix null source_project_id in pool_repositories Closes gitaly#1653 See merge request gitlab-org/gitlab-ce!29157
2019-06-11Fix null source_project_id in pool_repositoriesJohn Cai
Due to a bug, some pool_repositories in production have a null source_project_id column. This migration aims to fix those rows.
2019-06-11Add db migrationMałgorzata Ksionek
2019-06-11Persist target project id and target branch in merge trains tableShinya Maeda
In order to optimize the query performance, we should use target project id and target branch intead of cross-joining merge_requests table. Fix schema Fix schema
2019-06-10Avoid DB timeouts when scheduling migrationsOswaldo Ferreira
2019-06-09Revert "Merge branch '50070-legacy-attachments' into 'master'"Stan Hu
This reverts commit fd19f887dfeeeedb483c4a4fb32f9f768e89389c, reversing changes made to abb2d4c601d796339c8d7cb0c00946696730f198.
2019-06-07Merge branch '62418-project-default-git-depth' into 'master'Kamil Trzciński
Add project level git depth setting Closes #59688 See merge request gitlab-org/gitlab-ce!28919
2019-06-07Merge branch '50070-legacy-attachments' into 'master'Kamil Trzciński
Migrate legacy uploads Closes #57217 See merge request gitlab-org/gitlab-ce!24679
2019-06-06Add certificate valid time to pages domain tableVladimir Shushlin
Save certificate validity time for pages domains on save Fill validity time for existing pages domains in background migration
2019-06-06Add pages domains acme ordersVladimir Shushlin
Extract acme double to helper Create ACME challanges for pages domains * Create order & challange through API * save them to database * request challenge validation We're saving order and challenge as one entity, that wouldn't be correct if we would order certificates for several domains simultaneously, but we always order certificate per domain Add controller for processing acme challenges redirected from pages Don't save acme challenge url - we don't use it Validate acme challenge attributes Encrypt private_key in acme orders
2019-06-06Revert "Merge branch 'pages-domain_ssl-valid-period' into 'master'"Nick Thomas
This reverts merge request !28743
2019-06-06Migrate legacy uploads to the project locationJarka Košanová
Uploads coming from AttachmentUploader need to be moved to the currently supported location (FileUploader)
2019-06-06Add certificate valid time to pages domain tableVladimir Shushlin
Save certificate validity time for pages domains on save Fill validity time for existing pages domains in background migration
2019-06-06Add project level git depth settingKrasimir Angelov
Introduce default_git_depth in project's CI/CD settings and set it to 50. Use it if there is no GIT_DEPTH variable specified. Apply this default only to newly created projects and keep it nil for old ones in order to not break pipelines that rely on non-shallow clones. default_git_depth can be updated from CI/CD Settings in the UI, must be either nil or integer between 0 and 1000 (incl). Inherit default_git_depth from the origin project when forking projects. MR pipelines are run on a MR ref (refs/merge-requests/:iid/merge) and it contains unique commit (i.e. merge commit) which doesn't exist in the other branch/tags refs. We need to add it cause otherwise it may break pipelines for old projects that have already enabled Pipelines for merge results and have git depth 0. Document new default_git_depth project CI/CD setting
2019-06-03Merge dev.gitlab.org master into GitLab.com masterYorick Peterse
2019-06-02Fix migration failure when groups are missing routeStan Hu
When a Group is missing a route, the migration failed previously with a `Invalid single-table inheritance type` error. To fix this, we can disable STI for the migration class because we don't need to know about the type to do this migration. Besides, currently Group is the only type used in the type column. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58714
2019-05-31Merge branch 'osw-reset-merge-status-from-mergeable-mrs' into 'master'Douglas Barbosa Alexandre
Reset merge status from mergeable MRs See merge request gitlab-org/gitlab-ce!28843
2019-05-31Reset merge status from mergeable MRsOswaldo Ferreira
Adds migrations to reset the merge_status of opened, mergeable MRs. That's required by https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28513 so we're able to sync the status update along merge-ref, without leaving MRs with a stale merge-ref.
2019-05-31Merge branch '56959-drop-project_auto_devops_domain' into 'master'Robert Speicher
Removes project_auto_devops#domain column Closes #56959 See merge request gitlab-org/gitlab-ce!28574