mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-23 00:45:28 +00:00
Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
@ -220,7 +220,6 @@ export default {
|
||||
'app/assets/javascripts/token_access/components/token_permissions.vue',
|
||||
'app/assets/javascripts/usage_quotas/components/search_and_sort_bar/search_and_sort_bar.vue',
|
||||
'app/assets/javascripts/user_lists/components/user_lists.vue',
|
||||
'app/assets/javascripts/webhooks/components/form_custom_header_item.vue',
|
||||
'app/assets/javascripts/wikis/components/wiki_content.vue',
|
||||
'app/assets/javascripts/wikis/components/wiki_form.vue',
|
||||
'app/assets/javascripts/wikis/wiki_notes/components/placeholder_note.vue',
|
||||
|
@ -1 +1 @@
|
||||
a1bcfea2e0377e844df072e9143b05f52f846723
|
||||
86a2c426295d105b55455cd694e6929e4bce1d98
|
||||
|
@ -1 +1 @@
|
||||
1ed908c7dd2f4daef8f29d9f88461b81d16559ea
|
||||
5a16392c66524f6e4f2745a85d24cdaad3e2b777
|
||||
|
@ -1,5 +1,4 @@
|
||||
<script>
|
||||
import { isEmpty } from 'lodash';
|
||||
import { GlButton, GlFormGroup, GlFormInput, GlTooltipDirective } from '@gitlab/ui';
|
||||
import { __, s__ } from '~/locale';
|
||||
import { MASK_ITEM_VALUE_HIDDEN } from '../constants';
|
||||
@ -57,7 +56,6 @@ export default {
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
isEmpty,
|
||||
s__,
|
||||
},
|
||||
i18n: {
|
||||
|
@ -1,6 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class DeploymentCluster < ApplicationRecord
|
||||
include IgnorableColumns
|
||||
|
||||
ignore_column :deployment_id_convert_to_bigint, :cluster_id_convert_to_bigint,
|
||||
remove_with: '18.3', remove_after: '2025-09-01'
|
||||
|
||||
belongs_to :deployment, optional: false
|
||||
belongs_to :cluster, optional: false, class_name: 'Clusters::Cluster'
|
||||
end
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class CreateAuditEventsInstanceStreamingEventTypeFilters < Gitlab::Database::Migration[2.2]
|
||||
milestone '16.11'
|
||||
enable_lock_retries!
|
||||
|
||||
INDEX_NAME = 'uniq_audit_instance_event_filters_destination_id_and_event_type'
|
||||
|
||||
|
@ -1,8 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateCiBuildNamesTable < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
|
||||
milestone '16.11'
|
||||
|
||||
PRIMARY_KEY = [:build_id, :partition_id]
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddSearchVectorToPCiBuildNames < Gitlab::Database::Migration[2.2]
|
||||
milestone '16.11'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def up
|
||||
execute <<~SQL
|
||||
ALTER TABLE p_ci_build_names
|
||||
|
@ -3,8 +3,6 @@
|
||||
class CreatePartitionsForPCiBuildNames < Gitlab::Database::Migration[2.2]
|
||||
milestone '16.11'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def up
|
||||
connection.execute(<<~SQL)
|
||||
LOCK TABLE p_ci_builds IN SHARE ROW EXCLUSIVE MODE;
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddCustomHeadersToWebHook < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '16.11'
|
||||
|
||||
def change
|
||||
|
@ -3,7 +3,6 @@
|
||||
class AddContainerScanningForRegistryToggleToSecurityProjectSettings < Gitlab::Database::Migration[2.2]
|
||||
milestone '16.11'
|
||||
|
||||
enable_lock_retries!
|
||||
TABLE_NAME = :project_security_settings
|
||||
COLUMN_NAME = :container_scanning_for_registry_enabled
|
||||
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddTrialToSubscriptionAddOnPurchases < Gitlab::Database::Migration[2.2]
|
||||
milestone '16.11'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :subscription_add_on_purchases, :trial, :boolean, default: false, null: false
|
||||
end
|
||||
|
@ -1,8 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateProjectSavedRepliesTable < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
|
||||
milestone '16.11'
|
||||
|
||||
def change
|
||||
|
@ -3,7 +3,6 @@
|
||||
class AddPreReceiveSecretDetectionEnabledToProjectSecuritySettings < Gitlab::Database::Migration[2.2]
|
||||
milestone '16.11'
|
||||
|
||||
enable_lock_retries!
|
||||
TABLE_NAME = :project_security_settings
|
||||
COLUMN_NAME = :pre_receive_secret_detection_enabled
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddZoektSettingsToApplicationSettings < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '16.11'
|
||||
|
||||
def change
|
||||
|
@ -1,8 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddOverrideChangesRequestedToMergeRequest < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
|
||||
milestone '16.11'
|
||||
|
||||
def change
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class CreateAuditEventsStreamingInstanceNamespaceFilters < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.0'
|
||||
enable_lock_retries!
|
||||
|
||||
UNIQ_INDEX_NAME = 'uniq_idx_streaming_destination_id_and_namespace_id'
|
||||
NAMESPACE_INDEX_NAME = 'idx_streaming_instance_namespace_filters_on_namespace_id'
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddFallbackBehaviorToScanResultPolicyReads < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '16.11'
|
||||
|
||||
def change
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddEarlyAccessProgramParticipantToUserPreferences < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.0'
|
||||
|
||||
def up
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateEarlyAccessProgramTrackingEvents < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.0'
|
||||
|
||||
def up
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddSendBotMessageToPolicies < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.0'
|
||||
|
||||
def change
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddImportersToApplicationSettings < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.0'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :application_settings, :importers, :jsonb, default: {}, null: false
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddTicketsConfidentialByDefaultToServiceDeskSettings < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.0'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :service_desk_settings, :tickets_confidential_by_default, :boolean, default: true, null: false
|
||||
end
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class CreateAuditEventsStreamingGroupNamespaceFilters < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.0'
|
||||
enable_lock_retries!
|
||||
|
||||
UNIQ_INDEX_NAME = 'uniq_idx_streaming_group_destination_id_and_namespace_id'
|
||||
NAMESPACE_INDEX_NAME = 'idx_streaming_group_namespace_filters_on_namespace_id'
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddRunnerOwnerNamespaceIdColumnToCiRunningBuilds < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.0'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def up
|
||||
add_column :ci_running_builds, :runner_owner_namespace_xid, :bigint, null: true
|
||||
end
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateCustomSoftwareLicensesTable < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.0'
|
||||
|
||||
def up
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class CreateUserAuditEvents < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.1'
|
||||
enable_lock_retries!
|
||||
|
||||
AUTHOR_ID_CREATED_AT_ID_INDEX = 'idx_user_audit_events_on_author_id_created_at_id'
|
||||
USER_ID_AUTHOR_ID_CREATED_AT_ID_INDEX = 'idx_user_audit_events_on_user_id_author_created_at_id'
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class CreateGroupAuditEvents < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.1'
|
||||
enable_lock_retries!
|
||||
|
||||
AUTHOR_ID_CREATED_AT_ID_INDEX = 'idx_group_audit_events_on_author_id_created_at_id'
|
||||
GROUP_ID_AUTHOR_ID_CREATED_AT_ID_INDEX = 'idx_group_audit_events_on_group_id_author_created_at_id'
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class CreateProjectAuditEvents < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.1'
|
||||
enable_lock_retries!
|
||||
|
||||
AUTHOR_ID_CREATED_AT_ID_INDEX = 'idx_project_audit_events_on_author_id_created_at_id'
|
||||
PROJECT_ID_AUTHOR_ID_CREATED_AT_ID_INDEX = 'idx_project_audit_events_on_project_id_author_created_at_id'
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class CreateInstanceAuditEvents < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.1'
|
||||
enable_lock_retries!
|
||||
|
||||
AUTHOR_ID_CREATED_AT_ID_INDEX = 'idx_instance_audit_events_on_author_id_created_at_id'
|
||||
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddMetadataToMemberApprovals < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.1'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :member_approvals, :metadata, :jsonb, default: {}, null: false
|
||||
|
@ -5,8 +5,6 @@ class AddOrganizationIdToSubscriptionAddOnPurchases < Gitlab::Database::Migratio
|
||||
|
||||
DEFAULT_ORGANIZATION_ID = 1
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :subscription_add_on_purchases, :organization_id, :bigint, default: DEFAULT_ORGANIZATION_ID, null: false
|
||||
end
|
||||
|
@ -3,8 +3,6 @@
|
||||
class CreatePartitionsForPCiBuildSources < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.1'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def up
|
||||
connection.execute(<<~SQL)
|
||||
LOCK TABLE p_ci_builds IN SHARE ROW EXCLUSIVE MODE;
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddApprovalPolicyRuleIdToApprovalGroupRules < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.1'
|
||||
|
||||
def up
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddApprovalPolicyRuleIdToApprovalProjectRules < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.1'
|
||||
|
||||
def up
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddApprovalPolicyRuleIdToApprovalMergeRequestRules < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.1'
|
||||
|
||||
def up
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddApprovalPolicyRuleIdToSoftwareLicensePolicies < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.1'
|
||||
|
||||
def up
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddApprovalPolicyRuleIdToScanResultPolicyViolations < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.1'
|
||||
|
||||
def up
|
||||
|
@ -5,8 +5,6 @@ class AddOrganizationIdToSnippets < Gitlab::Database::Migration[2.2]
|
||||
|
||||
milestone '17.2'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :snippets, :organization_id, :bigint, default: DEFAULT_ORGANIZATION_ID, null: true
|
||||
end
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddMemberRoleIdToLdapGroupLinks < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.1'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :ldap_group_links, :member_role_id, :bigint
|
||||
|
@ -3,8 +3,6 @@
|
||||
class CreateImportSourceUserPlaceholderReference < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.2'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
INDEX_NAME = 'index_import_source_user_placeholder_references_on_source_user_'
|
||||
|
||||
def change
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddMemberRoleIdToGroupGroupLinks < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.3'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :group_group_links, :member_role_id, :bigint, if_not_exists: true
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddUploadedByUserIdToUploads < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.2'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :uploads, :uploaded_by_user_id, :bigint
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class UpdateScheduledScansMaxConcurrencyInApplicationSettingsForSelfManaged < Gitlab::Database::Migration[2.2]
|
||||
restrict_gitlab_migration gitlab_schema: :gitlab_main
|
||||
enable_lock_retries!
|
||||
|
||||
milestone '17.2'
|
||||
|
||||
|
@ -5,8 +5,6 @@ class AddWorkItemsDatesSourcesSyncToIssuesTrigger < Gitlab::Database::Migration[
|
||||
|
||||
include Gitlab::Database::SchemaHelpers
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
WORK_ITEM_DATES_SOURCE_TABLE_NAME = 'work_item_dates_sources'
|
||||
|
||||
TRIGGER_FUNCTION_NAME = 'sync_issues_dates_with_work_item_dates_sources'
|
||||
|
@ -3,8 +3,6 @@
|
||||
class CreateTablePCiBuildTags < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.3'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
OPTIONS = {
|
||||
if_not_exists: true,
|
||||
options: 'PARTITION BY LIST (partition_id)',
|
||||
|
@ -5,8 +5,6 @@ class EnsureUniqueIdForPCiBuildTags < Gitlab::Database::Migration[2.2]
|
||||
|
||||
milestone '17.3'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
TABLE_NAME = :p_ci_build_tags
|
||||
SEQ_NAME = :p_ci_build_tags_id_seq
|
||||
|
||||
|
@ -3,8 +3,6 @@
|
||||
class CreatePartitionsForPCiBuildTags < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.3'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def up
|
||||
connection.execute(<<~SQL)
|
||||
LOCK TABLE p_ci_builds IN SHARE ROW EXCLUSIVE MODE;
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddLastAccessFromPiplCountryAtToUsers < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.3'
|
||||
enable_lock_retries!
|
||||
|
||||
# This column prevents additional queries (e.g. 'SELECT ... FROM
|
||||
# country_access_logs ...') when checking if the user's access from a specific
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddEncryptedSharedSecretToExternalStatusChecks < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.3'
|
||||
|
||||
def change
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddPlanIdToCiPendingBuilds < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.4'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :ci_pending_builds, :plan_id, :integer, null: true
|
||||
end
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddAllowedPlanIdsToCiRunners < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.4'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :ci_runners, :allowed_plan_ids, :integer, array: true, null: false, default: []
|
||||
end
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddProjectIdToPackagesDependencies < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.3'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :packages_dependencies, :project_id, :bigint
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddDisablePasswordAuthenticationForEnterpriseUsersToSamlProviders < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.4'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :saml_providers, :disable_password_authentication_for_enterprise_users, :boolean, default: false
|
||||
end
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AllowNullForUpstreamIdInVirtualRegistriesPackagesMavenCachedResponses < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.4'
|
||||
|
||||
def change
|
||||
|
@ -1,8 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateImportMemberPlaceholderReferences < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
|
||||
milestone '17.4'
|
||||
|
||||
def change
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AllowTopLevelGroupOwnersToCreateServiceAccounts < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.5'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :application_settings,
|
||||
:allow_top_level_group_owners_to_create_service_accounts,
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddObservabilityBackendSslVerificationEnabledToApplicationSettings < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.4'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :application_settings, :observability_backend_ssl_verification_enabled, :boolean, null: false,
|
||||
default: true
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddSppRepositoryPipelineAccessToProjectSettings < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.4'
|
||||
|
||||
def change
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class ChangeTimeEstimateDefaultFromNullToZeroOnIssues < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.4'
|
||||
enable_lock_retries!
|
||||
|
||||
TABLE_NAME = :issues
|
||||
COLUMN_NAME = :time_estimate
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class ChangeTimeEstimateDefaultFromNullToZeroOnMergeRequests < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.4'
|
||||
enable_lock_retries!
|
||||
|
||||
TABLE_NAME = :merge_requests
|
||||
COLUMN_NAME = :time_estimate
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddSppRepositoryPipelineAccessCascadingSetting < Gitlab::Database::Migration[2.2]
|
||||
include Gitlab::Database::MigrationHelpers::CascadingNamespaceSettings
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
milestone '17.4'
|
||||
|
||||
def up
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddPolicyActionLimitApplicationSetting < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.4'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :application_settings, :security_policies, :jsonb, default: {}, null: false
|
||||
end
|
||||
|
@ -4,8 +4,6 @@
|
||||
# for more information on how to write migrations for GitLab.
|
||||
|
||||
class CreateWikiPageUserMentions < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
|
||||
milestone '17.5'
|
||||
|
||||
def up
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddShardingKeyIdToCiRunners < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.5'
|
||||
enable_lock_retries!
|
||||
|
||||
def up
|
||||
add_column :ci_runners, :sharding_key_id, :bigint, null: true, if_not_exists: true
|
||||
|
@ -3,8 +3,6 @@
|
||||
class CreateCatalogResourceComponentLastUsagesTable < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.6'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
CATALOG_RESOURCE_INDEX_NAME = 'idx_cpmt_last_usages_on_catalog_resource_id'
|
||||
UNIQUE_INDEX_NAME = 'idx_usages_on_cmpt_used_by_project_cmpt_and_last_used_date'
|
||||
PROJECT_INDEX_NAME = 'idx_catalog_resource_cpmt_last_usages_on_cpmt_project_id'
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddMetadataToZoektIndices < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.6'
|
||||
|
||||
def change
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddPolicyTuningToPolicies < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.6'
|
||||
|
||||
def change
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddResourceUsageLimitsToApplicationSettings < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.7'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :application_settings, :resource_usage_limits, :jsonb, default: {}, null: false
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddAllowListIntegrationsSettingsToApplicationSettings < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.6'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :application_settings, :integrations, :jsonb, default: {}, null: false
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddUserSeatManagementToApplicationSettings < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.6'
|
||||
|
||||
def change
|
||||
|
@ -3,8 +3,6 @@
|
||||
class UpdateSeatControlInApplicationSettings < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.7'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
restrict_gitlab_migration gitlab_schema: :gitlab_main
|
||||
|
||||
def up
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddMemberRoleIdToProjectGroupLinks < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.7'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :project_group_links, :member_role_id, :bigint, if_not_exists: true
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddApprovalPolicyActionIdxToApprovalProjectRules < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.7'
|
||||
|
||||
def change
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddApprovalPolicyActionIdxToApprovalMergeRequestRules < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.7'
|
||||
|
||||
def change
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddActionIdxToScanResultPolicies < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.7'
|
||||
|
||||
def change
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddCustomRolesToScanResultPolicies < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.7'
|
||||
|
||||
def change
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddVulnerabilityEventsToWebHooks < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.7'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :web_hooks, :vulnerability_events, :boolean, null: false, default: false
|
||||
end
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddExtendedGratExpiryWebhookExecuteToNamespaceSettings < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.9'
|
||||
|
||||
def change
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddExtendedPratExpiryWebhookExecuteToProjectSettings < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.9'
|
||||
|
||||
def change
|
||||
|
@ -1,7 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AddO11ySettingsToApplicationSettings < Gitlab::Database::Migration[2.2]
|
||||
enable_lock_retries!
|
||||
milestone '17.8'
|
||||
|
||||
def change
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddVSCodeExtensionMarketplaceToApplicationSetting < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.9'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :application_settings, :vscode_extension_marketplace, :jsonb, default: {}, null: false
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddOrganizationIdToForkNetworks < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.10'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :fork_networks, :organization_id, :bigint, null: true
|
||||
end
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddJobTokenPoliciesEnabledColumnToNamespaceSettings < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.11'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :namespace_settings, :job_token_policies_enabled, :boolean, default: false, null: false
|
||||
|
@ -3,8 +3,6 @@
|
||||
class AddSecurityPoliciesNamespaceSetting < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.11'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :namespace_settings, :security_policies, :jsonb, default: {}, null: false
|
||||
end
|
||||
|
@ -4,7 +4,6 @@ class AddOrganizationIdToSubscriptionSeatAssignments < Gitlab::Database::Migrati
|
||||
milestone '17.11'
|
||||
|
||||
DEFAULT_ORGANIZATION_ID = 1
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :subscription_seat_assignments, :organization_id, :bigint, default: DEFAULT_ORGANIZATION_ID, null: false
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class AddMemberApprovalEventsToWebHooks < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.11'
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
add_column :web_hooks, :member_approval_events, :boolean, null: false, default: false
|
||||
|
@ -0,0 +1,17 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class InitializeConversionOfDeploymentClustersToBigint < Gitlab::Database::Migration[2.3]
|
||||
disable_ddl_transaction!
|
||||
milestone '18.2'
|
||||
|
||||
TABLE = :deployment_clusters
|
||||
COLUMNS = %i[deployment_id cluster_id]
|
||||
|
||||
def up
|
||||
initialize_conversion_of_integer_to_bigint(TABLE, COLUMNS)
|
||||
end
|
||||
|
||||
def down
|
||||
revert_initialize_conversion_of_integer_to_bigint(TABLE, COLUMNS)
|
||||
end
|
||||
end
|
@ -2,7 +2,6 @@
|
||||
|
||||
class ChangeApprovalMergeRequestRulesVulnerabilityStatesDefault < Gitlab::Database::Migration[2.2]
|
||||
milestone '16.9'
|
||||
enable_lock_retries!
|
||||
|
||||
def up
|
||||
change_column_default('approval_merge_request_rules', 'vulnerability_states', from: ['newly_detected'],
|
||||
|
@ -3,8 +3,6 @@
|
||||
class ChangeApprovalProjectRulesVulnerabilityStatesDefault < Gitlab::Database::Migration[2.2]
|
||||
milestone '16.9'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def up
|
||||
change_column_default('approval_project_rules', 'vulnerability_states', from: ['newly_detected'],
|
||||
to: %w[new_needs_triage new_dismissed])
|
||||
|
@ -3,8 +3,6 @@
|
||||
class DropPromoteUltimateFeaturesAtColumn < Gitlab::Database::Migration[2.2]
|
||||
milestone '16.11'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def change
|
||||
remove_column :onboarding_progresses, :promote_ultimate_features_at, :datetime_with_timezone
|
||||
end
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class DropExternalApprovalRulesProtectedBranchesTable < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.0'
|
||||
enable_lock_retries!
|
||||
|
||||
def up
|
||||
drop_table :external_approval_rules_protected_branches
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
class CleanupBigintConversionsForCiPipelines < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.1'
|
||||
enable_lock_retries!
|
||||
|
||||
TABLE = :ci_pipelines
|
||||
COLUMNS = %i[id]
|
||||
|
@ -4,7 +4,6 @@ class EnsureIdUniquenessForPCiBuildsExecutionConfigs < Gitlab::Database::Migrati
|
||||
include Gitlab::Database::PartitioningMigrationHelpers::UniquenessHelpers
|
||||
|
||||
milestone '17.1'
|
||||
enable_lock_retries!
|
||||
|
||||
TABLE_NAME = :p_ci_builds_execution_configs
|
||||
SEQ_NAME = :p_ci_builds_execution_configs_id_seq
|
||||
|
@ -3,8 +3,6 @@
|
||||
class ChangeProjectsOrganizationIdDefault < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.1'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
def up
|
||||
change_column_default(:projects, :organization_id, nil)
|
||||
end
|
||||
|
@ -3,8 +3,6 @@
|
||||
class DropTokenWithIvsTable < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.5'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
TABLE_NAME = :token_with_ivs
|
||||
|
||||
def up
|
||||
|
@ -5,8 +5,6 @@ class CleanupBigintConversionsForPCiBuildsAttempt2 < Gitlab::Database::Migration
|
||||
|
||||
milestone '17.3'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
TABLE_NAME = :p_ci_builds
|
||||
TRIGGER_NAME = :trigger_10ee1357e825
|
||||
COLUMN_NAMES = %i[
|
||||
|
@ -3,8 +3,6 @@
|
||||
class CleanupBigintConversionForMergeRequestsHeadPipelineId < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.3'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
TABLE = :merge_requests
|
||||
COLUMNS = [:head_pipeline_id]
|
||||
|
||||
|
@ -3,8 +3,6 @@
|
||||
class CleanupBigintConversionForMergeRequestMetricsPipelineId < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.3'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
TABLE = :merge_request_metrics
|
||||
COLUMNS = [:pipeline_id]
|
||||
|
||||
|
@ -3,8 +3,6 @@
|
||||
class CleanupBigintConversionForMergeTrainsPipelineId < Gitlab::Database::Migration[2.2]
|
||||
milestone '17.3'
|
||||
|
||||
enable_lock_retries!
|
||||
|
||||
TABLE = :merge_trains
|
||||
COLUMNS = [:pipeline_id]
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user