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
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/docs/abuse_reports.yml1
-rw-r--r--db/docs/achievements.yml10
-rw-r--r--db/docs/agent_activity_events.yml1
-rw-r--r--db/docs/agent_group_authorizations.yml1
-rw-r--r--db/docs/agent_project_authorizations.yml1
-rw-r--r--db/docs/alert_management_alert_assignees.yml1
-rw-r--r--db/docs/alert_management_alert_metric_images.yml1
-rw-r--r--db/docs/alert_management_alert_user_mentions.yml1
-rw-r--r--db/docs/alert_management_alerts.yml1
-rw-r--r--db/docs/alert_management_http_integrations.yml1
-rw-r--r--db/docs/allowed_email_domains.yml1
-rw-r--r--db/docs/analytics_cycle_analytics_aggregations.yml1
-rw-r--r--db/docs/analytics_cycle_analytics_group_stages.yml1
-rw-r--r--db/docs/analytics_cycle_analytics_group_value_streams.yml1
-rw-r--r--db/docs/analytics_cycle_analytics_issue_stage_events.yml1
-rw-r--r--db/docs/analytics_cycle_analytics_merge_request_stage_events.yml1
-rw-r--r--db/docs/analytics_cycle_analytics_project_stages.yml1
-rw-r--r--db/docs/analytics_cycle_analytics_project_value_streams.yml1
-rw-r--r--db/docs/analytics_cycle_analytics_stage_event_hashes.yml1
-rw-r--r--db/docs/analytics_devops_adoption_segments.yml1
-rw-r--r--db/docs/analytics_devops_adoption_snapshots.yml1
-rw-r--r--db/docs/analytics_language_trend_repository_languages.yml1
-rw-r--r--db/docs/analytics_usage_trends_measurements.yml1
-rw-r--r--db/docs/appearances.yml1
-rw-r--r--db/docs/application_setting_terms.yml1
-rw-r--r--db/docs/application_settings.yml1
-rw-r--r--db/docs/approval_merge_request_rule_sources.yml1
-rw-r--r--db/docs/approval_merge_request_rules.yml1
-rw-r--r--db/docs/approval_merge_request_rules_approved_approvers.yml1
-rw-r--r--db/docs/approval_merge_request_rules_groups.yml1
-rw-r--r--db/docs/approval_merge_request_rules_users.yml1
-rw-r--r--db/docs/approval_project_rules.yml1
-rw-r--r--db/docs/approval_project_rules_groups.yml1
-rw-r--r--db/docs/approval_project_rules_protected_branches.yml1
-rw-r--r--db/docs/approval_project_rules_users.yml1
-rw-r--r--db/docs/approvals.yml1
-rw-r--r--db/docs/approver_groups.yml1
-rw-r--r--db/docs/approvers.yml1
-rw-r--r--db/docs/ar_internal_metadata.yml1
-rw-r--r--db/docs/atlassian_identities.yml1
-rw-r--r--db/docs/audit_events.yml1
-rw-r--r--db/docs/audit_events_external_audit_event_destinations.yml1
-rw-r--r--db/docs/audit_events_streaming_event_type_filters.yml1
-rw-r--r--db/docs/audit_events_streaming_headers.yml1
-rw-r--r--db/docs/authentication_events.yml1
-rw-r--r--db/docs/award_emoji.yml1
-rw-r--r--db/docs/aws_roles.yml1
-rw-r--r--db/docs/background_migration_jobs.yml1
-rw-r--r--db/docs/badges.yml1
-rw-r--r--db/docs/banned_users.yml1
-rw-r--r--db/docs/batched_background_migration_job_transition_logs.yml1
-rw-r--r--db/docs/batched_background_migration_jobs.yml1
-rw-r--r--db/docs/batched_background_migrations.yml1
-rw-r--r--db/docs/board_assignees.yml1
-rw-r--r--db/docs/board_group_recent_visits.yml1
-rw-r--r--db/docs/board_labels.yml1
-rw-r--r--db/docs/board_project_recent_visits.yml1
-rw-r--r--db/docs/board_user_preferences.yml1
-rw-r--r--db/docs/boards.yml1
-rw-r--r--db/docs/boards_epic_board_labels.yml1
-rw-r--r--db/docs/boards_epic_board_positions.yml1
-rw-r--r--db/docs/boards_epic_board_recent_visits.yml1
-rw-r--r--db/docs/boards_epic_boards.yml1
-rw-r--r--db/docs/boards_epic_list_user_preferences.yml1
-rw-r--r--db/docs/boards_epic_lists.yml1
-rw-r--r--db/docs/boards_epic_user_preferences.yml1
-rw-r--r--db/docs/broadcast_messages.yml1
-rw-r--r--db/docs/bulk_import_configurations.yml1
-rw-r--r--db/docs/bulk_import_entities.yml1
-rw-r--r--db/docs/bulk_import_export_uploads.yml1
-rw-r--r--db/docs/bulk_import_exports.yml1
-rw-r--r--db/docs/bulk_import_failures.yml1
-rw-r--r--db/docs/bulk_import_trackers.yml1
-rw-r--r--db/docs/bulk_imports.yml1
-rw-r--r--db/docs/chat_names.yml1
-rw-r--r--db/docs/chat_teams.yml1
-rw-r--r--db/docs/ci_build_needs.yml1
-rw-r--r--db/docs/ci_build_pending_states.yml1
-rw-r--r--db/docs/ci_build_report_results.yml1
-rw-r--r--db/docs/ci_build_trace_chunks.yml1
-rw-r--r--db/docs/ci_build_trace_metadata.yml1
-rw-r--r--db/docs/ci_builds.yml1
-rw-r--r--db/docs/ci_builds_metadata.yml1
-rw-r--r--db/docs/ci_builds_runner_session.yml1
-rw-r--r--db/docs/ci_daily_build_group_report_results.yml1
-rw-r--r--db/docs/ci_deleted_objects.yml1
-rw-r--r--db/docs/ci_freeze_periods.yml1
-rw-r--r--db/docs/ci_group_variables.yml1
-rw-r--r--db/docs/ci_instance_variables.yml1
-rw-r--r--db/docs/ci_job_artifact_states.yml1
-rw-r--r--db/docs/ci_job_artifacts.yml1
-rw-r--r--db/docs/ci_job_token_project_scope_links.yml6
-rw-r--r--db/docs/ci_job_variables.yml1
-rw-r--r--db/docs/ci_minutes_additional_packs.yml1
-rw-r--r--db/docs/ci_namespace_mirrors.yml1
-rw-r--r--db/docs/ci_namespace_monthly_usages.yml1
-rw-r--r--db/docs/ci_partitions.yml1
-rw-r--r--db/docs/ci_pending_builds.yml3
-rw-r--r--db/docs/ci_pipeline_artifacts.yml1
-rw-r--r--db/docs/ci_pipeline_chat_data.yml1
-rw-r--r--db/docs/ci_pipeline_messages.yml1
-rw-r--r--db/docs/ci_pipeline_metadata.yml5
-rw-r--r--db/docs/ci_pipeline_schedule_variables.yml1
-rw-r--r--db/docs/ci_pipeline_schedules.yml1
-rw-r--r--db/docs/ci_pipeline_variables.yml1
-rw-r--r--db/docs/ci_pipelines.yml1
-rw-r--r--db/docs/ci_pipelines_config.yml1
-rw-r--r--db/docs/ci_platform_metrics.yml1
-rw-r--r--db/docs/ci_project_mirrors.yml1
-rw-r--r--db/docs/ci_project_monthly_usages.yml1
-rw-r--r--db/docs/ci_refs.yml1
-rw-r--r--db/docs/ci_resource_groups.yml1
-rw-r--r--db/docs/ci_resources.yml1
-rw-r--r--db/docs/ci_runner_namespaces.yml1
-rw-r--r--db/docs/ci_runner_projects.yml1
-rw-r--r--db/docs/ci_runner_versions.yml1
-rw-r--r--db/docs/ci_runners.yml1
-rw-r--r--db/docs/ci_running_builds.yml9
-rw-r--r--db/docs/ci_secure_file_states.yml1
-rw-r--r--db/docs/ci_secure_files.yml1
-rw-r--r--db/docs/ci_sources_pipelines.yml1
-rw-r--r--db/docs/ci_sources_projects.yml1
-rw-r--r--db/docs/ci_stages.yml1
-rw-r--r--db/docs/ci_subscriptions_projects.yml1
-rw-r--r--db/docs/ci_trigger_requests.yml1
-rw-r--r--db/docs/ci_triggers.yml1
-rw-r--r--db/docs/ci_unit_test_failures.yml1
-rw-r--r--db/docs/ci_unit_tests.yml1
-rw-r--r--db/docs/ci_variables.yml1
-rw-r--r--db/docs/cluster_agent_tokens.yml1
-rw-r--r--db/docs/cluster_agents.yml1
-rw-r--r--db/docs/cluster_enabled_grants.yml1
-rw-r--r--db/docs/cluster_groups.yml3
-rw-r--r--db/docs/cluster_platforms_kubernetes.yml3
-rw-r--r--db/docs/cluster_projects.yml3
-rw-r--r--db/docs/cluster_providers_aws.yml3
-rw-r--r--db/docs/cluster_providers_gcp.yml3
-rw-r--r--db/docs/clusters.yml1
-rw-r--r--db/docs/clusters_applications_cert_managers.yml3
-rw-r--r--db/docs/clusters_applications_cilium.yml1
-rw-r--r--db/docs/clusters_applications_crossplane.yml3
-rw-r--r--db/docs/clusters_applications_helm.yml3
-rw-r--r--db/docs/clusters_applications_ingress.yml3
-rw-r--r--db/docs/clusters_applications_jupyter.yml3
-rw-r--r--db/docs/clusters_applications_knative.yml3
-rw-r--r--db/docs/clusters_applications_prometheus.yml1
-rw-r--r--db/docs/clusters_applications_runners.yml3
-rw-r--r--db/docs/clusters_integration_prometheus.yml1
-rw-r--r--db/docs/clusters_kubernetes_namespaces.yml3
-rw-r--r--db/docs/commit_user_mentions.yml3
-rw-r--r--db/docs/compliance_management_frameworks.yml1
-rw-r--r--db/docs/container_expiration_policies.yml1
-rw-r--r--db/docs/container_repositories.yml1
-rw-r--r--db/docs/content_blocked_states.yml1
-rw-r--r--db/docs/conversational_development_index_metrics.yml1
-rw-r--r--db/docs/coverage_fuzzing_corpuses.yml1
-rw-r--r--db/docs/csv_issue_imports.yml1
-rw-r--r--db/docs/custom_emoji.yml1
-rw-r--r--db/docs/customer_relations_contacts.yml1
-rw-r--r--db/docs/customer_relations_organizations.yml1
-rw-r--r--db/docs/dast_pre_scan_verification_steps.yml10
-rw-r--r--db/docs/dast_pre_scan_verifications.yml10
-rw-r--r--db/docs/dast_profile_schedules.yml1
-rw-r--r--db/docs/dast_profiles.yml1
-rw-r--r--db/docs/dast_profiles_pipelines.yml1
-rw-r--r--db/docs/dast_scanner_profiles.yml1
-rw-r--r--db/docs/dast_scanner_profiles_builds.yml1
-rw-r--r--db/docs/dast_scanner_profiles_tags.yml10
-rw-r--r--db/docs/dast_site_profile_secret_variables.yml1
-rw-r--r--db/docs/dast_site_profiles.yml1
-rw-r--r--db/docs/dast_site_profiles_builds.yml1
-rw-r--r--db/docs/dast_site_profiles_pipelines.yml1
-rw-r--r--db/docs/dast_site_tokens.yml1
-rw-r--r--db/docs/dast_site_validations.yml1
-rw-r--r--db/docs/dast_sites.yml1
-rw-r--r--db/docs/deleted_tables/alerts_service_data.yml9
-rw-r--r--db/docs/deleted_tables/analytics_devops_adoption_segment_selections.yml9
-rw-r--r--db/docs/deleted_tables/analytics_repository_file_commits.yml9
-rw-r--r--db/docs/deleted_tables/analytics_repository_file_edits.yml9
-rw-r--r--db/docs/deleted_tables/analytics_repository_files.yml9
-rw-r--r--db/docs/deleted_tables/audit_events_archived.yml9
-rw-r--r--db/docs/deleted_tables/audit_events_part_5fc467ac26.yml9
-rw-r--r--db/docs/deleted_tables/backup_labels.yml9
-rw-r--r--db/docs/deleted_tables/ci_build_trace_section_names.yml9
-rw-r--r--db/docs/deleted_tables/ci_build_trace_sections.yml9
-rw-r--r--db/docs/deleted_tables/ci_daily_report_results.yml9
-rw-r--r--db/docs/deleted_tables/ci_test_case_failures.yml9
-rw-r--r--db/docs/deleted_tables/ci_test_cases.yml9
-rw-r--r--db/docs/deleted_tables/clusters_applications_fluentd.yml9
-rw-r--r--db/docs/deleted_tables/forked_project_links.yml9
-rw-r--r--db/docs/deleted_tables/issue_milestones.yml9
-rw-r--r--db/docs/deleted_tables/merge_request_milestones.yml9
-rw-r--r--db/docs/deleted_tables/namespace_onboarding_actions.yml9
-rw-r--r--db/docs/deleted_tables/services.yml9
-rw-r--r--db/docs/deleted_tables/terraform_state_registry.yml9
-rw-r--r--db/docs/deleted_tables/tmp_fingerprint_sha256_migration.yml9
-rw-r--r--db/docs/deleted_tables/vulnerability_export_registry.yml9
-rw-r--r--db/docs/deleted_tables/vulnerability_export_verification_status.yml9
-rw-r--r--db/docs/deleted_tables/vulnerability_finding_fingerprints.yml9
-rw-r--r--db/docs/deleted_tables/web_hook_logs_archived.yml9
-rw-r--r--db/docs/deleted_tables/web_hook_logs_part_0c5294f417.yml9
-rw-r--r--db/docs/dependency_list_exports.yml8
-rw-r--r--db/docs/dependency_proxy_blob_states.yml1
-rw-r--r--db/docs/dependency_proxy_blobs.yml1
-rw-r--r--db/docs/dependency_proxy_group_settings.yml1
-rw-r--r--db/docs/dependency_proxy_image_ttl_group_policies.yml1
-rw-r--r--db/docs/dependency_proxy_manifest_states.yml10
-rw-r--r--db/docs/dependency_proxy_manifests.yml1
-rw-r--r--db/docs/deploy_keys_projects.yml1
-rw-r--r--db/docs/deploy_tokens.yml1
-rw-r--r--db/docs/deployment_approvals.yml5
-rw-r--r--db/docs/deployment_clusters.yml3
-rw-r--r--db/docs/deployment_merge_requests.yml1
-rw-r--r--db/docs/deployments.yml5
-rw-r--r--db/docs/description_versions.yml1
-rw-r--r--db/docs/design_management_designs.yml1
-rw-r--r--db/docs/design_management_designs_versions.yml1
-rw-r--r--db/docs/design_management_versions.yml1
-rw-r--r--db/docs/design_user_mentions.yml1
-rw-r--r--db/docs/detached_partitions.yml1
-rw-r--r--db/docs/diff_note_positions.yml1
-rw-r--r--db/docs/dingtalk_tracker_data.yml1
-rw-r--r--db/docs/dora_configurations.yml1
-rw-r--r--db/docs/dora_daily_metrics.yml1
-rw-r--r--db/docs/draft_notes.yml1
-rw-r--r--db/docs/elastic_index_settings.yml1
-rw-r--r--db/docs/elastic_reindexing_slices.yml1
-rw-r--r--db/docs/elastic_reindexing_subtasks.yml1
-rw-r--r--db/docs/elastic_reindexing_tasks.yml1
-rw-r--r--db/docs/elasticsearch_indexed_namespaces.yml1
-rw-r--r--db/docs/elasticsearch_indexed_projects.yml1
-rw-r--r--db/docs/emails.yml1
-rw-r--r--db/docs/environments.yml5
-rw-r--r--db/docs/epic_issues.yml1
-rw-r--r--db/docs/epic_metrics.yml1
-rw-r--r--db/docs/epic_user_mentions.yml1
-rw-r--r--db/docs/epics.yml1
-rw-r--r--db/docs/error_tracking_client_keys.yml1
-rw-r--r--db/docs/error_tracking_error_events.yml1
-rw-r--r--db/docs/error_tracking_errors.yml1
-rw-r--r--db/docs/events.yml1
-rw-r--r--db/docs/evidences.yml1
-rw-r--r--db/docs/experiment_subjects.yml9
-rw-r--r--db/docs/experiments.yml9
-rw-r--r--db/docs/external_approval_rules.yml1
-rw-r--r--db/docs/external_approval_rules_protected_branches.yml1
-rw-r--r--db/docs/external_pull_requests.yml1
-rw-r--r--db/docs/external_status_checks.yml1
-rw-r--r--db/docs/external_status_checks_protected_branches.yml1
-rw-r--r--db/docs/feature_gates.yml1
-rw-r--r--db/docs/features.yml1
-rw-r--r--db/docs/fork_network_members.yml1
-rw-r--r--db/docs/fork_networks.yml1
-rw-r--r--db/docs/geo_cache_invalidation_events.yml1
-rw-r--r--db/docs/geo_container_repository_updated_events.yml1
-rw-r--r--db/docs/geo_event_log.yml1
-rw-r--r--db/docs/geo_events.yml1
-rw-r--r--db/docs/geo_hashed_storage_attachments_events.yml1
-rw-r--r--db/docs/geo_hashed_storage_migrated_events.yml1
-rw-r--r--db/docs/geo_node_namespace_links.yml1
-rw-r--r--db/docs/geo_node_statuses.yml1
-rw-r--r--db/docs/geo_nodes.yml1
-rw-r--r--db/docs/geo_repositories_changed_events.yml1
-rw-r--r--db/docs/geo_repository_created_events.yml1
-rw-r--r--db/docs/geo_repository_deleted_events.yml1
-rw-r--r--db/docs/geo_repository_renamed_events.yml1
-rw-r--r--db/docs/geo_repository_updated_events.yml1
-rw-r--r--db/docs/geo_reset_checksum_events.yml1
-rw-r--r--db/docs/ghost_user_migrations.yml1
-rw-r--r--db/docs/gitlab_subscription_histories.yml1
-rw-r--r--db/docs/gitlab_subscriptions.yml1
-rw-r--r--db/docs/gpg_key_subkeys.yml1
-rw-r--r--db/docs/gpg_keys.yml1
-rw-r--r--db/docs/gpg_signatures.yml1
-rw-r--r--db/docs/grafana_integrations.yml1
-rw-r--r--db/docs/group_crm_settings.yml1
-rw-r--r--db/docs/group_custom_attributes.yml1
-rw-r--r--db/docs/group_deletion_schedules.yml1
-rw-r--r--db/docs/group_deploy_keys.yml1
-rw-r--r--db/docs/group_deploy_keys_groups.yml1
-rw-r--r--db/docs/group_deploy_tokens.yml1
-rw-r--r--db/docs/group_features.yml1
-rw-r--r--db/docs/group_group_links.yml1
-rw-r--r--db/docs/group_import_states.yml1
-rw-r--r--db/docs/group_merge_request_approval_settings.yml1
-rw-r--r--db/docs/group_repository_storage_moves.yml1
-rw-r--r--db/docs/group_wiki_repositories.yml1
-rw-r--r--db/docs/historical_data.yml1
-rw-r--r--db/docs/identities.yml1
-rw-r--r--db/docs/import_export_uploads.yml1
-rw-r--r--db/docs/import_failures.yml1
-rw-r--r--db/docs/in_product_marketing_emails.yml1
-rw-r--r--db/docs/incident_management_escalation_policies.yml1
-rw-r--r--db/docs/incident_management_escalation_rules.yml1
-rw-r--r--db/docs/incident_management_issuable_escalation_statuses.yml1
-rw-r--r--db/docs/incident_management_oncall_participants.yml1
-rw-r--r--db/docs/incident_management_oncall_rotations.yml1
-rw-r--r--db/docs/incident_management_oncall_schedules.yml1
-rw-r--r--db/docs/incident_management_oncall_shifts.yml1
-rw-r--r--db/docs/incident_management_pending_alert_escalations.yml1
-rw-r--r--db/docs/incident_management_pending_issue_escalations.yml1
-rw-r--r--db/docs/incident_management_timeline_event_tag_links.yml1
-rw-r--r--db/docs/incident_management_timeline_event_tags.yml1
-rw-r--r--db/docs/incident_management_timeline_events.yml1
-rw-r--r--db/docs/index_statuses.yml1
-rw-r--r--db/docs/insights.yml1
-rw-r--r--db/docs/integrations.yml2
-rw-r--r--db/docs/internal_ids.yml1
-rw-r--r--db/docs/ip_restrictions.yml1
-rw-r--r--db/docs/issuable_metric_images.yml1
-rw-r--r--db/docs/issuable_resource_links.yml1
-rw-r--r--db/docs/issuable_severities.yml1
-rw-r--r--db/docs/issuable_slas.yml1
-rw-r--r--db/docs/issue_assignees.yml1
-rw-r--r--db/docs/issue_customer_relations_contacts.yml1
-rw-r--r--db/docs/issue_email_participants.yml1
-rw-r--r--db/docs/issue_emails.yml1
-rw-r--r--db/docs/issue_links.yml1
-rw-r--r--db/docs/issue_metrics.yml1
-rw-r--r--db/docs/issue_search_data.yml1
-rw-r--r--db/docs/issue_tracker_data.yml1
-rw-r--r--db/docs/issue_user_mentions.yml1
-rw-r--r--db/docs/issues.yml1
-rw-r--r--db/docs/issues_prometheus_alert_events.yml1
-rw-r--r--db/docs/issues_self_managed_prometheus_alert_events.yml1
-rw-r--r--db/docs/iterations_cadences.yml1
-rw-r--r--db/docs/jira_connect_installations.yml1
-rw-r--r--db/docs/jira_connect_subscriptions.yml1
-rw-r--r--db/docs/jira_imports.yml1
-rw-r--r--db/docs/jira_tracker_data.yml1
-rw-r--r--db/docs/keys.yml1
-rw-r--r--db/docs/label_links.yml1
-rw-r--r--db/docs/label_priorities.yml1
-rw-r--r--db/docs/labels.yml1
-rw-r--r--db/docs/ldap_group_links.yml1
-rw-r--r--db/docs/lfs_file_locks.yml1
-rw-r--r--db/docs/lfs_object_states.yml1
-rw-r--r--db/docs/lfs_objects.yml1
-rw-r--r--db/docs/lfs_objects_projects.yml3
-rw-r--r--db/docs/licenses.yml1
-rw-r--r--db/docs/list_user_preferences.yml1
-rw-r--r--db/docs/lists.yml1
-rw-r--r--db/docs/loose_foreign_keys_deleted_records.yml1
-rw-r--r--db/docs/member_roles.yml1
-rw-r--r--db/docs/member_tasks.yml1
-rw-r--r--db/docs/members.yml1
-rw-r--r--db/docs/merge_request_assignees.yml1
-rw-r--r--db/docs/merge_request_blocks.yml1
-rw-r--r--db/docs/merge_request_cleanup_schedules.yml1
-rw-r--r--db/docs/merge_request_context_commit_diff_files.yml1
-rw-r--r--db/docs/merge_request_context_commits.yml1
-rw-r--r--db/docs/merge_request_diff_commit_users.yml1
-rw-r--r--db/docs/merge_request_diff_commits.yml1
-rw-r--r--db/docs/merge_request_diff_details.yml1
-rw-r--r--db/docs/merge_request_diff_files.yml1
-rw-r--r--db/docs/merge_request_diffs.yml3
-rw-r--r--db/docs/merge_request_metrics.yml1
-rw-r--r--db/docs/merge_request_predictions.yml1
-rw-r--r--db/docs/merge_request_reviewers.yml1
-rw-r--r--db/docs/merge_request_user_mentions.yml1
-rw-r--r--db/docs/merge_requests.yml1
-rw-r--r--db/docs/merge_requests_closing_issues.yml1
-rw-r--r--db/docs/merge_requests_compliance_violations.yml1
-rw-r--r--db/docs/merge_trains.yml1
-rw-r--r--db/docs/metrics_dashboard_annotations.yml1
-rw-r--r--db/docs/metrics_users_starred_dashboards.yml1
-rw-r--r--db/docs/milestone_releases.yml1
-rw-r--r--db/docs/milestones.yml1
-rw-r--r--db/docs/ml_candidate_metadata.yml11
-rw-r--r--db/docs/ml_candidate_metrics.yml1
-rw-r--r--db/docs/ml_candidate_params.yml1
-rw-r--r--db/docs/ml_candidates.yml1
-rw-r--r--db/docs/ml_experiment_metadata.yml11
-rw-r--r--db/docs/ml_experiments.yml1
-rw-r--r--db/docs/namespace_admin_notes.yml1
-rw-r--r--db/docs/namespace_aggregation_schedules.yml1
-rw-r--r--db/docs/namespace_bans.yml1
-rw-r--r--db/docs/namespace_ci_cd_settings.yml1
-rw-r--r--db/docs/namespace_commit_emails.yml1
-rw-r--r--db/docs/namespace_details.yml1
-rw-r--r--db/docs/namespace_limits.yml1
-rw-r--r--db/docs/namespace_package_settings.yml1
-rw-r--r--db/docs/namespace_root_storage_statistics.yml1
-rw-r--r--db/docs/namespace_settings.yml1
-rw-r--r--db/docs/namespace_statistics.yml1
-rw-r--r--db/docs/namespaces.yml1
-rw-r--r--db/docs/namespaces_sync_events.yml1
-rw-r--r--db/docs/note_diff_files.yml1
-rw-r--r--db/docs/notes.yml1
-rw-r--r--db/docs/notification_settings.yml1
-rw-r--r--db/docs/oauth_access_grants.yml1
-rw-r--r--db/docs/oauth_access_tokens.yml1
-rw-r--r--db/docs/oauth_applications.yml1
-rw-r--r--db/docs/oauth_openid_requests.yml1
-rw-r--r--db/docs/onboarding_progresses.yml1
-rw-r--r--db/docs/operations_feature_flag_scopes.yml1
-rw-r--r--db/docs/operations_feature_flags.yml1
-rw-r--r--db/docs/operations_feature_flags_clients.yml1
-rw-r--r--db/docs/operations_feature_flags_issues.yml1
-rw-r--r--db/docs/operations_scopes.yml1
-rw-r--r--db/docs/operations_strategies.yml1
-rw-r--r--db/docs/operations_strategies_user_lists.yml1
-rw-r--r--db/docs/operations_user_lists.yml1
-rw-r--r--db/docs/p_ci_builds_metadata.yml1
-rw-r--r--db/docs/packages_build_infos.yml1
-rw-r--r--db/docs/packages_cleanup_policies.yml1
-rw-r--r--db/docs/packages_composer_cache_files.yml1
-rw-r--r--db/docs/packages_composer_metadata.yml1
-rw-r--r--db/docs/packages_conan_file_metadata.yml1
-rw-r--r--db/docs/packages_conan_metadata.yml1
-rw-r--r--db/docs/packages_debian_file_metadata.yml1
-rw-r--r--db/docs/packages_debian_group_architectures.yml1
-rw-r--r--db/docs/packages_debian_group_component_files.yml1
-rw-r--r--db/docs/packages_debian_group_components.yml1
-rw-r--r--db/docs/packages_debian_group_distribution_keys.yml1
-rw-r--r--db/docs/packages_debian_group_distributions.yml1
-rw-r--r--db/docs/packages_debian_project_architectures.yml1
-rw-r--r--db/docs/packages_debian_project_component_files.yml1
-rw-r--r--db/docs/packages_debian_project_components.yml1
-rw-r--r--db/docs/packages_debian_project_distribution_keys.yml1
-rw-r--r--db/docs/packages_debian_project_distributions.yml1
-rw-r--r--db/docs/packages_debian_publications.yml1
-rw-r--r--db/docs/packages_dependencies.yml1
-rw-r--r--db/docs/packages_dependency_links.yml1
-rw-r--r--db/docs/packages_events.yml1
-rw-r--r--db/docs/packages_helm_file_metadata.yml1
-rw-r--r--db/docs/packages_maven_metadata.yml1
-rw-r--r--db/docs/packages_npm_metadata.yml1
-rw-r--r--db/docs/packages_nuget_dependency_link_metadata.yml1
-rw-r--r--db/docs/packages_nuget_metadata.yml1
-rw-r--r--db/docs/packages_package_file_build_infos.yml1
-rw-r--r--db/docs/packages_package_files.yml1
-rw-r--r--db/docs/packages_packages.yml1
-rw-r--r--db/docs/packages_pypi_metadata.yml1
-rw-r--r--db/docs/packages_rpm_metadata.yml1
-rw-r--r--db/docs/packages_rpm_repository_files.yml1
-rw-r--r--db/docs/packages_rubygems_metadata.yml1
-rw-r--r--db/docs/packages_tags.yml1
-rw-r--r--db/docs/pages_deployment_states.yml1
-rw-r--r--db/docs/pages_deployments.yml1
-rw-r--r--db/docs/pages_domain_acme_orders.yml1
-rw-r--r--db/docs/pages_domains.yml1
-rw-r--r--db/docs/path_locks.yml1
-rw-r--r--db/docs/personal_access_tokens.yml1
-rw-r--r--db/docs/plan_limits.yml1
-rw-r--r--db/docs/plans.yml1
-rw-r--r--db/docs/pm_licenses.yml10
-rw-r--r--db/docs/pm_package_version_licenses.yml10
-rw-r--r--db/docs/pm_package_versions.yml10
-rw-r--r--db/docs/pm_packages.yml10
-rw-r--r--db/docs/pool_repositories.yml1
-rw-r--r--db/docs/postgres_async_indexes.yml1
-rw-r--r--db/docs/postgres_reindex_actions.yml1
-rw-r--r--db/docs/postgres_reindex_queued_actions.yml1
-rw-r--r--db/docs/product_analytics_events_experimental.yml1
-rw-r--r--db/docs/programming_languages.yml1
-rw-r--r--db/docs/project_access_tokens.yml1
-rw-r--r--db/docs/project_alerting_settings.yml1
-rw-r--r--db/docs/project_aliases.yml1
-rw-r--r--db/docs/project_authorizations.yml1
-rw-r--r--db/docs/project_auto_devops.yml1
-rw-r--r--db/docs/project_build_artifacts_size_refreshes.yml1
-rw-r--r--db/docs/project_ci_cd_settings.yml1
-rw-r--r--db/docs/project_ci_feature_usages.yml1
-rw-r--r--db/docs/project_compliance_framework_settings.yml1
-rw-r--r--db/docs/project_custom_attributes.yml1
-rw-r--r--db/docs/project_daily_statistics.yml1
-rw-r--r--db/docs/project_deploy_tokens.yml1
-rw-r--r--db/docs/project_error_tracking_settings.yml1
-rw-r--r--db/docs/project_export_jobs.yml1
-rw-r--r--db/docs/project_feature_usages.yml1
-rw-r--r--db/docs/project_features.yml1
-rw-r--r--db/docs/project_group_links.yml1
-rw-r--r--db/docs/project_import_data.yml1
-rw-r--r--db/docs/project_incident_management_settings.yml1
-rw-r--r--db/docs/project_metrics_settings.yml1
-rw-r--r--db/docs/project_mirror_data.yml1
-rw-r--r--db/docs/project_pages_metadata.yml1
-rw-r--r--db/docs/project_relation_export_uploads.yml1
-rw-r--r--db/docs/project_relation_exports.yml1
-rw-r--r--db/docs/project_repositories.yml1
-rw-r--r--db/docs/project_repository_states.yml1
-rw-r--r--db/docs/project_repository_storage_moves.yml1
-rw-r--r--db/docs/project_security_settings.yml1
-rw-r--r--db/docs/project_settings.yml1
-rw-r--r--db/docs/project_statistics.yml1
-rw-r--r--db/docs/project_topics.yml1
-rw-r--r--db/docs/project_wiki_repositories.yml1
-rw-r--r--db/docs/project_wiki_repository_states.yml1
-rw-r--r--db/docs/projects.yml1
-rw-r--r--db/docs/projects_sync_events.yml1
-rw-r--r--db/docs/prometheus_alert_events.yml1
-rw-r--r--db/docs/prometheus_alerts.yml1
-rw-r--r--db/docs/prometheus_metrics.yml1
-rw-r--r--db/docs/protected_branch_merge_access_levels.yml1
-rw-r--r--db/docs/protected_branch_push_access_levels.yml1
-rw-r--r--db/docs/protected_branch_unprotect_access_levels.yml1
-rw-r--r--db/docs/protected_branches.yml1
-rw-r--r--db/docs/protected_environment_approval_rules.yml5
-rw-r--r--db/docs/protected_environment_deploy_access_levels.yml5
-rw-r--r--db/docs/protected_environments.yml5
-rw-r--r--db/docs/protected_tag_create_access_levels.yml1
-rw-r--r--db/docs/protected_tags.yml1
-rw-r--r--db/docs/push_event_payloads.yml1
-rw-r--r--db/docs/push_rules.yml1
-rw-r--r--db/docs/raw_usage_data.yml1
-rw-r--r--db/docs/redirect_routes.yml1
-rw-r--r--db/docs/related_epic_links.yml1
-rw-r--r--db/docs/release_links.yml1
-rw-r--r--db/docs/releases.yml1
-rw-r--r--db/docs/remote_mirrors.yml1
-rw-r--r--db/docs/repository_languages.yml1
-rw-r--r--db/docs/required_code_owners_sections.yml1
-rw-r--r--db/docs/requirements.yml1
-rw-r--r--db/docs/requirements_management_test_reports.yml1
-rw-r--r--db/docs/resource_iteration_events.yml1
-rw-r--r--db/docs/resource_label_events.yml1
-rw-r--r--db/docs/resource_milestone_events.yml1
-rw-r--r--db/docs/resource_state_events.yml1
-rw-r--r--db/docs/resource_weight_events.yml1
-rw-r--r--db/docs/reviews.yml1
-rw-r--r--db/docs/routes.yml1
-rw-r--r--db/docs/saml_group_links.yml1
-rw-r--r--db/docs/saml_providers.yml1
-rw-r--r--db/docs/saved_replies.yml1
-rw-r--r--db/docs/sbom_component_versions.yml1
-rw-r--r--db/docs/sbom_components.yml1
-rw-r--r--db/docs/sbom_occurrences.yml1
-rw-r--r--db/docs/sbom_sources.yml1
-rw-r--r--db/docs/sbom_vulnerable_component_versions.yml1
-rw-r--r--db/docs/schema_migrations.yml1
-rw-r--r--db/docs/scim_identities.yml1
-rw-r--r--db/docs/scim_oauth_access_tokens.yml1
-rw-r--r--db/docs/security_findings.yml1
-rw-r--r--db/docs/security_orchestration_policy_configurations.yml1
-rw-r--r--db/docs/security_orchestration_policy_rule_schedules.yml1
-rw-r--r--db/docs/security_scans.yml1
-rw-r--r--db/docs/security_training_providers.yml1
-rw-r--r--db/docs/security_trainings.yml1
-rw-r--r--db/docs/self_managed_prometheus_alert_events.yml1
-rw-r--r--db/docs/sent_notifications.yml1
-rw-r--r--db/docs/sentry_issues.yml1
-rw-r--r--db/docs/serverless_domain_cluster.yml3
-rw-r--r--db/docs/service_desk_settings.yml1
-rw-r--r--db/docs/shards.yml1
-rw-r--r--db/docs/slack_api_scopes.yml10
-rw-r--r--db/docs/slack_integrations.yml1
-rw-r--r--db/docs/slack_integrations_scopes.yml10
-rw-r--r--db/docs/smartcard_identities.yml1
-rw-r--r--db/docs/snippet_repositories.yml1
-rw-r--r--db/docs/snippet_repository_storage_moves.yml1
-rw-r--r--db/docs/snippet_statistics.yml1
-rw-r--r--db/docs/snippet_user_mentions.yml1
-rw-r--r--db/docs/snippets.yml1
-rw-r--r--db/docs/software_license_policies.yml1
-rw-r--r--db/docs/software_licenses.yml1
-rw-r--r--db/docs/spam_logs.yml1
-rw-r--r--db/docs/sprints.yml1
-rw-r--r--db/docs/ssh_signatures.yml1
-rw-r--r--db/docs/status_check_responses.yml1
-rw-r--r--db/docs/status_page_published_incidents.yml1
-rw-r--r--db/docs/status_page_settings.yml1
-rw-r--r--db/docs/subscriptions.yml1
-rw-r--r--db/docs/suggestions.yml1
-rw-r--r--db/docs/system_note_metadata.yml1
-rw-r--r--db/docs/taggings.yml3
-rw-r--r--db/docs/tags.yml1
-rw-r--r--db/docs/term_agreements.yml1
-rw-r--r--db/docs/terraform_state_versions.yml1
-rw-r--r--db/docs/terraform_states.yml1
-rw-r--r--db/docs/timelog_categories.yml1
-rw-r--r--db/docs/timelogs.yml1
-rw-r--r--db/docs/todos.yml1
-rw-r--r--db/docs/token_with_ivs.yml1
-rw-r--r--db/docs/topics.yml1
-rw-r--r--db/docs/trending_projects.yml1
-rw-r--r--db/docs/u2f_registrations.yml1
-rw-r--r--db/docs/upcoming_reconciliations.yml1
-rw-r--r--db/docs/upload_states.yml1
-rw-r--r--db/docs/uploads.yml1
-rw-r--r--db/docs/user_agent_details.yml1
-rw-r--r--db/docs/user_callouts.yml1
-rw-r--r--db/docs/user_canonical_emails.yml1
-rw-r--r--db/docs/user_credit_card_validations.yml1
-rw-r--r--db/docs/user_custom_attributes.yml1
-rw-r--r--db/docs/user_details.yml1
-rw-r--r--db/docs/user_follow_users.yml1
-rw-r--r--db/docs/user_group_callouts.yml1
-rw-r--r--db/docs/user_highest_roles.yml1
-rw-r--r--db/docs/user_interacted_projects.yml1
-rw-r--r--db/docs/user_namespace_callouts.yml2
-rw-r--r--db/docs/user_permission_export_uploads.yml1
-rw-r--r--db/docs/user_phone_number_validations.yml1
-rw-r--r--db/docs/user_preferences.yml1
-rw-r--r--db/docs/user_project_callouts.yml1
-rw-r--r--db/docs/user_statuses.yml1
-rw-r--r--db/docs/user_synced_attributes_metadata.yml1
-rw-r--r--db/docs/users.yml1
-rw-r--r--db/docs/users_ops_dashboard_projects.yml1
-rw-r--r--db/docs/users_security_dashboard_projects.yml1
-rw-r--r--db/docs/users_star_projects.yml1
-rw-r--r--db/docs/users_statistics.yml1
-rw-r--r--db/docs/verification_codes.yml1
-rw-r--r--db/docs/views/postgres_autovacuum_activity.yml10
-rw-r--r--db/docs/views/postgres_constraints.yml10
-rw-r--r--db/docs/views/postgres_foreign_keys.yml10
-rw-r--r--db/docs/views/postgres_index_bloat_estimates.yml10
-rw-r--r--db/docs/views/postgres_indexes.yml10
-rw-r--r--db/docs/views/postgres_partitioned_tables.yml10
-rw-r--r--db/docs/views/postgres_partitions.yml10
-rw-r--r--db/docs/vulnerabilities.yml1
-rw-r--r--db/docs/vulnerability_advisories.yml1
-rw-r--r--db/docs/vulnerability_exports.yml1
-rw-r--r--db/docs/vulnerability_external_issue_links.yml1
-rw-r--r--db/docs/vulnerability_feedback.yml1
-rw-r--r--db/docs/vulnerability_finding_evidences.yml1
-rw-r--r--db/docs/vulnerability_finding_links.yml1
-rw-r--r--db/docs/vulnerability_finding_signatures.yml1
-rw-r--r--db/docs/vulnerability_findings_remediations.yml1
-rw-r--r--db/docs/vulnerability_flags.yml3
-rw-r--r--db/docs/vulnerability_historical_statistics.yml1
-rw-r--r--db/docs/vulnerability_identifiers.yml1
-rw-r--r--db/docs/vulnerability_issue_links.yml1
-rw-r--r--db/docs/vulnerability_merge_request_links.yml1
-rw-r--r--db/docs/vulnerability_occurrence_identifiers.yml1
-rw-r--r--db/docs/vulnerability_occurrence_pipelines.yml1
-rw-r--r--db/docs/vulnerability_occurrences.yml1
-rw-r--r--db/docs/vulnerability_reads.yml1
-rw-r--r--db/docs/vulnerability_remediations.yml1
-rw-r--r--db/docs/vulnerability_scanners.yml1
-rw-r--r--db/docs/vulnerability_state_transitions.yml1
-rw-r--r--db/docs/vulnerability_statistics.yml1
-rw-r--r--db/docs/vulnerability_user_mentions.yml1
-rw-r--r--db/docs/web_hook_logs.yml1
-rw-r--r--db/docs/web_hooks.yml1
-rw-r--r--db/docs/webauthn_registrations.yml1
-rw-r--r--db/docs/wiki_page_meta.yml1
-rw-r--r--db/docs/wiki_page_slugs.yml1
-rw-r--r--db/docs/work_item_hierarchy_restrictions.yml10
-rw-r--r--db/docs/work_item_parent_links.yml1
-rw-r--r--db/docs/work_item_progresses.yml10
-rw-r--r--db/docs/work_item_types.yml1
-rw-r--r--db/docs/x509_certificates.yml1
-rw-r--r--db/docs/x509_commit_signatures.yml1
-rw-r--r--db/docs/x509_issuers.yml1
-rw-r--r--db/docs/zentao_tracker_data.yml1
-rw-r--r--db/docs/zoom_meetings.yml1
-rw-r--r--db/fixtures/development/14_pipelines.rb147
-rw-r--r--db/fixtures/development/50_create_work_item_hierarchy_restrictions.rb5
-rw-r--r--db/fixtures/production/020_create_work_item_hierarchy_restrictions.rb5
-rw-r--r--db/migrate/20220824082427_remove_tmp_idx_vulnerability_occurrences_on_id_and_scanner_id.rb20
-rw-r--r--db/migrate/20220908150054_add_runner_registration_enabled_to_namespace_settings.rb9
-rw-r--r--db/migrate/20221026095133_add_status_updated_at_to_container_repository.rb7
-rw-r--r--db/migrate/20221101174816_create_package_metadata.rb11
-rw-r--r--db/migrate/20221101194416_create_package_metadata_versions.rb11
-rw-r--r--db/migrate/20221101195309_create_package_metadata_licenses.rb10
-rw-r--r--db/migrate/20221101195543_create_package_metadata_package_version_licenses.rb12
-rw-r--r--db/migrate/20221102150737_index_environments_for_name_search_within_folder.rb16
-rw-r--r--db/migrate/20221102195642_create_dependency_proxy_manifest_states.rb45
-rw-r--r--db/migrate/20221103205317_create_dast_pre_scan_verification.rb22
-rw-r--r--db/migrate/20221107013943_add_accepted_reviewers_to_merge_request_predictions.rb9
-rw-r--r--db/migrate/20221110080508_add_partition_id_to_ci_unit_test_failures.rb9
-rw-r--r--db/migrate/20221110080636_add_partition_id_to_ci_sources_pipelines.rb9
-rw-r--r--db/migrate/20221110080748_add_partition_id_to_ci_build_pending_states.rb9
-rw-r--r--db/migrate/20221110080822_add_partition_id_to_ci_build_trace_chunks.rb9
-rw-r--r--db/migrate/20221110080913_add_partition_id_to_ci_build_report_results.rb9
-rw-r--r--db/migrate/20221110080956_add_partition_id_to_ci_build_needs.rb9
-rw-r--r--db/migrate/20221110081037_add_partition_id_to_ci_builds_runner_session.rb9
-rw-r--r--db/migrate/20221110081115_add_partition_id_to_ci_pending_builds.rb9
-rw-r--r--db/migrate/20221110081207_add_partition_id_to_ci_build_trace_metadata.rb9
-rw-r--r--db/migrate/20221110081348_add_partition_id_to_ci_running_builds.rb9
-rw-r--r--db/migrate/20221110081448_add_partition_id_to_ci_job_variables.rb9
-rw-r--r--db/migrate/20221110183103_add_dashboard_fields_to_namespace_details.rb10
-rw-r--r--db/migrate/20221111123146_add_onboarding_in_progress_to_users.rb15
-rw-r--r--db/migrate/20221111123147_add_onboarding_step_url_to_user_details.rb16
-rw-r--r--db/migrate/20221111123148_add_text_limit_to_onboarding_step_url.rb13
-rw-r--r--db/migrate/20221111135238_create_dependency_list_exports_table.rb23
-rw-r--r--db/migrate/20221111142921_add_hierarchy_restrictions.rb21
-rw-r--r--db/migrate/20221114131943_add_short_title_to_appearances.rb10
-rw-r--r--db/migrate/20221114145103_add_last_seat_refresh_at_to_gitlab_subscriptions.rb16
-rw-r--r--db/migrate/20221114212908_add_debug_trace_to_ci_builds_metadata.rb9
-rw-r--r--db/migrate/20221115085813_add_limit_to_appereances_short_title.rb13
-rw-r--r--db/migrate/20221116100056_add_foreign_key_to_dependency_list_exports.rb27
-rw-r--r--db/migrate/20221116113323_add_index_on_team_id_and_chat_id.rb15
-rw-r--r--db/migrate/20221116124821_add_enterprise_boolean_to_bulk_imports.rb7
-rw-r--r--db/migrate/20221116160204_create_ml_experiment_metadata_and_ml_candidate_metadata.rb29
-rw-r--r--db/migrate/20221116161126_add_auth_signing_type_to_keys.rb7
-rw-r--r--db/migrate/20221121091238_add_work_item_progress.rb18
-rw-r--r--db/migrate/20221121100431_add_partition_id_to_ci_resources.rb9
-rw-r--r--db/migrate/20221122141046_add_allow_pipeline_trigger_approve_deployment_to_project_settings.rb9
-rw-r--r--db/migrate/20221122225925_set_email_confirmation_setting_before_removing_send_user_confirmation_email_column.rb22
-rw-r--r--db/migrate/20221124113925_add_pipeline_hierarchy_size_to_plan_limits.rb7
-rw-r--r--db/migrate/20221128123514_add_source_partition_id_to_ci_sources_pipeline.rb9
-rw-r--r--db/migrate/20221129192619_increase_self_hosted_attachment_size_limit.rb13
-rw-r--r--db/migrate/20221130170433_create_dast_pre_scan_verification_step.rb18
-rw-r--r--db/migrate/20221130182056_add_plan_limits_max_size_to_requirements_v2_artifact.rb7
-rw-r--r--db/migrate/20221202144210_create_achievements.rb24
-rw-r--r--db/migrate/20221202202351_remove_index_i_ci_job_token_project_scope_links_on_source_and_target_project.rb23
-rw-r--r--db/migrate/20221205061134_add_disable_pats_to_application_settings.rb7
-rw-r--r--db/migrate/20221206163420_add_use_new_navigation_to_user_preferences.rb9
-rw-r--r--db/migrate/20221206211814_add_authorized_scopes_to_slack_integration.rb38
-rw-r--r--db/migrate/20221206222032_add_read_code_to_member_roles.rb7
-rw-r--r--db/migrate/20221206235208_add_max_terraform_state_size_bytes_to_application_settings.rb24
-rw-r--r--db/migrate/20221207140259_add_bulk_import_enabled_to_application_settings.rb7
-rw-r--r--db/migrate/20221207220120_create_dast_scanner_profiles_runner_tags.rb18
-rw-r--r--db/migrate/20221208122921_remove_constraints_from_ci_resources_for_partition_id.rb16
-rw-r--r--db/migrate/20221209110934_update_import_sources_on_application_settings.rb28
-rw-r--r--db/migrate/20221209110935_fix_update_import_sources_on_application_settings.rb25
-rw-r--r--db/migrate/20221213184314_change_enabled_default_in_dependency_proxy_group_settings.rb7
-rw-r--r--db/post_migrate/20210731132939_backfill_stage_event_hash.rb2
-rw-r--r--db/post_migrate/20220202105733_delete_service_template_records.rb1
-rw-r--r--db/post_migrate/20220420214703_schedule_backfill_draft_status_on_merge_requests_corrected_regex.rb2
-rw-r--r--db/post_migrate/20220920180451_schedule_vulnerabilities_feedback_migration.rb36
-rw-r--r--db/post_migrate/20221018095434_schedule_disable_legacy_open_source_license_for_projects_less_than_five_mb.rb33
-rw-r--r--db/post_migrate/20221104115712_backfill_project_statistics_storage_size_without_uploads_size.rb31
-rw-r--r--db/post_migrate/20221104141647_add_index_for_non_public_top_level_groups_to_namespaces.rb17
-rw-r--r--db/post_migrate/20221109160052_add_default_for_approval_project_rules_scanners.rb11
-rw-r--r--db/post_migrate/20221110152133_delete_orphans_approval_rules.rb36
-rw-r--r--db/post_migrate/20221110190340_add_partial_legacy_open_source_license_available_project_id_index.rb18
-rw-r--r--db/post_migrate/20221114142044_delete_experiments_foreign_keys.rb34
-rw-r--r--db/post_migrate/20221114142602_drop_experiment_subjects_table.rb32
-rw-r--r--db/post_migrate/20221114142616_drop_experiments_table.rb21
-rw-r--r--db/post_migrate/20221115120602_add_index_for_issues_health_status_ordering.rb23
-rw-r--r--db/post_migrate/20221115173607_ensure_work_item_type_backfill_migration_finished.rb42
-rw-r--r--db/post_migrate/20221115184525_remove_namespaces_tmp_project_id_column.rb27
-rw-r--r--db/post_migrate/20221116105434_remove_index_project_settings_on_legacy_open_source_license_available.rb18
-rw-r--r--db/post_migrate/20221116143854_add_okr_hierarchy_restrictions.rb48
-rw-r--r--db/post_migrate/20221117103015_add_async_index_author_id_created_at_on_merge_requests.rb13
-rw-r--r--db/post_migrate/20221117135032_remove_clusters_applications_job_instances.rb26
-rw-r--r--db/post_migrate/20221117153015_add_index_merge_request_id_created_at_on_scan_finding_approval_merge_request_rules.rb17
-rw-r--r--db/post_migrate/20221118103152_finalize_issues_namespace_id_backfilling.rb22
-rw-r--r--db/post_migrate/20221118103352_add_cascade_delete_fk_on_issues_namespace_id.rb41
-rw-r--r--db/post_migrate/20221118103752_add_not_null_contraint_to_issues_namespace_id.rb13
-rw-r--r--db/post_migrate/20221118104752_validate_not_null_contraint_to_issues_namespace_id.rb13
-rw-r--r--db/post_migrate/20221121000127_index_security_scans_on_created_at_and_id_for_non_purged_records.rb16
-rw-r--r--db/post_migrate/20221121000451_drop_index_security_scans_on_id_for_non_purged_records.rb16
-rw-r--r--db/post_migrate/20221121152048_remove_unused_feedback_migration_index.rb24
-rw-r--r--db/post_migrate/20221121152515_add_supporting_index_for_vulnerabilities_feedback_migration2.rb24
-rw-r--r--db/post_migrate/20221121155850_change_vulnerabilities_state_transitions_comment_limit.rb23
-rw-r--r--db/post_migrate/20221121180138_drop_index_on_vulnerabilities_state_case_id.rb21
-rw-r--r--db/post_migrate/20221121181627_drop_index_on_vulnerabilities_state_case_id_desc.rb20
-rw-r--r--db/post_migrate/20221121184931_validate_not_null_contraint_on_issues_work_item_type_id.rb13
-rw-r--r--db/post_migrate/20221122063922_remove_issue_title_trigram_index.rb20
-rw-r--r--db/post_migrate/20221122064537_remove_issue_description_trigram_index.rb20
-rw-r--r--db/post_migrate/20221122132812_schedule_prune_stale_project_export_jobs.rb22
-rw-r--r--db/post_migrate/20221122155149_add_index_for_paths_on_non_projects.rb16
-rw-r--r--db/post_migrate/20221123133054_queue_reset_status_on_container_repositories.rb25
-rw-r--r--db/post_migrate/20221124153602_add_supporting_index_for_vulnerabilities_feedback_comment_proccessing.rb24
-rw-r--r--db/post_migrate/20221125222221_add_metrics_index_to_authentication_events.rb17
-rw-r--r--db/post_migrate/20221125222341_remove_result_index_from_authentication_events.rb18
-rw-r--r--db/post_migrate/20221128120634_schedule_fixing_security_scan_statuses.rb52
-rw-r--r--db/post_migrate/20221128220043_drop_temp_work_item_type_id_backfill_index.rb15
-rw-r--r--db/post_migrate/20221128222417_add_back_issues_work_item_type_id_index.rb15
-rw-r--r--db/post_migrate/20221129124240_remove_flowdock_integration_records.rb23
-rw-r--r--db/post_migrate/20221130192239_fix_approval_project_rules_without_protected_branches.rb27
-rw-r--r--db/post_migrate/20221202031332_add_index_to_issue_assignees_on_user_id_and_issue_id.rb15
-rw-r--r--db/post_migrate/20221202031417_remove_index_to_issue_assignees_on_user_id.rb15
-rw-r--r--db/post_migrate/20221202154128_add_pipeline_metadata_name_index.rb15
-rw-r--r--db/post_migrate/20221202154151_remove_pipeline_metadata_pipeline_id_index.rb15
-rw-r--r--db/post_migrate/20221205134448_set_index_for_issues_health_status_ordering.rb25
-rw-r--r--db/post_migrate/20221205151917_schedule_backfill_environment_tier.rb21
-rw-r--r--db/post_migrate/20221205170310_add_index_for_active_members.rb18
-rw-r--r--db/post_migrate/20221206012013_add_index_author_id_created_at_on_merge_requests.rb15
-rw-r--r--db/post_migrate/20221206075631_add_unique_id_partition_id_index_to_ci_build.rb15
-rw-r--r--db/post_migrate/20221206132610_add_unique_token_encrypted_partition_id_index_to_ci_build.rb21
-rw-r--r--db/post_migrate/20221206173132_add_issues_work_item_type_id_index.rb15
-rw-r--r--db/post_migrate/20221210154044_update_active_billable_users_index.rb29
-rw-r--r--db/post_migrate/20221212103743_add_index_id_partition_id_to_ci_build.rb17
-rw-r--r--db/post_migrate/20221213064717_change_default_partition_id_on_ci_resources.rb9
-rw-r--r--db/schema_migrations/202208240824271
-rw-r--r--db/schema_migrations/202209081500541
-rw-r--r--db/schema_migrations/202209201804511
-rw-r--r--db/schema_migrations/202210180954341
-rw-r--r--db/schema_migrations/202210260951331
-rw-r--r--db/schema_migrations/202211011748161
-rw-r--r--db/schema_migrations/202211011944161
-rw-r--r--db/schema_migrations/202211011953091
-rw-r--r--db/schema_migrations/202211011955431
-rw-r--r--db/schema_migrations/202211021507371
-rw-r--r--db/schema_migrations/202211021956421
-rw-r--r--db/schema_migrations/202211032053171
-rw-r--r--db/schema_migrations/202211041157121
-rw-r--r--db/schema_migrations/202211041416471
-rw-r--r--db/schema_migrations/202211070139431
-rw-r--r--db/schema_migrations/202211091600521
-rw-r--r--db/schema_migrations/202211100805081
-rw-r--r--db/schema_migrations/202211100806361
-rw-r--r--db/schema_migrations/202211100807481
-rw-r--r--db/schema_migrations/202211100808221
-rw-r--r--db/schema_migrations/202211100809131
-rw-r--r--db/schema_migrations/202211100809561
-rw-r--r--db/schema_migrations/202211100810371
-rw-r--r--db/schema_migrations/202211100811151
-rw-r--r--db/schema_migrations/202211100812071
-rw-r--r--db/schema_migrations/202211100813481
-rw-r--r--db/schema_migrations/202211100814481
-rw-r--r--db/schema_migrations/202211101521331
-rw-r--r--db/schema_migrations/202211101831031
-rw-r--r--db/schema_migrations/202211101903401
-rw-r--r--db/schema_migrations/202211111231461
-rw-r--r--db/schema_migrations/202211111231471
-rw-r--r--db/schema_migrations/202211111231481
-rw-r--r--db/schema_migrations/202211111352381
-rw-r--r--db/schema_migrations/202211111429211
-rw-r--r--db/schema_migrations/202211141319431
-rw-r--r--db/schema_migrations/202211141420441
-rw-r--r--db/schema_migrations/202211141426021
-rw-r--r--db/schema_migrations/202211141426161
-rw-r--r--db/schema_migrations/202211141451031
-rw-r--r--db/schema_migrations/202211142129081
-rw-r--r--db/schema_migrations/202211150858131
-rw-r--r--db/schema_migrations/202211151206021
-rw-r--r--db/schema_migrations/202211151736071
-rw-r--r--db/schema_migrations/202211151845251
-rw-r--r--db/schema_migrations/202211161000561
-rw-r--r--db/schema_migrations/202211161054341
-rw-r--r--db/schema_migrations/202211161133231
-rw-r--r--db/schema_migrations/202211161248211
-rw-r--r--db/schema_migrations/202211161438541
-rw-r--r--db/schema_migrations/202211161602041
-rw-r--r--db/schema_migrations/202211161611261
-rw-r--r--db/schema_migrations/202211171030151
-rw-r--r--db/schema_migrations/202211171350321
-rw-r--r--db/schema_migrations/202211171530151
-rw-r--r--db/schema_migrations/202211181031521
-rw-r--r--db/schema_migrations/202211181033521
-rw-r--r--db/schema_migrations/202211181037521
-rw-r--r--db/schema_migrations/202211181047521
-rw-r--r--db/schema_migrations/202211210001271
-rw-r--r--db/schema_migrations/202211210004511
-rw-r--r--db/schema_migrations/202211210912381
-rw-r--r--db/schema_migrations/202211211004311
-rw-r--r--db/schema_migrations/202211211520481
-rw-r--r--db/schema_migrations/202211211525151
-rw-r--r--db/schema_migrations/202211211558501
-rw-r--r--db/schema_migrations/202211211801381
-rw-r--r--db/schema_migrations/202211211816271
-rw-r--r--db/schema_migrations/202211211849311
-rw-r--r--db/schema_migrations/202211220639221
-rw-r--r--db/schema_migrations/202211220645371
-rw-r--r--db/schema_migrations/202211221328121
-rw-r--r--db/schema_migrations/202211221410461
-rw-r--r--db/schema_migrations/202211221551491
-rw-r--r--db/schema_migrations/202211222259251
-rw-r--r--db/schema_migrations/202211231330541
-rw-r--r--db/schema_migrations/202211241139251
-rw-r--r--db/schema_migrations/202211241536021
-rw-r--r--db/schema_migrations/202211252222211
-rw-r--r--db/schema_migrations/202211252223411
-rw-r--r--db/schema_migrations/202211281206341
-rw-r--r--db/schema_migrations/202211281235141
-rw-r--r--db/schema_migrations/202211282200431
-rw-r--r--db/schema_migrations/202211282224171
-rw-r--r--db/schema_migrations/202211291242401
-rw-r--r--db/schema_migrations/202211291926191
-rw-r--r--db/schema_migrations/202211301704331
-rw-r--r--db/schema_migrations/202211301820561
-rw-r--r--db/schema_migrations/202211301922391
-rw-r--r--db/schema_migrations/202212020313321
-rw-r--r--db/schema_migrations/202212020314171
-rw-r--r--db/schema_migrations/202212021442101
-rw-r--r--db/schema_migrations/202212021541281
-rw-r--r--db/schema_migrations/202212021541511
-rw-r--r--db/schema_migrations/202212022023511
-rw-r--r--db/schema_migrations/202212050611341
-rw-r--r--db/schema_migrations/202212051344481
-rw-r--r--db/schema_migrations/202212051519171
-rw-r--r--db/schema_migrations/202212051703101
-rw-r--r--db/schema_migrations/202212060120131
-rw-r--r--db/schema_migrations/202212060756311
-rw-r--r--db/schema_migrations/202212061326101
-rw-r--r--db/schema_migrations/202212061634201
-rw-r--r--db/schema_migrations/202212061731321
-rw-r--r--db/schema_migrations/202212062118141
-rw-r--r--db/schema_migrations/202212062220321
-rw-r--r--db/schema_migrations/202212062352081
-rw-r--r--db/schema_migrations/202212071402591
-rw-r--r--db/schema_migrations/202212072201201
-rw-r--r--db/schema_migrations/202212081229211
-rw-r--r--db/schema_migrations/202212091109341
-rw-r--r--db/schema_migrations/202212091109351
-rw-r--r--db/schema_migrations/202212101540441
-rw-r--r--db/schema_migrations/202212121037431
-rw-r--r--db/schema_migrations/202212130647171
-rw-r--r--db/schema_migrations/202212131843141
-rw-r--r--db/structure.sql663
886 files changed, 3978 insertions, 241 deletions
diff --git a/db/docs/abuse_reports.yml b/db/docs/abuse_reports.yml
index dcd081e6892..896c978f9d7 100644
--- a/db/docs/abuse_reports.yml
+++ b/db/docs/abuse_reports.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores abuse reports from other users.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/cba7f20dc8614d12e3eeda6e14f454aeb22b9b54
milestone: '7.13'
+gitlab_schema: gitlab_main
diff --git a/db/docs/achievements.yml b/db/docs/achievements.yml
new file mode 100644
index 00000000000..20f9d1616b3
--- /dev/null
+++ b/db/docs/achievements.yml
@@ -0,0 +1,10 @@
+---
+table_name: achievements
+classes:
+- Achievements::Achivement
+feature_categories:
+- users
+description: Achievements which can be created by namespaces to award them to users
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/105871
+milestone: '15.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/agent_activity_events.yml b/db/docs/agent_activity_events.yml
index 3be300e1852..9fd906d5352 100644
--- a/db/docs/agent_activity_events.yml
+++ b/db/docs/agent_activity_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Historical timeline events belonging to a cluster agent
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/74577
milestone: '14.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/agent_group_authorizations.yml b/db/docs/agent_group_authorizations.yml
index 3592c93ed83..61c8733383a 100644
--- a/db/docs/agent_group_authorizations.yml
+++ b/db/docs/agent_group_authorizations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Configuration for a group that is authorized to use a particular cluster agent
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68023
milestone: '14.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/agent_project_authorizations.yml b/db/docs/agent_project_authorizations.yml
index c4e101f754f..e595c84b5d5 100644
--- a/db/docs/agent_project_authorizations.yml
+++ b/db/docs/agent_project_authorizations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Configuration for a project that is authorized to use a particular cluster agent
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67295
milestone: '14.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/alert_management_alert_assignees.yml b/db/docs/alert_management_alert_assignees.yml
index 4d5a1acb0ca..cda7725e18f 100644
--- a/db/docs/alert_management_alert_assignees.yml
+++ b/db/docs/alert_management_alert_assignees.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists metadata between users and alerts to support alert assignments
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/32609
milestone: '13.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/alert_management_alert_metric_images.yml b/db/docs/alert_management_alert_metric_images.yml
index bcfa2b54b1c..20117109ad4 100644
--- a/db/docs/alert_management_alert_metric_images.yml
+++ b/db/docs/alert_management_alert_metric_images.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists metadata for uploads related to alerts
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/80339
milestone: '14.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/alert_management_alert_user_mentions.yml b/db/docs/alert_management_alert_user_mentions.yml
index 6a3aaf2ce83..02f5602a33f 100644
--- a/db/docs/alert_management_alert_user_mentions.yml
+++ b/db/docs/alert_management_alert_user_mentions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists metadata for system notes related to alerts
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33217
milestone: '13.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/alert_management_alerts.yml b/db/docs/alert_management_alerts.yml
index ca8b02ec346..4e3f4151165 100644
--- a/db/docs/alert_management_alerts.yml
+++ b/db/docs/alert_management_alerts.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists incoming alert data including its payload
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/29864
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/alert_management_http_integrations.yml b/db/docs/alert_management_http_integrations.yml
index 8fa330f0775..4eb824f74ec 100644
--- a/db/docs/alert_management_http_integrations.yml
+++ b/db/docs/alert_management_http_integrations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists settings for alert HTTP integrations
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/43634
milestone: '13.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/allowed_email_domains.yml b/db/docs/allowed_email_domains.yml
index 65a12dd712c..4dd6100e4c4 100644
--- a/db/docs/allowed_email_domains.yml
+++ b/db/docs/allowed_email_domains.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores email domains for group, only members with email from those domains can be added to the group
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/14800
milestone: '12.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_cycle_analytics_aggregations.yml b/db/docs/analytics_cycle_analytics_aggregations.yml
index ab92c5c078b..0f9bf6695c5 100644
--- a/db/docs/analytics_cycle_analytics_aggregations.yml
+++ b/db/docs/analytics_cycle_analytics_aggregations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores Value Stream Analytics aggregation related metadata for top-level groups.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/79942
milestone: '14.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_cycle_analytics_group_stages.yml b/db/docs/analytics_cycle_analytics_group_stages.yml
index 67bca593a61..5dbb3eba2c0 100644
--- a/db/docs/analytics_cycle_analytics_group_stages.yml
+++ b/db/docs/analytics_cycle_analytics_group_stages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/15061
milestone: '12.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_cycle_analytics_group_value_streams.yml b/db/docs/analytics_cycle_analytics_group_value_streams.yml
index 8942439dddd..e29d07c5a72 100644
--- a/db/docs/analytics_cycle_analytics_group_value_streams.yml
+++ b/db/docs/analytics_cycle_analytics_group_value_streams.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store group level Value Stream objects.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36658
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_cycle_analytics_issue_stage_events.yml b/db/docs/analytics_cycle_analytics_issue_stage_events.yml
index b3f6a9f4716..f31cb808b09 100644
--- a/db/docs/analytics_cycle_analytics_issue_stage_events.yml
+++ b/db/docs/analytics_cycle_analytics_issue_stage_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains various Issue-related timestamps for aggregating Value Stream Analytics data.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68950
milestone: '14.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_cycle_analytics_merge_request_stage_events.yml b/db/docs/analytics_cycle_analytics_merge_request_stage_events.yml
index ae3074d544b..35438cd4c0c 100644
--- a/db/docs/analytics_cycle_analytics_merge_request_stage_events.yml
+++ b/db/docs/analytics_cycle_analytics_merge_request_stage_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains various MergeRequest-related timestamps for aggregating Value Stream Analytics data.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68950
milestone: '14.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_cycle_analytics_project_stages.yml b/db/docs/analytics_cycle_analytics_project_stages.yml
index 1ff917faf94..dc5b1db16cd 100644
--- a/db/docs/analytics_cycle_analytics_project_stages.yml
+++ b/db/docs/analytics_cycle_analytics_project_stages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists project level value stream analytics stages.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/15061
milestone: '12.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_cycle_analytics_project_value_streams.yml b/db/docs/analytics_cycle_analytics_project_value_streams.yml
index 9b63ea0500a..5881c048d3b 100644
--- a/db/docs/analytics_cycle_analytics_project_value_streams.yml
+++ b/db/docs/analytics_cycle_analytics_project_value_streams.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store the value stream configurations for projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60925
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_cycle_analytics_stage_event_hashes.yml b/db/docs/analytics_cycle_analytics_stage_event_hashes.yml
index 3df5ee1c172..52cef9fcdcb 100644
--- a/db/docs/analytics_cycle_analytics_stage_event_hashes.yml
+++ b/db/docs/analytics_cycle_analytics_stage_event_hashes.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores hashes of Value Stream Analytics stage configurations.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67259
milestone: '14.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_devops_adoption_segments.yml b/db/docs/analytics_devops_adoption_segments.yml
index 4b22c5926c2..42f04f57608 100644
--- a/db/docs/analytics_devops_adoption_segments.yml
+++ b/db/docs/analytics_devops_adoption_segments.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores a reference to the Namespace which is enabled for the DevOps report.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/45748
milestone: '13.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_devops_adoption_snapshots.yml b/db/docs/analytics_devops_adoption_snapshots.yml
index 3fcaea684d6..378b83cc22f 100644
--- a/db/docs/analytics_devops_adoption_snapshots.yml
+++ b/db/docs/analytics_devops_adoption_snapshots.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains periodical DevOps Adoption data points.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47388
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_language_trend_repository_languages.yml b/db/docs/analytics_language_trend_repository_languages.yml
index c42328b6bc8..3425788591b 100644
--- a/db/docs/analytics_language_trend_repository_languages.yml
+++ b/db/docs/analytics_language_trend_repository_languages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains snapshot data about the used programming languages over time.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/16491
milestone: '12.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/analytics_usage_trends_measurements.yml b/db/docs/analytics_usage_trends_measurements.yml
index 1672c195e3d..8c492d3dda1 100644
--- a/db/docs/analytics_usage_trends_measurements.yml
+++ b/db/docs/analytics_usage_trends_measurements.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains periodically snapshotted database record counts.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62797
milestone: '14.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/appearances.yml b/db/docs/appearances.yml
index 8d30bc52d4d..104a72263f0 100644
--- a/db/docs/appearances.yml
+++ b/db/docs/appearances.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/40104eead753e7e8ea77951a74a3941546c35aab
milestone: '6.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/application_setting_terms.yml b/db/docs/application_setting_terms.yml
index 11f8c6536c4..046231b13a4 100644
--- a/db/docs/application_setting_terms.yml
+++ b/db/docs/application_setting_terms.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/cf37bef287d7dd5d2dce3e2276489767b8c0671f
milestone: '10.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/application_settings.yml b/db/docs/application_settings.yml
index ae28221b7ac..1015884e8a3 100644
--- a/db/docs/application_settings.yml
+++ b/db/docs/application_settings.yml
@@ -11,3 +11,4 @@ feature_categories:
description: GitLab application settings
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/8589b4e137f50293952923bb07e2814257d7784d
milestone: '7.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approval_merge_request_rule_sources.yml b/db/docs/approval_merge_request_rule_sources.yml
index 868d694d190..9f4c8212360 100644
--- a/db/docs/approval_merge_request_rule_sources.yml
+++ b/db/docs/approval_merge_request_rule_sources.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps connection between merge request and project approval rule
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/8497
milestone: '11.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approval_merge_request_rules.yml b/db/docs/approval_merge_request_rules.yml
index ad8b3411706..517294e4ed0 100644
--- a/db/docs/approval_merge_request_rules.yml
+++ b/db/docs/approval_merge_request_rules.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps approval merge request rules
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/8497
milestone: '11.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approval_merge_request_rules_approved_approvers.yml b/db/docs/approval_merge_request_rules_approved_approvers.yml
index 9074a4dd39a..4a453da4162 100644
--- a/db/docs/approval_merge_request_rules_approved_approvers.yml
+++ b/db/docs/approval_merge_request_rules_approved_approvers.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Join table for approved approvers and ApprovalMergeRequestRule
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/8497
milestone: '11.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approval_merge_request_rules_groups.yml b/db/docs/approval_merge_request_rules_groups.yml
index 1acf9882d57..45306dc0bd1 100644
--- a/db/docs/approval_merge_request_rules_groups.yml
+++ b/db/docs/approval_merge_request_rules_groups.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Keeps connection between group and a merge request approval rule
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/8497
milestone: '11.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approval_merge_request_rules_users.yml b/db/docs/approval_merge_request_rules_users.yml
index 750e7ae1f48..746aa70ebd2 100644
--- a/db/docs/approval_merge_request_rules_users.yml
+++ b/db/docs/approval_merge_request_rules_users.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Keeps connection between user and a merge request approval rule
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/8497
milestone: '11.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approval_project_rules.yml b/db/docs/approval_project_rules.yml
index c2aff9d358f..c970b86bb18 100644
--- a/db/docs/approval_project_rules.yml
+++ b/db/docs/approval_project_rules.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps approval project rules
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/8497
milestone: '11.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approval_project_rules_groups.yml b/db/docs/approval_project_rules_groups.yml
index 83eeb52099c..5d1b96a4197 100644
--- a/db/docs/approval_project_rules_groups.yml
+++ b/db/docs/approval_project_rules_groups.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Keeps connection between group and a project approval rule
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/8497
milestone: '11.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approval_project_rules_protected_branches.yml b/db/docs/approval_project_rules_protected_branches.yml
index a41fd741af8..e2776e89f21 100644
--- a/db/docs/approval_project_rules_protected_branches.yml
+++ b/db/docs/approval_project_rules_protected_branches.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps relation between approval project rules and protected branches.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/22673
milestone: '12.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approval_project_rules_users.yml b/db/docs/approval_project_rules_users.yml
index a1ff8bf7bff..ce35033356a 100644
--- a/db/docs/approval_project_rules_users.yml
+++ b/db/docs/approval_project_rules_users.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Keeps connection between user and a project approval rule
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/8497
milestone: '11.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approvals.yml b/db/docs/approvals.yml
index 82d833b9ba6..30cc53ece16 100644
--- a/db/docs/approvals.yml
+++ b/db/docs/approvals.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores merge request approvals made by users
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/73faf3c7289c4fa4535b752a12247ee74b173976
milestone: '7.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approver_groups.yml b/db/docs/approver_groups.yml
index e078e20814c..fd892ed3f4c 100644
--- a/db/docs/approver_groups.yml
+++ b/db/docs/approver_groups.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Group approvers of given merge request
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/743
milestone: '8.13'
+gitlab_schema: gitlab_main
diff --git a/db/docs/approvers.yml b/db/docs/approvers.yml
index f0bfa47761a..ac15bbb8767 100644
--- a/db/docs/approvers.yml
+++ b/db/docs/approvers.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Approvers of given merge request
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/3cc78d89984d9c9df8372c52b7bba38e6226f9f2
milestone: '7.13'
+gitlab_schema: gitlab_main
diff --git a/db/docs/ar_internal_metadata.yml b/db/docs/ar_internal_metadata.yml
index e299e9f6317..4e5c0c2d833 100644
--- a/db/docs/ar_internal_metadata.yml
+++ b/db/docs/ar_internal_metadata.yml
@@ -7,3 +7,4 @@ description: >-
An internal table used by ActiveRecord to store information about how the database was migrated.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/9ba1224867665844b117fa037e1465bb706b3685
milestone: '0.8'
+gitlab_schema: gitlab_internal
diff --git a/db/docs/atlassian_identities.yml b/db/docs/atlassian_identities.yml
index 64e29a80817..e43c8018d5c 100644
--- a/db/docs/atlassian_identities.yml
+++ b/db/docs/atlassian_identities.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores Atlassian credentials that are used to integrate with Atlassian API
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40176
milestone: '13.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/audit_events.yml b/db/docs/audit_events.yml
index b19b26be711..ec707e41286 100644
--- a/db/docs/audit_events.yml
+++ b/db/docs/audit_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/cf6b622686eacffa46aba5c8ed6419dc877a6b58
milestone: '7.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/audit_events_external_audit_event_destinations.yml b/db/docs/audit_events_external_audit_event_destinations.yml
index 6cac68c54cb..91fb1e5a17a 100644
--- a/db/docs/audit_events_external_audit_event_destinations.yml
+++ b/db/docs/audit_events_external_audit_event_destinations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/70706
milestone: '14.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/audit_events_streaming_event_type_filters.yml b/db/docs/audit_events_streaming_event_type_filters.yml
index 7119c84589e..fe36fbf5a5a 100644
--- a/db/docs/audit_events_streaming_event_type_filters.yml
+++ b/db/docs/audit_events_streaming_event_type_filters.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Represents a event type filter for audit event streaming
introduced_by_url:
milestone: '15.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/audit_events_streaming_headers.yml b/db/docs/audit_events_streaming_headers.yml
index 034ed2c6644..4f0ef9f20b5 100644
--- a/db/docs/audit_events_streaming_headers.yml
+++ b/db/docs/audit_events_streaming_headers.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Represents a HTTP header sent with streaming audit events
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/88063
milestone: '15.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/authentication_events.yml b/db/docs/authentication_events.yml
index 7eec9124e81..eaede3b7cd4 100644
--- a/db/docs/authentication_events.yml
+++ b/db/docs/authentication_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/39652
milestone: '13.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/award_emoji.yml b/db/docs/award_emoji.yml
index 7405e3e57e2..6cbea437117 100644
--- a/db/docs/award_emoji.yml
+++ b/db/docs/award_emoji.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store the awarding of emoji by users on Issues, Epics, and other Awardables.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/3785
milestone: '8.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/aws_roles.yml b/db/docs/aws_roles.yml
index df308acc423..902d6a97b62 100644
--- a/db/docs/aws_roles.yml
+++ b/db/docs/aws_roles.yml
@@ -7,3 +7,4 @@ feature_categories:
description: (Deprecated) AWS IAM role for creating EKS clusters via GitLab
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17057
milestone: '12.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/background_migration_jobs.yml b/db/docs/background_migration_jobs.yml
index b0fd5b58d50..14903b74ce0 100644
--- a/db/docs/background_migration_jobs.yml
+++ b/db/docs/background_migration_jobs.yml
@@ -9,3 +9,4 @@ description: >-
See https://docs.gitlab.com/ee/development/database/background_migrations.html for more details.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/35913
milestone: '13.2'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/badges.yml b/db/docs/badges.yml
index 209d4d1d88a..af05638152c 100644
--- a/db/docs/badges.yml
+++ b/db/docs/badges.yml
@@ -9,3 +9,4 @@ feature_categories:
description: Stores badges records
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/17082
milestone: '10.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/banned_users.yml b/db/docs/banned_users.yml
index 788684494db..d14b6d77234 100644
--- a/db/docs/banned_users.yml
+++ b/db/docs/banned_users.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/64728
milestone: '14.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/batched_background_migration_job_transition_logs.yml b/db/docs/batched_background_migration_job_transition_logs.yml
index 826145d82b4..d6cca5f24d3 100644
--- a/db/docs/batched_background_migration_job_transition_logs.yml
+++ b/db/docs/batched_background_migration_job_transition_logs.yml
@@ -9,3 +9,4 @@ description: >-
Every time a batched background migrations job changes to a new state, the system records that information in this table.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75113
milestone: '14.8'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/batched_background_migration_jobs.yml b/db/docs/batched_background_migration_jobs.yml
index 4a307d28781..b44cfc860d1 100644
--- a/db/docs/batched_background_migration_jobs.yml
+++ b/db/docs/batched_background_migration_jobs.yml
@@ -8,3 +8,4 @@ description: >-
The batched_background_migration_jobs table stores information about the jobs created during the execution of a batched background migration.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54628
milestone: '13.10'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/batched_background_migrations.yml b/db/docs/batched_background_migrations.yml
index a8285210801..d23f1b30b1d 100644
--- a/db/docs/batched_background_migrations.yml
+++ b/db/docs/batched_background_migrations.yml
@@ -9,3 +9,4 @@ description: >-
See https://docs.gitlab.com/ee/development/batched_background_migrations.html for more details.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54628
milestone: '13.10'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/board_assignees.yml b/db/docs/board_assignees.yml
index dd7235a440e..5da2c57c3f4 100644
--- a/db/docs/board_assignees.yml
+++ b/db/docs/board_assignees.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used by issue boards to filter issues by assignee as part of the default scope
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/2912
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/board_group_recent_visits.yml b/db/docs/board_group_recent_visits.yml
index 3e516038737..5615620567c 100644
--- a/db/docs/board_group_recent_visits.yml
+++ b/db/docs/board_group_recent_visits.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The last group issue board visited by a user, used to redirect them from the default boards page
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/7aeab58f4861144fcc1d334907cb1b465c645001
milestone: '11.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/board_labels.yml b/db/docs/board_labels.yml
index 33dfdd5df70..d682783eaf9 100644
--- a/db/docs/board_labels.yml
+++ b/db/docs/board_labels.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used by issue boards to filter issues by label as part of the default scope
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/2912
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/board_project_recent_visits.yml b/db/docs/board_project_recent_visits.yml
index bd7783acfe7..336be808517 100644
--- a/db/docs/board_project_recent_visits.yml
+++ b/db/docs/board_project_recent_visits.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The last project issue board visited by a user, used to redirect them from the default boards page
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/7aeab58f4861144fcc1d334907cb1b465c645001
milestone: '11.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/board_user_preferences.yml b/db/docs/board_user_preferences.yml
index 61b30c4fc66..c997acf3439 100644
--- a/db/docs/board_user_preferences.yml
+++ b/db/docs/board_user_preferences.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Preferences for issue boards stored on a per user basis, such as whether to hide or show labels
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33892
milestone: '13.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/boards.yml b/db/docs/boards.yml
index bf50cecd826..db177f7a562 100644
--- a/db/docs/boards.yml
+++ b/db/docs/boards.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Configuration information for issue boards, including default scope and visibility of open and closed lists
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/611dab2e522e5e59cf09cd459a31686e65616863
milestone: '8.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/boards_epic_board_labels.yml b/db/docs/boards_epic_board_labels.yml
index d34499f8105..021e34b653d 100644
--- a/db/docs/boards_epic_board_labels.yml
+++ b/db/docs/boards_epic_board_labels.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information relating epic boards to labels used to scope the boards
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/48658
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/boards_epic_board_positions.yml b/db/docs/boards_epic_board_positions.yml
index 88d01bc9a11..ba63fe2b9a8 100644
--- a/db/docs/boards_epic_board_positions.yml
+++ b/db/docs/boards_epic_board_positions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Relates epics to epic boards by position, unique to each combination of epic and board
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/48120
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/boards_epic_board_recent_visits.yml b/db/docs/boards_epic_board_recent_visits.yml
index c60d1400f8c..2262241a0c0 100644
--- a/db/docs/boards_epic_board_recent_visits.yml
+++ b/db/docs/boards_epic_board_recent_visits.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The epic board most recently visited by users, used to determine where to redirect them by default
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60720
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/boards_epic_boards.yml b/db/docs/boards_epic_boards.yml
index 7b35decdd54..d55e99e58f0 100644
--- a/db/docs/boards_epic_boards.yml
+++ b/db/docs/boards_epic_boards.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Configuration information for epic boards, including default scope and visibility of open and closed lists
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/48658
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/boards_epic_list_user_preferences.yml b/db/docs/boards_epic_list_user_preferences.yml
index ea3eee5a33f..32107ac86a2 100644
--- a/db/docs/boards_epic_list_user_preferences.yml
+++ b/db/docs/boards_epic_list_user_preferences.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Epic board list preferences on a per-user basis, specifically whether the user has collapsed the list or not
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54541
milestone: '13.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/boards_epic_lists.yml b/db/docs/boards_epic_lists.yml
index 87a15e4dde0..31fb116d110 100644
--- a/db/docs/boards_epic_lists.yml
+++ b/db/docs/boards_epic_lists.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Configuration of a single list within an epic board
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/49728
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/boards_epic_user_preferences.yml b/db/docs/boards_epic_user_preferences.yml
index 8137d370ebe..aed2b7a47d8 100644
--- a/db/docs/boards_epic_user_preferences.yml
+++ b/db/docs/boards_epic_user_preferences.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The epic_ids used to create swimlanes on issue boards; stored per user, per board
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40360
milestone: '13.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/broadcast_messages.yml b/db/docs/broadcast_messages.yml
index 1e4c181d48f..d6d6a93ad2e 100644
--- a/db/docs/broadcast_messages.yml
+++ b/db/docs/broadcast_messages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: GitLab can display broadcast messages to users of a GitLab instance
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/f1ecf53c1e55fbbc66cb2d7d12fb411cbfc2ace8
milestone: '6.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/bulk_import_configurations.yml b/db/docs/bulk_import_configurations.yml
index 8456e834230..9ddb3115068 100644
--- a/db/docs/bulk_import_configurations.yml
+++ b/db/docs/bulk_import_configurations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store the configuration details of a bulk import of groups or projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42978
milestone: '13.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/bulk_import_entities.yml b/db/docs/bulk_import_entities.yml
index 250df850949..2232d68679a 100644
--- a/db/docs/bulk_import_entities.yml
+++ b/db/docs/bulk_import_entities.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store and track the status of the migration of groups or projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42978
milestone: '13.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/bulk_import_export_uploads.yml b/db/docs/bulk_import_export_uploads.yml
index 40b418b2711..494678098a1 100644
--- a/db/docs/bulk_import_export_uploads.yml
+++ b/db/docs/bulk_import_export_uploads.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store information of the exported files containing the data of groups or projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/59976
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/bulk_import_exports.yml b/db/docs/bulk_import_exports.yml
index 27af7fd1892..cc70f92ec8f 100644
--- a/db/docs/bulk_import_exports.yml
+++ b/db/docs/bulk_import_exports.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to track the generation status of export files for groups or projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/59976
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/bulk_import_failures.yml b/db/docs/bulk_import_failures.yml
index 87a127f47c4..3d15e06e2f0 100644
--- a/db/docs/bulk_import_failures.yml
+++ b/db/docs/bulk_import_failures.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store failures that occur during the migration of groups or projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47526
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/bulk_import_trackers.yml b/db/docs/bulk_import_trackers.yml
index 6f31bfb7c80..66f0158e771 100644
--- a/db/docs/bulk_import_trackers.yml
+++ b/db/docs/bulk_import_trackers.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store and track the status of each pipeline associated with the migration of groups or projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47009
milestone: '13.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/bulk_imports.yml b/db/docs/bulk_imports.yml
index 354cb9c4ef7..c5f41fdc896 100644
--- a/db/docs/bulk_imports.yml
+++ b/db/docs/bulk_imports.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store and track the status of a bulk import request of groups or projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42978
milestone: '13.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/chat_names.yml b/db/docs/chat_names.yml
index c588c65dca5..fd1efaf91d7 100644
--- a/db/docs/chat_names.yml
+++ b/db/docs/chat_names.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Stores mappings from external chat accounts to GitLab users.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/7450
milestone: '8.14'
+gitlab_schema: gitlab_main
diff --git a/db/docs/chat_teams.yml b/db/docs/chat_teams.yml
index 295947d77c8..d50e596279a 100644
--- a/db/docs/chat_teams.yml
+++ b/db/docs/chat_teams.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Stores mappings from external chat teams to GitLab groups.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/8746
milestone: '9.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/ci_build_needs.yml b/db/docs/ci_build_needs.yml
index f9367124ed2..7253e83601a 100644
--- a/db/docs/ci_build_needs.yml
+++ b/db/docs/ci_build_needs.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Dependencies for a specific CI/CD job.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/31328
milestone: '12.2'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_build_pending_states.yml b/db/docs/ci_build_pending_states.yml
index aa9e07d64b5..24b640c9598 100644
--- a/db/docs/ci_build_pending_states.yml
+++ b/db/docs/ci_build_pending_states.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/41585
milestone: '13.4'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_build_report_results.yml b/db/docs/ci_build_report_results.yml
index b1f112aea3c..388b4d8445d 100644
--- a/db/docs/ci_build_report_results.yml
+++ b/db/docs/ci_build_report_results.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores data related to the build that finished, including junit test data.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/32991
milestone: '13.1'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_build_trace_chunks.yml b/db/docs/ci_build_trace_chunks.yml
index b44f04d3e60..3d7bd10192d 100644
--- a/db/docs/ci_build_trace_chunks.yml
+++ b/db/docs/ci_build_trace_chunks.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/9d6fe7bfdf9ff3f68ee73baa0e3d0aa7df13c351
milestone: '10.8'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_build_trace_metadata.yml b/db/docs/ci_build_trace_metadata.yml
index 54c35cf9c76..25b45fbc95c 100644
--- a/db/docs/ci_build_trace_metadata.yml
+++ b/db/docs/ci_build_trace_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68171
milestone: '14.2'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_builds.yml b/db/docs/ci_builds.yml
index fdaecfe22e8..547338b5969 100644
--- a/db/docs/ci_builds.yml
+++ b/db/docs/ci_builds.yml
@@ -11,3 +11,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/046b28312704f3131e72dcd2dbdacc5264d4aa62
milestone: '8.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_builds_metadata.yml b/db/docs/ci_builds_metadata.yml
index ce5c72cf0f1..71f8a0c5427 100644
--- a/db/docs/ci_builds_metadata.yml
+++ b/db/docs/ci_builds_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/1dde609ca6b130aa0a3d39e929edee7e770e62fc
milestone: '10.7'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_builds_runner_session.yml b/db/docs/ci_builds_runner_session.yml
index 0e46442da3f..282da1de91d 100644
--- a/db/docs/ci_builds_runner_session.yml
+++ b/db/docs/ci_builds_runner_session.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store build-related runner session. Data is removed after the respective job transitions from running to any state.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6208
milestone: '11.1'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_daily_build_group_report_results.yml b/db/docs/ci_daily_build_group_report_results.yml
index 3e75950f462..1d88a4c3e40 100644
--- a/db/docs/ci_daily_build_group_report_results.yml
+++ b/db/docs/ci_daily_build_group_report_results.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores daily aggregated data related to the build group, including code coverage data.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/30387
milestone: '13.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_deleted_objects.yml b/db/docs/ci_deleted_objects.yml
index a2e108e6c0a..bb35f63b438 100644
--- a/db/docs/ci_deleted_objects.yml
+++ b/db/docs/ci_deleted_objects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Allows efficient batch deletion of data in object storage.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/9bf76fe03f8edf4f67023448161af27abb8fb521
milestone: '13.5'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_freeze_periods.yml b/db/docs/ci_freeze_periods.yml
index 5c6e25ecc32..0267f925149 100644
--- a/db/docs/ci_freeze_periods.yml
+++ b/db/docs/ci_freeze_periods.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/ci/environments/deployment_safety.html#prevent-deployments-during-deploy-freeze-windows
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/29162
milestone: '13.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_group_variables.yml b/db/docs/ci_group_variables.yml
index de361da918d..c504a601c4c 100644
--- a/db/docs/ci_group_variables.yml
+++ b/db/docs/ci_group_variables.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/5b0954759cc24bdba97be89bb117c5440174f859
milestone: '9.4'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_instance_variables.yml b/db/docs/ci_instance_variables.yml
index 94d7c08a0fa..c39fe03b993 100644
--- a/db/docs/ci_instance_variables.yml
+++ b/db/docs/ci_instance_variables.yml
@@ -7,3 +7,4 @@ feature_categories:
description: CI/CD variables available to all projects and groups in an instance.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/30156
milestone: '13.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_job_artifact_states.yml b/db/docs/ci_job_artifact_states.yml
index 6fe7443dd26..4c9116a059b 100644
--- a/db/docs/ci_job_artifact_states.yml
+++ b/db/docs/ci_job_artifact_states.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Separate table for job artifacts containing Geo verification metadata.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75264
milestone: '14.8'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_job_artifacts.yml b/db/docs/ci_job_artifacts.yml
index 492132315b6..bff81fa5ae9 100644
--- a/db/docs/ci_job_artifacts.yml
+++ b/db/docs/ci_job_artifacts.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Stores artifacts produced by a build.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/61864a5a5bb523953589c9398a431c4369fbfc76
milestone: '10.3'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_job_token_project_scope_links.yml b/db/docs/ci_job_token_project_scope_links.yml
index 993d392bb93..de6d69d1c64 100644
--- a/db/docs/ci_job_token_project_scope_links.yml
+++ b/db/docs/ci_job_token_project_scope_links.yml
@@ -4,6 +4,10 @@ classes:
- Ci::JobToken::ProjectScopeLink
feature_categories:
- continuous_integration
-description: The connection between a source project, which defines the job token scope, and a target project, which is the one allowed to be accessed by the job token.
+description: |
+ Links a source project and target project, allowing a project's job token to give access to another project.
+ Using the outbound direction, the source project's job token can access target projects.
+ Using the inbound direction, the source project can be accessed by the target project's job token.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62733
milestone: '14.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_job_variables.yml b/db/docs/ci_job_variables.yml
index f913ee4f800..1cbabb4fcbb 100644
--- a/db/docs/ci_job_variables.yml
+++ b/db/docs/ci_job_variables.yml
@@ -7,3 +7,4 @@ feature_categories:
description: CI/CD variables set to a job when running it manually.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/14784
milestone: '12.2'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_minutes_additional_packs.yml b/db/docs/ci_minutes_additional_packs.yml
index 37e5e9b1423..2be58f2cdde 100644
--- a/db/docs/ci_minutes_additional_packs.yml
+++ b/db/docs/ci_minutes_additional_packs.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62393
milestone: '14.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_namespace_mirrors.yml b/db/docs/ci_namespace_mirrors.yml
index 31349cfa94c..dd6b8eab821 100644
--- a/db/docs/ci_namespace_mirrors.yml
+++ b/db/docs/ci_namespace_mirrors.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Mirrors some data from the `main` database into the `ci` database so that we can join directly in a single query
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75621
milestone: '14.6'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_namespace_monthly_usages.yml b/db/docs/ci_namespace_monthly_usages.yml
index 601d208f1af..276cc52c7f3 100644
--- a/db/docs/ci_namespace_monthly_usages.yml
+++ b/db/docs/ci_namespace_monthly_usages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/52915
milestone: '13.9'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_partitions.yml b/db/docs/ci_partitions.yml
index 8dfa31f05f9..98144deb0c2 100644
--- a/db/docs/ci_partitions.yml
+++ b/db/docs/ci_partitions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Database partitioning metadata for CI tables
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/96856
milestone: '15.4'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_pending_builds.yml b/db/docs/ci_pending_builds.yml
index 68a31db0868..5622df4feab 100644
--- a/db/docs/ci_pending_builds.yml
+++ b/db/docs/ci_pending_builds.yml
@@ -4,6 +4,7 @@ classes:
- Ci::PendingBuild
feature_categories:
- continuous_integration
-description: TODO
+description: Pending builds metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/61581
milestone: '14.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_pipeline_artifacts.yml b/db/docs/ci_pipeline_artifacts.yml
index 124fe4de90b..6d498f6c99a 100644
--- a/db/docs/ci_pipeline_artifacts.yml
+++ b/db/docs/ci_pipeline_artifacts.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores aggregated artifacts produced by a pipeline.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37969
milestone: '13.3'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_pipeline_chat_data.yml b/db/docs/ci_pipeline_chat_data.yml
index 1edd3c923f2..eeef86bd4dd 100644
--- a/db/docs/ci_pipeline_chat_data.yml
+++ b/db/docs/ci_pipeline_chat_data.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about a CI pipeline created via chatops
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/4466
milestone: '10.6'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_pipeline_messages.yml b/db/docs/ci_pipeline_messages.yml
index ad759f5f7e6..603b7934939 100644
--- a/db/docs/ci_pipeline_messages.yml
+++ b/db/docs/ci_pipeline_messages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33762
milestone: '13.2'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_pipeline_metadata.yml b/db/docs/ci_pipeline_metadata.yml
index ed0bd896841..8a255916261 100644
--- a/db/docs/ci_pipeline_metadata.yml
+++ b/db/docs/ci_pipeline_metadata.yml
@@ -1,9 +1,10 @@
---
-table_name: ci_pipelines_metadata
+table_name: ci_pipeline_metadata
classes:
- Ci::PipelineMetadata
feature_categories:
- continuous_integration
-description: 'Stores additional information about CI pipelines'
+description: Stores additional information about CI pipelines
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/97139
milestone: '15.5'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_pipeline_schedule_variables.yml b/db/docs/ci_pipeline_schedule_variables.yml
index 20c439c7d87..9cf48ef2fea 100644
--- a/db/docs/ci_pipeline_schedule_variables.yml
+++ b/db/docs/ci_pipeline_schedule_variables.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/d278da48f837292491aaf81649afef1da3a1eb09
milestone: '9.4'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_pipeline_schedules.yml b/db/docs/ci_pipeline_schedules.yml
index e61e3adfb82..a5a17c0941a 100644
--- a/db/docs/ci_pipeline_schedules.yml
+++ b/db/docs/ci_pipeline_schedules.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/8df3997a92bffa2d29f3c559933a336b837cdb93
milestone: '9.2'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_pipeline_variables.yml b/db/docs/ci_pipeline_variables.yml
index a98f17405bc..aaf49b17c99 100644
--- a/db/docs/ci_pipeline_variables.yml
+++ b/db/docs/ci_pipeline_variables.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/56418e85ac6b667d19495665860092ce4d74f55d
milestone: '9.5'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_pipelines.yml b/db/docs/ci_pipelines.yml
index 8931c5233f3..62ec2508ad9 100644
--- a/db/docs/ci_pipelines.yml
+++ b/db/docs/ci_pipelines.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/c6ae290cea4b88ecaa9cfe0bc9d88e8fd32070c1
milestone: '9.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_pipelines_config.yml b/db/docs/ci_pipelines_config.yml
index c3a5f33fda0..42a7b460bbd 100644
--- a/db/docs/ci_pipelines_config.yml
+++ b/db/docs/ci_pipelines_config.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/21827
milestone: '12.7'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_platform_metrics.yml b/db/docs/ci_platform_metrics.yml
index b96f613f3ac..c3026d66783 100644
--- a/db/docs/ci_platform_metrics.yml
+++ b/db/docs/ci_platform_metrics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Instrumentation for https://docs.gitlab.com/ee/ci/cloud_deployment/ecs/quick_start_guide.html
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40036
milestone: '13.4'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_project_mirrors.yml b/db/docs/ci_project_mirrors.yml
index f04fbf80596..d6619880b20 100644
--- a/db/docs/ci_project_mirrors.yml
+++ b/db/docs/ci_project_mirrors.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Mirrors some data from the `main` database into the `ci` database so that we can join directly in a single query
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75621
milestone: '14.6'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_project_monthly_usages.yml b/db/docs/ci_project_monthly_usages.yml
index e7f0dc2b17b..03d84aa669f 100644
--- a/db/docs/ci_project_monthly_usages.yml
+++ b/db/docs/ci_project_monthly_usages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53460
milestone: '13.9'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_refs.yml b/db/docs/ci_refs.yml
index ce2d9256a9c..1e4da221241 100644
--- a/db/docs/ci_refs.yml
+++ b/db/docs/ci_refs.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/16951
milestone: '12.9'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_resource_groups.yml b/db/docs/ci_resource_groups.yml
index 716dea0b182..ea66284ccd1 100644
--- a/db/docs/ci_resource_groups.yml
+++ b/db/docs/ci_resource_groups.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/ci/resource_groups/
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20950
milestone: '12.7'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_resources.yml b/db/docs/ci_resources.yml
index 2fac94eb416..1950db54890 100644
--- a/db/docs/ci_resources.yml
+++ b/db/docs/ci_resources.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20950
milestone: '12.7'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_runner_namespaces.yml b/db/docs/ci_runner_namespaces.yml
index ea57281076d..e6d4693e58c 100644
--- a/db/docs/ci_runner_namespaces.yml
+++ b/db/docs/ci_runner_namespaces.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Relationships between runners and namespaces for group runners
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/1549239849adf31a078be7503ab2288795e337cf
milestone: '10.8'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_runner_projects.yml b/db/docs/ci_runner_projects.yml
index 120044e4a34..3819cddb8a0 100644
--- a/db/docs/ci_runner_projects.yml
+++ b/db/docs/ci_runner_projects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Relationships between runners and projects for project runners
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/046b28312704f3131e72dcd2dbdacc5264d4aa62
milestone: '8.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_runner_versions.yml b/db/docs/ci_runner_versions.yml
index e0221e3956f..cb983222a6e 100644
--- a/db/docs/ci_runner_versions.yml
+++ b/db/docs/ci_runner_versions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information about used Ci::Runner versions
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/90982
milestone: '15.2'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_runners.yml b/db/docs/ci_runners.yml
index 1ca8cb39738..5930adf7062 100644
--- a/db/docs/ci_runners.yml
+++ b/db/docs/ci_runners.yml
@@ -9,3 +9,4 @@ feature_categories:
description: Registered CI runners
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/046b28312704f3131e72dcd2dbdacc5264d4aa62
milestone: '8.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_running_builds.yml b/db/docs/ci_running_builds.yml
index 5a004ac9c61..72e941a8665 100644
--- a/db/docs/ci_running_builds.yml
+++ b/db/docs/ci_running_builds.yml
@@ -4,6 +4,13 @@ classes:
- Ci::RunningBuild
feature_categories:
- continuous_integration
-description: TODO
+description: >
+ Running builds metadata.
+ Despite the generic `RunningBuild` name, in this first iteration it applies only to shared runners.
+ The decision to insert all of the running builds here was deferred to avoid the pressure on the database as
+ at this time that was not necessary.
+ We can reconsider the decision to limit this only to shared runners when there is more evidence that inserting all
+ of the running builds there is worth the additional pressure.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62912
milestone: '14.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_secure_file_states.yml b/db/docs/ci_secure_file_states.yml
index 5e8a748e52a..5734f040f2f 100644
--- a/db/docs/ci_secure_file_states.yml
+++ b/db/docs/ci_secure_file_states.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores verification state for Geo replicated Project-level Secure Files.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/90510
milestone: '15.2'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_secure_files.yml b/db/docs/ci_secure_files.yml
index deeb24b02a5..6124eeade28 100644
--- a/db/docs/ci_secure_files.yml
+++ b/db/docs/ci_secure_files.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/77886
milestone: '14.7'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_sources_pipelines.yml b/db/docs/ci_sources_pipelines.yml
index 1fdc758a181..7e0121ab66e 100644
--- a/db/docs/ci_sources_pipelines.yml
+++ b/db/docs/ci_sources_pipelines.yml
@@ -7,3 +7,4 @@ feature_categories:
description: It stores parent-child and cross-project pipeline relationships.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/163983e0d7d1dab622846441bd0dd9086c78a69f
milestone: '9.3'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_sources_projects.yml b/db/docs/ci_sources_projects.yml
index b39e3a20f03..10aba3025d8 100644
--- a/db/docs/ci_sources_projects.yml
+++ b/db/docs/ci_sources_projects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20063
milestone: '12.9'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_stages.yml b/db/docs/ci_stages.yml
index 9c71193dfd4..553e4a612bf 100644
--- a/db/docs/ci_stages.yml
+++ b/db/docs/ci_stages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/acc22a8422cd1471819510aa375c455b5ea009c5
milestone: '9.3'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_subscriptions_projects.yml b/db/docs/ci_subscriptions_projects.yml
index 0e55c95d6bb..e383432eac6 100644
--- a/db/docs/ci_subscriptions_projects.yml
+++ b/db/docs/ci_subscriptions_projects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/18678
milestone: '12.5'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_trigger_requests.yml b/db/docs/ci_trigger_requests.yml
index 25360f81f50..15e15e9b7bc 100644
--- a/db/docs/ci_trigger_requests.yml
+++ b/db/docs/ci_trigger_requests.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/046b28312704f3131e72dcd2dbdacc5264d4aa62
milestone: '8.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_triggers.yml b/db/docs/ci_triggers.yml
index c0e556b481c..d17efc7b85a 100644
--- a/db/docs/ci_triggers.yml
+++ b/db/docs/ci_triggers.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/046b28312704f3131e72dcd2dbdacc5264d4aa62
milestone: '8.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_unit_test_failures.yml b/db/docs/ci_unit_test_failures.yml
index 9a1b27e8062..90f6e780e19 100644
--- a/db/docs/ci_unit_test_failures.yml
+++ b/db/docs/ci_unit_test_failures.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores unit test failure data produced from builds.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56137
milestone: '13.11'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_unit_tests.yml b/db/docs/ci_unit_tests.yml
index 46b405678f0..501795a7182 100644
--- a/db/docs/ci_unit_tests.yml
+++ b/db/docs/ci_unit_tests.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores unit test data produced from builds.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56137
milestone: '13.11'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/ci_variables.yml b/db/docs/ci_variables.yml
index 2636ff2aa30..bcb6b3f3753 100644
--- a/db/docs/ci_variables.yml
+++ b/db/docs/ci_variables.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/046b28312704f3131e72dcd2dbdacc5264d4aa62
milestone: '8.0'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/cluster_agent_tokens.yml b/db/docs/cluster_agent_tokens.yml
index a08684e4e84..24b093c948c 100644
--- a/db/docs/cluster_agent_tokens.yml
+++ b/db/docs/cluster_agent_tokens.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Tokens used by cluster agents to connect to GitLab
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33228
milestone: '13.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/cluster_agents.yml b/db/docs/cluster_agents.yml
index 59090f2ff75..14574fb82f4 100644
--- a/db/docs/cluster_agents.yml
+++ b/db/docs/cluster_agents.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Represents a GitLab Agent for Kubernetes installed in a Kubernetes cluster
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33228
milestone: '13.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/cluster_enabled_grants.yml b/db/docs/cluster_enabled_grants.yml
index 7a8faba26d6..873bbb4b7b5 100644
--- a/db/docs/cluster_enabled_grants.yml
+++ b/db/docs/cluster_enabled_grants.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists information about namespaces which got an extended life for certificate based clusters
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/87149
milestone: '15.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/cluster_groups.yml b/db/docs/cluster_groups.yml
index 8a20ad3d562..ff5c3d890fd 100644
--- a/db/docs/cluster_groups.yml
+++ b/db/docs/cluster_groups.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Group
feature_categories:
- kubernetes_management
-description: (Deprecated) Join table between 'clusters' and 'namespaces'
+description: "(Deprecated) Join table between 'clusters' and 'namespaces'"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/0e15eec86d83cbdfefe17966bf5c02e4d419a34d
milestone: '11.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/cluster_platforms_kubernetes.yml b/db/docs/cluster_platforms_kubernetes.yml
index ab1b53e36b4..c92705b7c46 100644
--- a/db/docs/cluster_platforms_kubernetes.yml
+++ b/db/docs/cluster_platforms_kubernetes.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Platforms::Kubernetes
feature_categories:
- kubernetes_management
-description: (Deprecated) Kubernetes specific details for a cluster integration
+description: "(Deprecated) Kubernetes specific details for a cluster integration"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/d0cff7f5855f91b5479f9fdaa39d8d95ec691a9e
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/cluster_projects.yml b/db/docs/cluster_projects.yml
index 51f996c0d5c..89bcd726e1f 100644
--- a/db/docs/cluster_projects.yml
+++ b/db/docs/cluster_projects.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Project
feature_categories:
- kubernetes_management
-description: (Deprecated) Join table between 'clusters' and 'projects'
+description: "(Deprecated) Join table between 'clusters' and 'projects'"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/d0cff7f5855f91b5479f9fdaa39d8d95ec691a9e
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/cluster_providers_aws.yml b/db/docs/cluster_providers_aws.yml
index 1af9a814685..7c32b9291d1 100644
--- a/db/docs/cluster_providers_aws.yml
+++ b/db/docs/cluster_providers_aws.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Providers::Aws
feature_categories:
- kubernetes_management
-description: (Deprecated) AWS specific details for an EKS cluster integration
+description: "(Deprecated) AWS specific details for an EKS cluster integration"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17057
milestone: '12.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/cluster_providers_gcp.yml b/db/docs/cluster_providers_gcp.yml
index 3ef9ebb995c..cc89320d346 100644
--- a/db/docs/cluster_providers_gcp.yml
+++ b/db/docs/cluster_providers_gcp.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Providers::Gcp
feature_categories:
- kubernetes_management
-description: (Deprecated) GCP specific details for a GKE cluster integration
+description: "(Deprecated) GCP specific details for a GKE cluster integration"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/d0cff7f5855f91b5479f9fdaa39d8d95ec691a9e
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters.yml b/db/docs/clusters.yml
index cad0fd4c3b3..f791c84bfa2 100644
--- a/db/docs/clusters.yml
+++ b/db/docs/clusters.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists information about GitLab managed clusters
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/14879
milestone: '10.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters_applications_cert_managers.yml b/db/docs/clusters_applications_cert_managers.yml
index bf85400c3ae..36bc15e045c 100644
--- a/db/docs/clusters_applications_cert_managers.yml
+++ b/db/docs/clusters_applications_cert_managers.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Applications::CertManager
feature_categories:
- kubernetes_management
-description: (Deprecated) A GitLab managed cert-manager installation in a Kubernetes cluster
+description: "(Deprecated) A GitLab managed cert-manager installation in a Kubernetes cluster"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/8837519445c319a699e0f3ced1c6912c839f3389
milestone: '11.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters_applications_cilium.yml b/db/docs/clusters_applications_cilium.yml
index 1fa71a93911..8744ee73633 100644
--- a/db/docs/clusters_applications_cilium.yml
+++ b/db/docs/clusters_applications_cilium.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information about installed instance of Cilium in the cluster
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/34601
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters_applications_crossplane.yml b/db/docs/clusters_applications_crossplane.yml
index ef9bbed9415..f633f746e70 100644
--- a/db/docs/clusters_applications_crossplane.yml
+++ b/db/docs/clusters_applications_crossplane.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Applications::Crossplane
feature_categories:
- kubernetes_management
-description: (Deprecated) A GitLab managed Crossplane installation in a Kubernetes cluster
+description: "(Deprecated) A GitLab managed Crossplane installation in a Kubernetes cluster"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/18797
milestone: '12.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters_applications_helm.yml b/db/docs/clusters_applications_helm.yml
index 83014ab9221..bb849a21cae 100644
--- a/db/docs/clusters_applications_helm.yml
+++ b/db/docs/clusters_applications_helm.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Applications::Helm
feature_categories:
- kubernetes_management
-description: (Deprecated) A GitLab managed Helm installation in a Kubernetes cluster
+description: "(Deprecated) A GitLab managed Helm installation in a Kubernetes cluster"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/64be8d70ae20928df351e495a3442bb6036bc3e7
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters_applications_ingress.yml b/db/docs/clusters_applications_ingress.yml
index 73c0d8d7cb4..02dda5a4498 100644
--- a/db/docs/clusters_applications_ingress.yml
+++ b/db/docs/clusters_applications_ingress.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Applications::Ingress
feature_categories:
- kubernetes_management
-description: (Deprecated) A GitLab managed Ingress installation in a Kubernetes cluster
+description: "(Deprecated) A GitLab managed Ingress installation in a Kubernetes cluster"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/d8223468ae2ae061020cc26336c51dc93cc75571
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters_applications_jupyter.yml b/db/docs/clusters_applications_jupyter.yml
index faff294bf6b..b15b889779b 100644
--- a/db/docs/clusters_applications_jupyter.yml
+++ b/db/docs/clusters_applications_jupyter.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Applications::Jupyter
feature_categories:
- kubernetes_management
-description: (Deprecated) A GitLab managed Jupyter installation in a Kubernetes cluster
+description: "(Deprecated) A GitLab managed Jupyter installation in a Kubernetes cluster"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/db9f765852d9fef464e69c0bf47a382f2ab7219d
milestone: '11.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters_applications_knative.yml b/db/docs/clusters_applications_knative.yml
index 4d8d3a30ad5..e17a0284a1f 100644
--- a/db/docs/clusters_applications_knative.yml
+++ b/db/docs/clusters_applications_knative.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Applications::Knative
feature_categories:
- kubernetes_management
-description: (Deprecated) A GitLab managed Knative installation in a Kubernetes cluster
+description: "(Deprecated) A GitLab managed Knative installation in a Kubernetes cluster"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/b5155b90ee233e2824c168fbb06b3ce5d3aeb194
milestone: '11.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters_applications_prometheus.yml b/db/docs/clusters_applications_prometheus.yml
index 394ab63f81f..9b99ffba5db 100644
--- a/db/docs/clusters_applications_prometheus.yml
+++ b/db/docs/clusters_applications_prometheus.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information about installed instance of Prometheus in the cluster
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/0d4548026f3060ca0a8f7aa8d8fc89838bc66130
milestone: '10.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters_applications_runners.yml b/db/docs/clusters_applications_runners.yml
index 06c43337b83..c2fd4799cf9 100644
--- a/db/docs/clusters_applications_runners.yml
+++ b/db/docs/clusters_applications_runners.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::Applications::Runner
feature_categories:
- kubernetes_management
-description: (Deprecated) A GitLab managed Runner installation in a Kubernetes cluster
+description: "(Deprecated) A GitLab managed Runner installation in a Kubernetes cluster"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/c607008ee55e35465e04a938a341f2f24cb6761f
milestone: '10.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters_integration_prometheus.yml b/db/docs/clusters_integration_prometheus.yml
index f8702226daa..a0abd9935d8 100644
--- a/db/docs/clusters_integration_prometheus.yml
+++ b/db/docs/clusters_integration_prometheus.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists information about prometheus cluster integration
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/59091
milestone: '13.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/clusters_kubernetes_namespaces.yml b/db/docs/clusters_kubernetes_namespaces.yml
index 0772f9ce877..3572cfa4f2c 100644
--- a/db/docs/clusters_kubernetes_namespaces.yml
+++ b/db/docs/clusters_kubernetes_namespaces.yml
@@ -4,6 +4,7 @@ classes:
- Clusters::KubernetesNamespace
feature_categories:
- kubernetes_management
-description: (Deprecated) A Kubernetes namespace in a GitLab managed Kubernetes cluster
+description: "(Deprecated) A Kubernetes namespace in a GitLab managed Kubernetes cluster"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/e3ca493876ab71ed29817a0af436fc563f564bbe
milestone: '11.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/commit_user_mentions.yml b/db/docs/commit_user_mentions.yml
index e04f2001d9c..6dbd0a1f1bf 100644
--- a/db/docs/commit_user_mentions.yml
+++ b/db/docs/commit_user_mentions.yml
@@ -4,6 +4,7 @@ classes:
- CommitUserMention
feature_categories:
- team_planning
-description: User mentions in commit messages
+description: User mentions in commit messages
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19009
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/compliance_management_frameworks.yml b/db/docs/compliance_management_frameworks.yml
index edf89095593..9a75e43a938 100644
--- a/db/docs/compliance_management_frameworks.yml
+++ b/db/docs/compliance_management_frameworks.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/44098
milestone: '13.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/container_expiration_policies.yml b/db/docs/container_expiration_policies.yml
index a7027ee6f5e..8cc8c675cf9 100644
--- a/db/docs/container_expiration_policies.yml
+++ b/db/docs/container_expiration_policies.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Project level settings for container registry cleanup policies
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20412
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/container_repositories.yml b/db/docs/container_repositories.yml
index c4eb599848a..472385b8e65 100644
--- a/db/docs/container_repositories.yml
+++ b/db/docs/container_repositories.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Container registry repositories (images), originally named container_images, renamed in https://gitlab.com/gitlab-org/gitlab/-/commit/01d159b409d8b24d36204979a73de249843d71bf
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/10109
milestone: '9.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/content_blocked_states.yml b/db/docs/content_blocked_states.yml
index 0abf239a98b..38349b2014a 100644
--- a/db/docs/content_blocked_states.yml
+++ b/db/docs/content_blocked_states.yml
@@ -6,3 +6,4 @@ feature_categories:
description: JiHu only. Keeps list of restricted blobs.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/72124
milestone: '14.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/conversational_development_index_metrics.yml b/db/docs/conversational_development_index_metrics.yml
index 9371f9f1bfb..507b21daf53 100644
--- a/db/docs/conversational_development_index_metrics.yml
+++ b/db/docs/conversational_development_index_metrics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains data for calculating DevOps score.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/26dde5f55f1dac2e6bea4f7e1dfa51c72dc756cb
milestone: '9.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/coverage_fuzzing_corpuses.yml b/db/docs/coverage_fuzzing_corpuses.yml
index 3e8e55cd4e6..38410c1a72d 100644
--- a/db/docs/coverage_fuzzing_corpuses.yml
+++ b/db/docs/coverage_fuzzing_corpuses.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores additional values describing corpuses used by coverage fuzzing
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/71704
milestone: '14.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/csv_issue_imports.yml b/db/docs/csv_issue_imports.yml
index 7560876c4a0..c5bdd72e6e4 100644
--- a/db/docs/csv_issue_imports.yml
+++ b/db/docs/csv_issue_imports.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to report the unique user usage of the CSV Issue Import feature
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/44742
milestone: '13.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/custom_emoji.yml b/db/docs/custom_emoji.yml
index 205e652835e..2b20ea014f4 100644
--- a/db/docs/custom_emoji.yml
+++ b/db/docs/custom_emoji.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Filename and name of custom emoji created by users
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/24229
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/customer_relations_contacts.yml b/db/docs/customer_relations_contacts.yml
index 57fce1e0def..dcb7e3184dd 100644
--- a/db/docs/customer_relations_contacts.yml
+++ b/db/docs/customer_relations_contacts.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contacts, against which time can be spent by users on issues using the CRM functionality
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67985
milestone: '14.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/customer_relations_organizations.yml b/db/docs/customer_relations_organizations.yml
index b25c70a4fd2..07f9ed01ca6 100644
--- a/db/docs/customer_relations_organizations.yml
+++ b/db/docs/customer_relations_organizations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Organizations, against which time can be spent by users on issues using the CRM functionality
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67551
milestone: '14.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_pre_scan_verification_steps.yml b/db/docs/dast_pre_scan_verification_steps.yml
new file mode 100644
index 00000000000..9b7e7a78d09
--- /dev/null
+++ b/db/docs/dast_pre_scan_verification_steps.yml
@@ -0,0 +1,10 @@
+---
+table_name: dast_pre_scan_verification_steps
+classes:
+- Dast::PreScanVerificationStep
+feature_categories:
+- dynamic_application_security_testing
+description: Verification step status for DAST Profiles
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/105702
+milestone: '15.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_pre_scan_verifications.yml b/db/docs/dast_pre_scan_verifications.yml
new file mode 100644
index 00000000000..45d39335264
--- /dev/null
+++ b/db/docs/dast_pre_scan_verifications.yml
@@ -0,0 +1,10 @@
+---
+table_name: dast_pre_scan_verifications
+classes:
+- Dast::PreScanVerifications
+feature_categories:
+- dynamic_application_security_testing
+description: Verification status for DAST Profiles
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/103063
+milestone: '15.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_profile_schedules.yml b/db/docs/dast_profile_schedules.yml
index 820251d2e16..b7846b6d798 100644
--- a/db/docs/dast_profile_schedules.yml
+++ b/db/docs/dast_profile_schedules.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Scheduling for scans using DAST Profiles
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65327
milestone: '14.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_profiles.yml b/db/docs/dast_profiles.yml
index bd909be59f1..a7999915039 100644
--- a/db/docs/dast_profiles.yml
+++ b/db/docs/dast_profiles.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Profile used to run a DAST on-demand scan
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/51296
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_profiles_pipelines.yml b/db/docs/dast_profiles_pipelines.yml
index 3b972423083..19a235d6ba4 100644
--- a/db/docs/dast_profiles_pipelines.yml
+++ b/db/docs/dast_profiles_pipelines.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table between DAST Profiles and CI Pipelines
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56821
milestone: '13.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_scanner_profiles.yml b/db/docs/dast_scanner_profiles.yml
index bb5850abbd2..8d69bef4b60 100644
--- a/db/docs/dast_scanner_profiles.yml
+++ b/db/docs/dast_scanner_profiles.yml
@@ -7,3 +7,4 @@ feature_categories:
description: A scanner profile defines the scanner settings used to run an on-demand scan
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37404
milestone: '13.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_scanner_profiles_builds.yml b/db/docs/dast_scanner_profiles_builds.yml
index 8beed026a0b..c4531c21fbf 100644
--- a/db/docs/dast_scanner_profiles_builds.yml
+++ b/db/docs/dast_scanner_profiles_builds.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table between DAST Scanner Profiles and CI Builds
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63362
milestone: '14.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_scanner_profiles_tags.yml b/db/docs/dast_scanner_profiles_tags.yml
new file mode 100644
index 00000000000..9766ce6c4fc
--- /dev/null
+++ b/db/docs/dast_scanner_profiles_tags.yml
@@ -0,0 +1,10 @@
+---
+table_name: dast_scanner_profiles_tags
+classes:
+ - Dast::ScannerProfileTag
+feature_categories:
+ - dynamic_application_security_testing
+description: Join Table for Runner tags and DAST Scanner Profiles
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/104909
+milestone: '15.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_site_profile_secret_variables.yml b/db/docs/dast_site_profile_secret_variables.yml
index d1711d5f6e7..c9a51911dc9 100644
--- a/db/docs/dast_site_profile_secret_variables.yml
+++ b/db/docs/dast_site_profile_secret_variables.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Secret variables used in DAST on-demand scans
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56067
milestone: '13.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_site_profiles.yml b/db/docs/dast_site_profiles.yml
index a584a8eaf22..e9542426cd7 100644
--- a/db/docs/dast_site_profiles.yml
+++ b/db/docs/dast_site_profiles.yml
@@ -7,3 +7,4 @@ feature_categories:
description: A site profile describes the attributes of a web site to scan on demand with DAST
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36659
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_site_profiles_builds.yml b/db/docs/dast_site_profiles_builds.yml
index 71bfea2e122..bbe3dbe7396 100644
--- a/db/docs/dast_site_profiles_builds.yml
+++ b/db/docs/dast_site_profiles_builds.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table between DAST Site Profiles and CI Builds
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63362
milestone: '14.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_site_profiles_pipelines.yml b/db/docs/dast_site_profiles_pipelines.yml
index 022b241934e..21f622fad6b 100644
--- a/db/docs/dast_site_profiles_pipelines.yml
+++ b/db/docs/dast_site_profiles_pipelines.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Join table between DAST Site Profiles and CI Pipelines
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60090
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_site_tokens.yml b/db/docs/dast_site_tokens.yml
index 1d92bcd6981..c96c76c9ded 100644
--- a/db/docs/dast_site_tokens.yml
+++ b/db/docs/dast_site_tokens.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Token for the site to be validated
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/41639
milestone: '13.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_site_validations.yml b/db/docs/dast_site_validations.yml
index cb42895bc6a..7fc2e41f1ab 100644
--- a/db/docs/dast_site_validations.yml
+++ b/db/docs/dast_site_validations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The site to be validated with a dast_site_token
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/41639
milestone: '13.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dast_sites.yml b/db/docs/dast_sites.yml
index 63dcad7b35f..8e0faf2217e 100644
--- a/db/docs/dast_sites.yml
+++ b/db/docs/dast_sites.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Site to run dast scan on
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36659
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/deleted_tables/alerts_service_data.yml b/db/docs/deleted_tables/alerts_service_data.yml
new file mode 100644
index 00000000000..46cef40c4c5
--- /dev/null
+++ b/db/docs/deleted_tables/alerts_service_data.yml
@@ -0,0 +1,9 @@
+---
+table_name: alerts_service_data
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/16607
+milestone: '12.3'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53534
+removed_in_milestone: '13.9'
diff --git a/db/docs/deleted_tables/analytics_devops_adoption_segment_selections.yml b/db/docs/deleted_tables/analytics_devops_adoption_segment_selections.yml
new file mode 100644
index 00000000000..90008e3e68b
--- /dev/null
+++ b/db/docs/deleted_tables/analytics_devops_adoption_segment_selections.yml
@@ -0,0 +1,9 @@
+---
+table_name: analytics_devops_adoption_segment_selections
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/45748
+milestone: '13.6'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62594
+removed_in_milestone: '14.0'
diff --git a/db/docs/deleted_tables/analytics_repository_file_commits.yml b/db/docs/deleted_tables/analytics_repository_file_commits.yml
new file mode 100644
index 00000000000..93a18171f02
--- /dev/null
+++ b/db/docs/deleted_tables/analytics_repository_file_commits.yml
@@ -0,0 +1,9 @@
+---
+table_name: analytics_repository_file_commits
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17277
+milestone: '12.4'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23590
+removed_in_milestone: '12.8'
diff --git a/db/docs/deleted_tables/analytics_repository_file_edits.yml b/db/docs/deleted_tables/analytics_repository_file_edits.yml
new file mode 100644
index 00000000000..58f66fb88ca
--- /dev/null
+++ b/db/docs/deleted_tables/analytics_repository_file_edits.yml
@@ -0,0 +1,9 @@
+---
+table_name: analytics_repository_file_edits
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17277
+milestone: '12.4'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/24222
+removed_in_milestone: '12.8'
diff --git a/db/docs/deleted_tables/analytics_repository_files.yml b/db/docs/deleted_tables/analytics_repository_files.yml
new file mode 100644
index 00000000000..ae02c3aa29d
--- /dev/null
+++ b/db/docs/deleted_tables/analytics_repository_files.yml
@@ -0,0 +1,9 @@
+---
+table_name: analytics_repository_files
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: TODO
+milestone: TODO
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23590
+removed_in_milestone: '12.8'
diff --git a/db/docs/deleted_tables/audit_events_archived.yml b/db/docs/deleted_tables/audit_events_archived.yml
new file mode 100644
index 00000000000..6f94a8e4466
--- /dev/null
+++ b/db/docs/deleted_tables/audit_events_archived.yml
@@ -0,0 +1,9 @@
+---
+table_name: audit_events_archived
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/44655
+milestone: '13.6'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53880
+removed_in_milestone: '13.11'
diff --git a/db/docs/deleted_tables/audit_events_part_5fc467ac26.yml b/db/docs/deleted_tables/audit_events_part_5fc467ac26.yml
new file mode 100644
index 00000000000..86d27af6f34
--- /dev/null
+++ b/db/docs/deleted_tables/audit_events_part_5fc467ac26.yml
@@ -0,0 +1,9 @@
+---
+table_name: audit_events_part_5fc467ac26
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36298
+milestone: '13.3'
+removed_by_url: TODO
+removed_in_milestone: TODO
diff --git a/db/docs/deleted_tables/backup_labels.yml b/db/docs/deleted_tables/backup_labels.yml
new file mode 100644
index 00000000000..52a092aca7b
--- /dev/null
+++ b/db/docs/deleted_tables/backup_labels.yml
@@ -0,0 +1,9 @@
+---
+table_name: backup_labels
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: TODO
+milestone: TODO
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54856
+removed_in_milestone: '13.10'
diff --git a/db/docs/deleted_tables/ci_build_trace_section_names.yml b/db/docs/deleted_tables/ci_build_trace_section_names.yml
new file mode 100644
index 00000000000..83092b0c12a
--- /dev/null
+++ b/db/docs/deleted_tables/ci_build_trace_section_names.yml
@@ -0,0 +1,9 @@
+---
+table_name: ci_build_trace_section_names
+gitlab_schema: gitlab_ci
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67618
+milestone: '14.2'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/73841
+removed_in_milestone: '14.5'
diff --git a/db/docs/deleted_tables/ci_build_trace_sections.yml b/db/docs/deleted_tables/ci_build_trace_sections.yml
new file mode 100644
index 00000000000..764b9731f1a
--- /dev/null
+++ b/db/docs/deleted_tables/ci_build_trace_sections.yml
@@ -0,0 +1,9 @@
+---
+table_name: ci_build_trace_sections
+gitlab_schema: gitlab_ci
+feature_categories: []
+description: TODO
+introduced_by_url: TODO
+milestone: TODO
+removed_in_milestone: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/73841
+removed_by_url: '14.5'
diff --git a/db/docs/deleted_tables/ci_daily_report_results.yml b/db/docs/deleted_tables/ci_daily_report_results.yml
new file mode 100644
index 00000000000..a95bf75e0c1
--- /dev/null
+++ b/db/docs/deleted_tables/ci_daily_report_results.yml
@@ -0,0 +1,9 @@
+---
+table_name: ci_daily_report_results
+gitlab_schema: gitlab_ci
+feature_categories: []
+description: TODO
+introduced_by_url: TODO
+milestone: TODO
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36102
+removed_in_milestone: '13.2'
diff --git a/db/docs/deleted_tables/ci_test_case_failures.yml b/db/docs/deleted_tables/ci_test_case_failures.yml
new file mode 100644
index 00000000000..0e62b617e56
--- /dev/null
+++ b/db/docs/deleted_tables/ci_test_case_failures.yml
@@ -0,0 +1,9 @@
+---
+table_name: ci_test_case_failures
+gitlab_schema: gitlab_ci
+feature_categories: []
+description: TODO
+introduced_by_url: TODO
+milestone: TODO
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67180
+removed_in_milestone: '14.2'
diff --git a/db/docs/deleted_tables/ci_test_cases.yml b/db/docs/deleted_tables/ci_test_cases.yml
new file mode 100644
index 00000000000..61b8d5f5472
--- /dev/null
+++ b/db/docs/deleted_tables/ci_test_cases.yml
@@ -0,0 +1,9 @@
+---
+table_name: ci_test_cases
+gitlab_schema: gitlab_ci
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/45027
+milestone: '13.6'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67180
+removed_in_milestone: '14.2'
diff --git a/db/docs/deleted_tables/clusters_applications_fluentd.yml b/db/docs/deleted_tables/clusters_applications_fluentd.yml
new file mode 100644
index 00000000000..4f481290cc6
--- /dev/null
+++ b/db/docs/deleted_tables/clusters_applications_fluentd.yml
@@ -0,0 +1,9 @@
+---
+table_name: clusters_applications_fluentd
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/28844
+milestone: '12.10'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63758
+removed_in_milestone: '14.1'
diff --git a/db/docs/deleted_tables/forked_project_links.yml b/db/docs/deleted_tables/forked_project_links.yml
new file mode 100644
index 00000000000..a83391f4340
--- /dev/null
+++ b/db/docs/deleted_tables/forked_project_links.yml
@@ -0,0 +1,9 @@
+---
+table_name: forked_project_links
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: TODO
+milestone: TODO
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20771
+removed_in_milestone: '12.9'
diff --git a/db/docs/deleted_tables/issue_milestones.yml b/db/docs/deleted_tables/issue_milestones.yml
new file mode 100644
index 00000000000..7e18cd12f7c
--- /dev/null
+++ b/db/docs/deleted_tables/issue_milestones.yml
@@ -0,0 +1,9 @@
+---
+table_name: issue_milestones
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: TODO
+milestone: TODO
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/25198
+removed_in_milestone: '12.8'
diff --git a/db/docs/deleted_tables/merge_request_milestones.yml b/db/docs/deleted_tables/merge_request_milestones.yml
new file mode 100644
index 00000000000..3f42312c5ec
--- /dev/null
+++ b/db/docs/deleted_tables/merge_request_milestones.yml
@@ -0,0 +1,9 @@
+---
+table_name: merge_request_milestones
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/22043
+milestone: '12.7'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/25198
+removed_in_milestone: '12.8'
diff --git a/db/docs/deleted_tables/namespace_onboarding_actions.yml b/db/docs/deleted_tables/namespace_onboarding_actions.yml
new file mode 100644
index 00000000000..da3f42f3f2f
--- /dev/null
+++ b/db/docs/deleted_tables/namespace_onboarding_actions.yml
@@ -0,0 +1,9 @@
+---
+table_name: namespace_onboarding_actions
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/48018
+milestone: '13.7'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53488
+removed_in_milestone: '13.9'
diff --git a/db/docs/deleted_tables/services.yml b/db/docs/deleted_tables/services.yml
new file mode 100644
index 00000000000..cc05b0e615b
--- /dev/null
+++ b/db/docs/deleted_tables/services.yml
@@ -0,0 +1,9 @@
+---
+table_name: services
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: TODO
+milestone: TODO
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/64562
+removed_in_milestone: '14.1'
diff --git a/db/docs/deleted_tables/terraform_state_registry.yml b/db/docs/deleted_tables/terraform_state_registry.yml
new file mode 100644
index 00000000000..e8b5e1f857d
--- /dev/null
+++ b/db/docs/deleted_tables/terraform_state_registry.yml
@@ -0,0 +1,9 @@
+---
+table_name: terraform_state_registry
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36594
+milestone: '13.3'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/43341
+removed_in_milestone: '13.5'
diff --git a/db/docs/deleted_tables/tmp_fingerprint_sha256_migration.yml b/db/docs/deleted_tables/tmp_fingerprint_sha256_migration.yml
new file mode 100644
index 00000000000..42b3f7d379e
--- /dev/null
+++ b/db/docs/deleted_tables/tmp_fingerprint_sha256_migration.yml
@@ -0,0 +1,9 @@
+---
+table_name: tmp_fingerprint_sha256_migration
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/21579
+milestone: '12.7'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/21579
+removed_in_milestone: '12.7'
diff --git a/db/docs/deleted_tables/vulnerability_export_registry.yml b/db/docs/deleted_tables/vulnerability_export_registry.yml
new file mode 100644
index 00000000000..90ae84ed128
--- /dev/null
+++ b/db/docs/deleted_tables/vulnerability_export_registry.yml
@@ -0,0 +1,9 @@
+---
+table_name: vulnerability_export_registry
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36620
+milestone: '13.3'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/38299
+removed_in_milestone: '13.3'
diff --git a/db/docs/deleted_tables/vulnerability_export_verification_status.yml b/db/docs/deleted_tables/vulnerability_export_verification_status.yml
new file mode 100644
index 00000000000..ed9cced468d
--- /dev/null
+++ b/db/docs/deleted_tables/vulnerability_export_verification_status.yml
@@ -0,0 +1,9 @@
+---
+table_name: vulnerability_export_verification_status
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36620
+milestone: '13.3'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/38299
+removed_in_milestone: '13.3'
diff --git a/db/docs/deleted_tables/vulnerability_finding_fingerprints.yml b/db/docs/deleted_tables/vulnerability_finding_fingerprints.yml
new file mode 100644
index 00000000000..dbcf8312d5a
--- /dev/null
+++ b/db/docs/deleted_tables/vulnerability_finding_fingerprints.yml
@@ -0,0 +1,9 @@
+---
+table_name: vulnerability_finding_fingerprints
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: TODO
+milestone: TODO
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57840
+removed_in_milestone: '13.11'
diff --git a/db/docs/deleted_tables/web_hook_logs_archived.yml b/db/docs/deleted_tables/web_hook_logs_archived.yml
new file mode 100644
index 00000000000..a55b9db157b
--- /dev/null
+++ b/db/docs/deleted_tables/web_hook_logs_archived.yml
@@ -0,0 +1,9 @@
+---
+table_name: web_hook_logs_archived
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60184
+milestone: '13.12'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63649
+removed_in_milestone: '14.0'
diff --git a/db/docs/deleted_tables/web_hook_logs_part_0c5294f417.yml b/db/docs/deleted_tables/web_hook_logs_part_0c5294f417.yml
new file mode 100644
index 00000000000..21867b7b2aa
--- /dev/null
+++ b/db/docs/deleted_tables/web_hook_logs_part_0c5294f417.yml
@@ -0,0 +1,9 @@
+---
+table_name: web_hook_logs_part_0c5294f417
+gitlab_schema: gitlab_main
+feature_categories: []
+description: TODO
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/55938
+milestone: '13.10'
+removed_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60184
+removed_in_milestone: '13.12'
diff --git a/db/docs/dependency_list_exports.yml b/db/docs/dependency_list_exports.yml
new file mode 100644
index 00000000000..14d222edb06
--- /dev/null
+++ b/db/docs/dependency_list_exports.yml
@@ -0,0 +1,8 @@
+---
+table_name: dependency_list_exports
+feature_categories:
+- dependency_management
+description: Dependency list exported data
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/104361
+milestone: '15.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dependency_proxy_blob_states.yml b/db/docs/dependency_proxy_blob_states.yml
index ddb9414b5f8..acbd015f619 100644
--- a/db/docs/dependency_proxy_blob_states.yml
+++ b/db/docs/dependency_proxy_blob_states.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Separate table for dependency proxy blob verification states
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/101429
milestone: '15.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dependency_proxy_blobs.yml b/db/docs/dependency_proxy_blobs.yml
index ad54ac8943e..78b0cc54013 100644
--- a/db/docs/dependency_proxy_blobs.yml
+++ b/db/docs/dependency_proxy_blobs.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Dependency proxy blob files
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/10676
milestone: '11.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dependency_proxy_group_settings.yml b/db/docs/dependency_proxy_group_settings.yml
index d975ca482de..53ec18594e0 100644
--- a/db/docs/dependency_proxy_group_settings.yml
+++ b/db/docs/dependency_proxy_group_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Group-level settings for the dependency proxy
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/10676
milestone: '11.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dependency_proxy_image_ttl_group_policies.yml b/db/docs/dependency_proxy_image_ttl_group_policies.yml
index f985c083118..6f744246b18 100644
--- a/db/docs/dependency_proxy_image_ttl_group_policies.yml
+++ b/db/docs/dependency_proxy_image_ttl_group_policies.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Group-level settings for dependency proxy cleanup policies
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68809
milestone: '14.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dependency_proxy_manifest_states.yml b/db/docs/dependency_proxy_manifest_states.yml
new file mode 100644
index 00000000000..e0ad1808da9
--- /dev/null
+++ b/db/docs/dependency_proxy_manifest_states.yml
@@ -0,0 +1,10 @@
+---
+table_name: dependency_proxy_manifest_states
+classes:
+ - Geo::DependencyProxyManifestState
+feature_categories:
+ - geo_replication
+description: Separate table for dependency proxy manifest verification states
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/102908
+milestone: '15.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dependency_proxy_manifests.yml b/db/docs/dependency_proxy_manifests.yml
index 408878790a0..5ee2eeaef27 100644
--- a/db/docs/dependency_proxy_manifests.yml
+++ b/db/docs/dependency_proxy_manifests.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Dependency proxy manifest files
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/48535
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/deploy_keys_projects.yml b/db/docs/deploy_keys_projects.yml
index d308af56712..5d3591f1b4f 100644
--- a/db/docs/deploy_keys_projects.yml
+++ b/db/docs/deploy_keys_projects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/user/project/deploy_keys/
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/a735ce2aa7da72242629a4452c33e7a1900fdd62
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/deploy_tokens.yml b/db/docs/deploy_tokens.yml
index 320fc9e2ba8..73b40699a58 100644
--- a/db/docs/deploy_tokens.yml
+++ b/db/docs/deploy_tokens.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/user/project/deploy_tokens/
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/db18993f652425b72c4b854e18a002e0ec44b196
milestone: '10.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/deployment_approvals.yml b/db/docs/deployment_approvals.yml
index 1defeb8dbb5..291e3f001c8 100644
--- a/db/docs/deployment_approvals.yml
+++ b/db/docs/deployment_approvals.yml
@@ -4,6 +4,9 @@ classes:
- Deployments::Approval
feature_categories:
- continuous_delivery
-description: https://docs.gitlab.com/ee/ci/environments/deployment_approvals.html
+description: >-
+ Stores the user that approved/rejected a deployment and which approval rule was used.
+ See https://docs.gitlab.com/ee/ci/environments/deployment_approvals.html for more details.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/74932
milestone: '14.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/deployment_clusters.yml b/db/docs/deployment_clusters.yml
index e23278d0e00..eea538a83d2 100644
--- a/db/docs/deployment_clusters.yml
+++ b/db/docs/deployment_clusters.yml
@@ -4,6 +4,7 @@ classes:
- DeploymentCluster
feature_categories:
- kubernetes_management
-description: (Deprecated) Join table between `deployments` and `clusters`
+description: "(Deprecated) Join table between `deployments` and `clusters`"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/24235
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/deployment_merge_requests.yml b/db/docs/deployment_merge_requests.yml
index 9af247a03d8..7f1017fe5b0 100644
--- a/db/docs/deployment_merge_requests.yml
+++ b/db/docs/deployment_merge_requests.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/ci/environments/index.html#track-newly-included-merge-requests-per-deployment
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/18755
milestone: '12.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/deployments.yml b/db/docs/deployments.yml
index 960e2c67a1e..3fc477efced 100644
--- a/db/docs/deployments.yml
+++ b/db/docs/deployments.yml
@@ -4,6 +4,9 @@ classes:
- Deployment
feature_categories:
- continuous_delivery
-description: https://docs.gitlab.com/ee/ci/environments/
+description: >-
+ Stores metadata related to a deployment CI Build, including user, environment, status, and SHA.
+ See https://docs.gitlab.com/ee/ci/environments/ for more details.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/907c0e6796b69f9577c147dd489cf55748c749ac
milestone: '8.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/description_versions.yml b/db/docs/description_versions.yml
index 8fb2d481fe9..d254aa1fa3f 100644
--- a/db/docs/description_versions.yml
+++ b/db/docs/description_versions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The diff of the change when an edit is made to an Issue, MR or Epic description
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17147
milestone: '12.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/design_management_designs.yml b/db/docs/design_management_designs.yml
index abdd01899da..ea284c8bee4 100644
--- a/db/docs/design_management_designs.yml
+++ b/db/docs/design_management_designs.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information about Designs, image files under management by the Design Management tool
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/9801
milestone: '11.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/design_management_designs_versions.yml b/db/docs/design_management_designs_versions.yml
index 2613cba55d9..3adff979ff5 100644
--- a/db/docs/design_management_designs_versions.yml
+++ b/db/docs/design_management_designs_versions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The SHA referencing changes to a single design or multiple design files
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/10552
milestone: '11.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/design_management_versions.yml b/db/docs/design_management_versions.yml
index 8f411df6e93..03adc2154f4 100644
--- a/db/docs/design_management_versions.yml
+++ b/db/docs/design_management_versions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The SHA referencing changes to individual designs made using the Design Management tool
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/9801
milestone: '11.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/design_user_mentions.yml b/db/docs/design_user_mentions.yml
index 74aa0d89c01..b13baa1bc5f 100644
--- a/db/docs/design_user_mentions.yml
+++ b/db/docs/design_user_mentions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: User mentions in content related to designs
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19009
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/detached_partitions.yml b/db/docs/detached_partitions.yml
index 7563576c996..dbd77d472b3 100644
--- a/db/docs/detached_partitions.yml
+++ b/db/docs/detached_partitions.yml
@@ -15,3 +15,4 @@ description: >
Rows in this table are processed by Database::DropDetachedPartitionsWorker, which runs once a day.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67056
milestone: '14.2'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/diff_note_positions.yml b/db/docs/diff_note_positions.yml
index 0c4f688b4d4..9aa292c3825 100644
--- a/db/docs/diff_note_positions.yml
+++ b/db/docs/diff_note_positions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores diff notes positions
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/28113
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dingtalk_tracker_data.yml b/db/docs/dingtalk_tracker_data.yml
index b7335584271..6994bd805a7 100644
--- a/db/docs/dingtalk_tracker_data.yml
+++ b/db/docs/dingtalk_tracker_data.yml
@@ -6,3 +6,4 @@ feature_categories:
- integrations
description: Data related to the Dingtalk integration (JiHu-specific, see https://jihulab.com/gitlab-cn/gitlab/-/merge_requests/417).
milestone: '15.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dora_configurations.yml b/db/docs/dora_configurations.yml
index e13cf088670..63114ba6f80 100644
--- a/db/docs/dora_configurations.yml
+++ b/db/docs/dora_configurations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores project specific configurations for DORA4 calculations.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/96561
milestone: '15.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/dora_daily_metrics.yml b/db/docs/dora_daily_metrics.yml
index 09f2ad02bfe..52ffdfc7f1b 100644
--- a/db/docs/dora_daily_metrics.yml
+++ b/db/docs/dora_daily_metrics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores daily snapshots of DORA4 metrics per environment.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/55473
milestone: '13.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/draft_notes.yml b/db/docs/draft_notes.yml
index 9273fb5fa61..047241a7976 100644
--- a/db/docs/draft_notes.yml
+++ b/db/docs/draft_notes.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Notes created during the review of an MR that are not yet published
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/4213
milestone: '11.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/elastic_index_settings.yml b/db/docs/elastic_index_settings.yml
index 61093803d35..213f66a46f2 100644
--- a/db/docs/elastic_index_settings.yml
+++ b/db/docs/elastic_index_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56344
milestone: '13.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/elastic_reindexing_slices.yml b/db/docs/elastic_reindexing_slices.yml
index 0829431270d..b547c96a35d 100644
--- a/db/docs/elastic_reindexing_slices.yml
+++ b/db/docs/elastic_reindexing_slices.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/55681
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/elastic_reindexing_subtasks.yml b/db/docs/elastic_reindexing_subtasks.yml
index 85f540cfb41..86e2c84b069 100644
--- a/db/docs/elastic_reindexing_subtasks.yml
+++ b/db/docs/elastic_reindexing_subtasks.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/48334
milestone: '13.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/elastic_reindexing_tasks.yml b/db/docs/elastic_reindexing_tasks.yml
index 049dae71d4c..f4e5fa92b46 100644
--- a/db/docs/elastic_reindexing_tasks.yml
+++ b/db/docs/elastic_reindexing_tasks.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/34069
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/elasticsearch_indexed_namespaces.yml b/db/docs/elasticsearch_indexed_namespaces.yml
index ca854727c12..870918da54e 100644
--- a/db/docs/elasticsearch_indexed_namespaces.yml
+++ b/db/docs/elasticsearch_indexed_namespaces.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/9861
milestone: '11.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/elasticsearch_indexed_projects.yml b/db/docs/elasticsearch_indexed_projects.yml
index 3703f7a0c6b..78d8e2e58f7 100644
--- a/db/docs/elasticsearch_indexed_projects.yml
+++ b/db/docs/elasticsearch_indexed_projects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/9861
milestone: '11.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/emails.yml b/db/docs/emails.yml
index 229861b1d91..8b107994d7d 100644
--- a/db/docs/emails.yml
+++ b/db/docs/emails.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores users email records
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/29cfd33d949d21d67f3892473c24d4f0a127dfe6
milestone: '6.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/environments.yml b/db/docs/environments.yml
index 08165712766..d7fcce52898 100644
--- a/db/docs/environments.yml
+++ b/db/docs/environments.yml
@@ -4,6 +4,9 @@ classes:
- Environment
feature_categories:
- continuous_delivery
-description: https://docs.gitlab.com/ee/ci/environments/
+description: >-
+ Project-level deployment target and metadata.
+ See https://docs.gitlab.com/ee/ci/environments/ for more details.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/907c0e6796b69f9577c147dd489cf55748c749ac
milestone: '8.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/epic_issues.yml b/db/docs/epic_issues.yml
index 506005eee4c..5a79385e5f2 100644
--- a/db/docs/epic_issues.yml
+++ b/db/docs/epic_issues.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The relationships between Epics and Issues
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/3302
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/epic_metrics.yml b/db/docs/epic_metrics.yml
index 4cb6ea86ba2..700a33a4956 100644
--- a/db/docs/epic_metrics.yml
+++ b/db/docs/epic_metrics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/3126
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/epic_user_mentions.yml b/db/docs/epic_user_mentions.yml
index 8d2803b2526..b6998cb482a 100644
--- a/db/docs/epic_user_mentions.yml
+++ b/db/docs/epic_user_mentions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: User mentions in epic descriptions
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19009
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/epics.yml b/db/docs/epics.yml
index a8a07c445d0..2cc82b178d6 100644
--- a/db/docs/epics.yml
+++ b/db/docs/epics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information directly related to Epics, used by epic management features and the roadmap
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/3126
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/error_tracking_client_keys.yml b/db/docs/error_tracking_client_keys.yml
index c07fc282839..81fc55a197c 100644
--- a/db/docs/error_tracking_client_keys.yml
+++ b/db/docs/error_tracking_client_keys.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Model to store public keys used by Sentry SDK for Error Tracking
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66466
milestone: '14.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/error_tracking_error_events.yml b/db/docs/error_tracking_error_events.yml
index 9d938e47e3c..4e0d6b5a268 100644
--- a/db/docs/error_tracking_error_events.yml
+++ b/db/docs/error_tracking_error_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists error event data for the Error Tracking's GitLab backend
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/64712
milestone: '14.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/error_tracking_errors.yml b/db/docs/error_tracking_errors.yml
index a961d759da3..f42f248dad7 100644
--- a/db/docs/error_tracking_errors.yml
+++ b/db/docs/error_tracking_errors.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists error data for the Error Tracking's GitLab backend
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/64712
milestone: '14.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/events.yml b/db/docs/events.yml
index d766bc7cae3..45e3d49fd94 100644
--- a/db/docs/events.yml
+++ b/db/docs/events.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Stores user generated events.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/a847501fd2ffc1c4becc7d0d352d80168d9b3568
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/evidences.yml b/db/docs/evidences.yml
index ddfb42dd5a1..d7f36bc6e04 100644
--- a/db/docs/evidences.yml
+++ b/db/docs/evidences.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/user/project/releases/#release-evidence
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17217
milestone: '12.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/experiment_subjects.yml b/db/docs/experiment_subjects.yml
deleted file mode 100644
index 85546028cd1..00000000000
--- a/db/docs/experiment_subjects.yml
+++ /dev/null
@@ -1,9 +0,0 @@
----
-table_name: experiment_subjects
-classes:
-- ExperimentSubject
-feature_categories:
-- experimentation_conversion
-description: TODO
-introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47042
-milestone: '13.7'
diff --git a/db/docs/experiments.yml b/db/docs/experiments.yml
deleted file mode 100644
index ef2ccfa8d89..00000000000
--- a/db/docs/experiments.yml
+++ /dev/null
@@ -1,9 +0,0 @@
----
-table_name: experiments
-classes:
-- Experiment
-feature_categories:
-- experimentation_conversion
-description: TODO
-introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/38397
-milestone: '13.3'
diff --git a/db/docs/external_approval_rules.yml b/db/docs/external_approval_rules.yml
index ac44d0e6c48..73e77f653b4 100644
--- a/db/docs/external_approval_rules.yml
+++ b/db/docs/external_approval_rules.yml
@@ -6,3 +6,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54002
milestone: '13.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/external_approval_rules_protected_branches.yml b/db/docs/external_approval_rules_protected_branches.yml
index de4e1af7214..f1f85f4374b 100644
--- a/db/docs/external_approval_rules_protected_branches.yml
+++ b/db/docs/external_approval_rules_protected_branches.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Keeps relation between protected branches and external approval rules
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/54002
milestone: '13.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/external_pull_requests.yml b/db/docs/external_pull_requests.yml
index c8864dabfdc..e3777ae67ba 100644
--- a/db/docs/external_pull_requests.yml
+++ b/db/docs/external_pull_requests.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/ca6a1f33f91a8cceadebfb9c4e9ac6afa340f71d
milestone: '12.3'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/external_status_checks.yml b/db/docs/external_status_checks.yml
index 1bb1bc03224..5f7ea9b5314 100644
--- a/db/docs/external_status_checks.yml
+++ b/db/docs/external_status_checks.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores project's external status checks
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62186
milestone: '14.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/external_status_checks_protected_branches.yml b/db/docs/external_status_checks_protected_branches.yml
index bf26689bd0b..c8f33b2b13a 100644
--- a/db/docs/external_status_checks_protected_branches.yml
+++ b/db/docs/external_status_checks_protected_branches.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Keeps relation between protected branches and external status checks
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62186
milestone: '14.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/feature_gates.yml b/db/docs/feature_gates.yml
index 19d74975c6e..10060ad38ba 100644
--- a/db/docs/feature_gates.yml
+++ b/db/docs/feature_gates.yml
@@ -8,3 +8,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/development/feature_flags/
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/671284ba375109becbfa2a288032cdc7301b157b
milestone: '9.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/features.yml b/db/docs/features.yml
index f5628a17c19..9866eff2a3f 100644
--- a/db/docs/features.yml
+++ b/db/docs/features.yml
@@ -8,3 +8,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/development/feature_flags/
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/ee2d3de1a634611a1c660516c955be0d3000904b
milestone: '8.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/fork_network_members.yml b/db/docs/fork_network_members.yml
index 2077977f1b7..c3dd193b4aa 100644
--- a/db/docs/fork_network_members.yml
+++ b/db/docs/fork_network_members.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps track of fork relations between projects.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62186
milestone: '10.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/fork_networks.yml b/db/docs/fork_networks.yml
index 51123405baf..ca0960dd93a 100644
--- a/db/docs/fork_networks.yml
+++ b/db/docs/fork_networks.yml
@@ -7,3 +7,4 @@ feature_categories:
description: When a project is first forked, a row is created in this table. Also referenced by the fork_network_members table. This is used to know which projects can send merge reqeusts to each other.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/3098
milestone: '10.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_cache_invalidation_events.yml b/db/docs/geo_cache_invalidation_events.yml
index 5695cddfb7f..5fc2e0b5a7e 100644
--- a/db/docs/geo_cache_invalidation_events.yml
+++ b/db/docs/geo_cache_invalidation_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Geo event to process feature flag toggles instantly on a secondary by invalidating the cache, belongs to geo_event_log.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/7738
milestone: '11.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_container_repository_updated_events.yml b/db/docs/geo_container_repository_updated_events.yml
index 8d17ded97d4..a07758da54e 100644
--- a/db/docs/geo_container_repository_updated_events.yml
+++ b/db/docs/geo_container_repository_updated_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Geo event for when a container repository (image, tag, registry) gets updated, belongs to geo_event_log.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/1902d9cc74a1dc2c87fdbb39a6cdbb67092cbb5a
milestone: '12.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_event_log.yml b/db/docs/geo_event_log.yml
index 905383664e5..8aee2b6858d 100644
--- a/db/docs/geo_event_log.yml
+++ b/db/docs/geo_event_log.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Log of all events that a Geo secondary can process. Parsed/watched through streaming replication on all secondaries.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/cb6c7cbe2a9ee05cea6926e3d8c18f6aa26f4c64
milestone: '9.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_events.yml b/db/docs/geo_events.yml
index 6e30da25f5a..0fc3db22dca 100644
--- a/db/docs/geo_events.yml
+++ b/db/docs/geo_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Geo events implemented generically, used by the SSF where all object types can generate an event to be processed by the secondary sites.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23447
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_hashed_storage_attachments_events.yml b/db/docs/geo_hashed_storage_attachments_events.yml
index 457b34af0f1..f025cc8f892 100644
--- a/db/docs/geo_hashed_storage_attachments_events.yml
+++ b/db/docs/geo_hashed_storage_attachments_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to replicate storage attachments migration paths on Geo secondaries from regular to hashed storage.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/3544
milestone: '10.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_hashed_storage_migrated_events.yml b/db/docs/geo_hashed_storage_migrated_events.yml
index 175015c487d..4d92998851e 100644
--- a/db/docs/geo_hashed_storage_migrated_events.yml
+++ b/db/docs/geo_hashed_storage_migrated_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to replicate repository migration paths on Geo secondaries from regular to hashed storage.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/3066
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_node_namespace_links.yml b/db/docs/geo_node_namespace_links.yml
index cede321ed47..198b4ac0833 100644
--- a/db/docs/geo_node_namespace_links.yml
+++ b/db/docs/geo_node_namespace_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Passthrough table for geo_nodes many-to-many namespaces relation.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/14c6128530579ca92fa79342d4119d25bcff1f2d
milestone: '9.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_node_statuses.yml b/db/docs/geo_node_statuses.yml
index ff955e79eb1..8b6dd28318e 100644
--- a/db/docs/geo_node_statuses.yml
+++ b/db/docs/geo_node_statuses.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains sites status and metadata for each Geo site, updated async through a scheduled worker.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/3230
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_nodes.yml b/db/docs/geo_nodes.yml
index 956b79fe0a0..c1f0feb2deb 100644
--- a/db/docs/geo_nodes.yml
+++ b/db/docs/geo_nodes.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains Geo sites configuration data and settings.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/5ab12ad02ed753dd933485094ba45512890f0b50
milestone: '8.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_repositories_changed_events.yml b/db/docs/geo_repositories_changed_events.yml
index 348d8331fe7..f9da7c623f1 100644
--- a/db/docs/geo_repositories_changed_events.yml
+++ b/db/docs/geo_repositories_changed_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Geo event for when the repositories for selective sync of a specific Geo secondary change, belongs to geo_event_log.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/312bc703a4619b87ba2ac4e59623e7747a24502c
milestone: '9.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_repository_created_events.yml b/db/docs/geo_repository_created_events.yml
index ea7b8558bdc..14825a70e12 100644
--- a/db/docs/geo_repository_created_events.yml
+++ b/db/docs/geo_repository_created_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Geo event for when a repository gets created, belongs to geo_event_log.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/f3eacf881659b7af97b7c7ba3289237ec6cdc1cb
milestone: '10.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_repository_deleted_events.yml b/db/docs/geo_repository_deleted_events.yml
index 4814994181a..43dc2ac54c6 100644
--- a/db/docs/geo_repository_deleted_events.yml
+++ b/db/docs/geo_repository_deleted_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Geo event for when a repository gets deleted, belongs to geo_event_log.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/04c3da24ac5975b140cf2e6a7e33414543f148f5
milestone: '9.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_repository_renamed_events.yml b/db/docs/geo_repository_renamed_events.yml
index 2e6838f51e4..be54571864c 100644
--- a/db/docs/geo_repository_renamed_events.yml
+++ b/db/docs/geo_repository_renamed_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Geo event for when a repository gets renamed, belongs to geo_event_log.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/6e5fa040d1c689fad4e110dd10be8ddba61ea7ef
milestone: '9.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_repository_updated_events.yml b/db/docs/geo_repository_updated_events.yml
index 51a0033d0a7..53186621519 100644
--- a/db/docs/geo_repository_updated_events.yml
+++ b/db/docs/geo_repository_updated_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Geo event for when a repository gets updated (content changed), belongs to geo_event_log.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/71cc57b1e4b7721c93107357517235a18f7ba8e2
milestone: '9.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/geo_reset_checksum_events.yml b/db/docs/geo_reset_checksum_events.yml
index d4aad156687..c57dda44569 100644
--- a/db/docs/geo_reset_checksum_events.yml
+++ b/db/docs/geo_reset_checksum_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Geo event for when a project gets reverified on the primary, belongs to geo_event_log.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/7394
milestone: '11.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/ghost_user_migrations.yml b/db/docs/ghost_user_migrations.yml
index f4e69e71baa..d90eca9f153 100644
--- a/db/docs/ghost_user_migrations.yml
+++ b/db/docs/ghost_user_migrations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Users records awaiting for their associated records to be migrated to ghost user
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/95473
milestone: '15.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/gitlab_subscription_histories.yml b/db/docs/gitlab_subscription_histories.yml
index 1b84c943a04..25cf11ff8bc 100644
--- a/db/docs/gitlab_subscription_histories.yml
+++ b/db/docs/gitlab_subscription_histories.yml
@@ -7,3 +7,4 @@ feature_categories:
description: History log for the gitlab_subscriptions table
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19694
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/gitlab_subscriptions.yml b/db/docs/gitlab_subscriptions.yml
index d4a15216aa6..9b0b718c394 100644
--- a/db/docs/gitlab_subscriptions.yml
+++ b/db/docs/gitlab_subscriptions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store information related to GitLab subscriptions
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/7885
milestone: '11.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/gpg_key_subkeys.yml b/db/docs/gpg_key_subkeys.yml
index b3824c36e81..3c92c807566 100644
--- a/db/docs/gpg_key_subkeys.yml
+++ b/db/docs/gpg_key_subkeys.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores GPG subkeys
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/14517
milestone: '10.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/gpg_keys.yml b/db/docs/gpg_keys.yml
index 00b76959fe4..bb8fc7bc371 100644
--- a/db/docs/gpg_keys.yml
+++ b/db/docs/gpg_keys.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores GPG keys
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/9546
milestone: '9.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/gpg_signatures.yml b/db/docs/gpg_signatures.yml
index f49a0c03844..e5866ef6517 100644
--- a/db/docs/gpg_signatures.yml
+++ b/db/docs/gpg_signatures.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores GPG signatures
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/9546
milestone: '9.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/grafana_integrations.yml b/db/docs/grafana_integrations.yml
index c479b07ffb1..bcbc5b2b172 100644
--- a/db/docs/grafana_integrations.yml
+++ b/db/docs/grafana_integrations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17234
milestone: '12.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_crm_settings.yml b/db/docs/group_crm_settings.yml
index 3798512d05e..36ade1ba134 100644
--- a/db/docs/group_crm_settings.yml
+++ b/db/docs/group_crm_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Group-level settings for CRM-related features
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/76983
milestone: '14.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_custom_attributes.yml b/db/docs/group_custom_attributes.yml
index 3bf4f6a0f92..a6984004149 100644
--- a/db/docs/group_custom_attributes.yml
+++ b/db/docs/group_custom_attributes.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores custom attributes per group
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/14593
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_deletion_schedules.yml b/db/docs/group_deletion_schedules.yml
index b3bc6665c4c..ff271e4b1f0 100644
--- a/db/docs/group_deletion_schedules.yml
+++ b/db/docs/group_deletion_schedules.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20276
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_deploy_keys.yml b/db/docs/group_deploy_keys.yml
index 0e85102dbb9..137d2774c90 100644
--- a/db/docs/group_deploy_keys.yml
+++ b/db/docs/group_deploy_keys.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/user/project/deploy_keys/
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/30886
milestone: '13.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_deploy_keys_groups.yml b/db/docs/group_deploy_keys_groups.yml
index 3db288647f9..129be2af5df 100644
--- a/db/docs/group_deploy_keys_groups.yml
+++ b/db/docs/group_deploy_keys_groups.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/user/project/deploy_keys/
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/32901
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_deploy_tokens.yml b/db/docs/group_deploy_tokens.yml
index 6b497f59285..450f67c57b1 100644
--- a/db/docs/group_deploy_tokens.yml
+++ b/db/docs/group_deploy_tokens.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/user/project/deploy_tokens/
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23460
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_features.yml b/db/docs/group_features.yml
index ca156be4117..68b84a2a08e 100644
--- a/db/docs/group_features.yml
+++ b/db/docs/group_features.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores access levels for group features, like the wiki
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/82017
milestone: '14.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_group_links.yml b/db/docs/group_group_links.yml
index e9671034330..f1541871795 100644
--- a/db/docs/group_group_links.yml
+++ b/db/docs/group_group_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17117
milestone: '12.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_import_states.yml b/db/docs/group_import_states.yml
index fe51c414c25..6343895264b 100644
--- a/db/docs/group_import_states.yml
+++ b/db/docs/group_import_states.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store and track the group import status when using the Import/Export feature
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/29588
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_merge_request_approval_settings.yml b/db/docs/group_merge_request_approval_settings.yml
index 33bb2370a86..c3b6bb8877c 100644
--- a/db/docs/group_merge_request_approval_settings.yml
+++ b/db/docs/group_merge_request_approval_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps merge request approval settings per group
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/50256
milestone: '13.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_repository_storage_moves.yml b/db/docs/group_repository_storage_moves.yml
index 439dfa381cc..68df9b30b7c 100644
--- a/db/docs/group_repository_storage_moves.yml
+++ b/db/docs/group_repository_storage_moves.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/51803
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/group_wiki_repositories.yml b/db/docs/group_wiki_repositories.yml
index 0c4ce444958..278c643c8e7 100644
--- a/db/docs/group_wiki_repositories.yml
+++ b/db/docs/group_wiki_repositories.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about group wiki repositories.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/31121
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/historical_data.yml b/db/docs/historical_data.yml
index 75f3493cb6d..020cc33b25d 100644
--- a/db/docs/historical_data.yml
+++ b/db/docs/historical_data.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/85c04a8aa654d1b7f898e55a113e50521bacaaf2
milestone: '7.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/identities.yml b/db/docs/identities.yml
index 078fb1197d7..149907a419e 100644
--- a/db/docs/identities.yml
+++ b/db/docs/identities.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/1a80d13a3990937580c97e2b0ba8fb98f69bc055
milestone: '7.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/import_export_uploads.yml b/db/docs/import_export_uploads.yml
index 6cac47c8490..3c1bcf4f8fd 100644
--- a/db/docs/import_export_uploads.yml
+++ b/db/docs/import_export_uploads.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store the location of the imported or exported archives files of groups or projects when using the feature Import/Export
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/a2bf1641546a1d3eeb3e9f44734854f655c0adef
milestone: '11.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/import_failures.yml b/db/docs/import_failures.yml
index 7fb01579573..ac30148ba7a 100644
--- a/db/docs/import_failures.yml
+++ b/db/docs/import_failures.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store group or project import failures that occur when using the Import/Export feature
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20727
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/in_product_marketing_emails.yml b/db/docs/in_product_marketing_emails.yml
index 443b67aaae5..be33ee824b6 100644
--- a/db/docs/in_product_marketing_emails.yml
+++ b/db/docs/in_product_marketing_emails.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/55840
milestone: '13.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_escalation_policies.yml b/db/docs/incident_management_escalation_policies.yml
index 9584f65b14d..74f58525767 100644
--- a/db/docs/incident_management_escalation_policies.yml
+++ b/db/docs/incident_management_escalation_policies.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists information about escalation policies in a project
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60685
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_escalation_rules.yml b/db/docs/incident_management_escalation_rules.yml
index 40c1f9bdcc0..8081bdcb880 100644
--- a/db/docs/incident_management_escalation_rules.yml
+++ b/db/docs/incident_management_escalation_rules.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists information about escalation rules for incident management
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60685
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_issuable_escalation_statuses.yml b/db/docs/incident_management_issuable_escalation_statuses.yml
index 466bc0314b6..24e20245b41 100644
--- a/db/docs/incident_management_issuable_escalation_statuses.yml
+++ b/db/docs/incident_management_issuable_escalation_statuses.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists escalation status information for incidents
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65206
milestone: '14.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_oncall_participants.yml b/db/docs/incident_management_oncall_participants.yml
index 9186be4824c..75e2651d234 100644
--- a/db/docs/incident_management_oncall_participants.yml
+++ b/db/docs/incident_management_oncall_participants.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Persists information about on-call rotation participants
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/49058
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_oncall_rotations.yml b/db/docs/incident_management_oncall_rotations.yml
index bf9df2e2d2a..8d0a50ad4e1 100644
--- a/db/docs/incident_management_oncall_rotations.yml
+++ b/db/docs/incident_management_oncall_rotations.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Persists information about on-call rotation
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/49058
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_oncall_schedules.yml b/db/docs/incident_management_oncall_schedules.yml
index 9fa0ed1bec5..b2ddd795b30 100644
--- a/db/docs/incident_management_oncall_schedules.yml
+++ b/db/docs/incident_management_oncall_schedules.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Persists on-call schedules for incident management in a project
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47407
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_oncall_shifts.yml b/db/docs/incident_management_oncall_shifts.yml
index 6ef7de5da50..2ae33b4430a 100644
--- a/db/docs/incident_management_oncall_shifts.yml
+++ b/db/docs/incident_management_oncall_shifts.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Tracks past and present on-call shifts
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/49423
milestone: '13.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_pending_alert_escalations.yml b/db/docs/incident_management_pending_alert_escalations.yml
index c39b8d74ce2..a866fbaab01 100644
--- a/db/docs/incident_management_pending_alert_escalations.yml
+++ b/db/docs/incident_management_pending_alert_escalations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists information about pending alert escalations for incidents
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/64274
milestone: '14.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_pending_issue_escalations.yml b/db/docs/incident_management_pending_issue_escalations.yml
index eb8f11fc72f..945aff4b4cd 100644
--- a/db/docs/incident_management_pending_issue_escalations.yml
+++ b/db/docs/incident_management_pending_issue_escalations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Represents when issues should be escalated according to a project's escalation policy
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65209
milestone: '14.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_timeline_event_tag_links.yml b/db/docs/incident_management_timeline_event_tag_links.yml
index 429371aefb7..e3a2b31e093 100644
--- a/db/docs/incident_management_timeline_event_tag_links.yml
+++ b/db/docs/incident_management_timeline_event_tag_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists links between timeline event tags and timeline events.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/100271
milestone: '15.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_timeline_event_tags.yml b/db/docs/incident_management_timeline_event_tags.yml
index 47dedaf3de2..aba8f7db152 100644
--- a/db/docs/incident_management_timeline_event_tags.yml
+++ b/db/docs/incident_management_timeline_event_tags.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists tags for timeline events in a project.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/100271
milestone: '15.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/incident_management_timeline_events.yml b/db/docs/incident_management_timeline_events.yml
index 6031f0d32e2..428d25d71cb 100644
--- a/db/docs/incident_management_timeline_events.yml
+++ b/db/docs/incident_management_timeline_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists timeline events for an incident
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/74530
milestone: '14.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/index_statuses.yml b/db/docs/index_statuses.yml
index 933795a265a..5ff3b46d145 100644
--- a/db/docs/index_statuses.yml
+++ b/db/docs/index_statuses.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/03370b017c7b120af7b53682714ffc325742fc98
milestone: '8.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/insights.yml b/db/docs/insights.yml
index 2439f289340..3dce08e218d 100644
--- a/db/docs/insights.yml
+++ b/db/docs/insights.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The table is used to specify a project which contains the group level insights configuration.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/9665
milestone: '11.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/integrations.yml b/db/docs/integrations.yml
index 5100ee77fa7..52d719e19da 100644
--- a/db/docs/integrations.yml
+++ b/db/docs/integrations.yml
@@ -21,7 +21,6 @@ classes:
- Integrations::EmailsOnPush
- Integrations::Ewm
- Integrations::ExternalWiki
-- Integrations::Flowdock
- Integrations::Github
- Integrations::GitlabSlackApplication
- Integrations::HangoutsChat
@@ -56,3 +55,4 @@ description: |
https://gitlab.com/gitlab-org/gitlab/-/commit/1dab19d0d7b25cb5af27b8d10c8b615b2d38c2cf
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/64562
milestone: '9.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/internal_ids.yml b/db/docs/internal_ids.yml
index 100e58ad921..5109a51802c 100644
--- a/db/docs/internal_ids.yml
+++ b/db/docs/internal_ids.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps track of counters scoped to a certain context, e.g. a project-wide counter for issues.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/17580
milestone: '10.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/ip_restrictions.yml b/db/docs/ip_restrictions.yml
index 6437cda47f2..93f0da0505a 100644
--- a/db/docs/ip_restrictions.yml
+++ b/db/docs/ip_restrictions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/12669
milestone: '12.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issuable_metric_images.yml b/db/docs/issuable_metric_images.yml
index d4460d5e31c..1cc39a8de12 100644
--- a/db/docs/issuable_metric_images.yml
+++ b/db/docs/issuable_metric_images.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46845
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issuable_resource_links.yml b/db/docs/issuable_resource_links.yml
index e58355cadd6..b2ad7c0c301 100644
--- a/db/docs/issuable_resource_links.yml
+++ b/db/docs/issuable_resource_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists resources links for an issuable, particularly incident.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/88417
milestone: '15.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issuable_severities.yml b/db/docs/issuable_severities.yml
index 5f9a8f5ba43..724561ce460 100644
--- a/db/docs/issuable_severities.yml
+++ b/db/docs/issuable_severities.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Integer representing severity applied to issues, currently used for incidents
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40272
milestone: '13.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issuable_slas.yml b/db/docs/issuable_slas.yml
index 14e94a3aed3..6668dc7c4d9 100644
--- a/db/docs/issuable_slas.yml
+++ b/db/docs/issuable_slas.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists information about incident SLAs for incidents
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/44253
milestone: '13.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issue_assignees.yml b/db/docs/issue_assignees.yml
index f6a06e7c51d..dbfd277213c 100644
--- a/db/docs/issue_assignees.yml
+++ b/db/docs/issue_assignees.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Users assigned to an issue
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/1541
milestone: '9.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issue_customer_relations_contacts.yml b/db/docs/issue_customer_relations_contacts.yml
index 1548835f6d3..ca7c3dcdc09 100644
--- a/db/docs/issue_customer_relations_contacts.yml
+++ b/db/docs/issue_customer_relations_contacts.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Holds Customer Relations (CRM) Contacts
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/71007
milestone: '14.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issue_email_participants.yml b/db/docs/issue_email_participants.yml
index 8cbed5f9d8f..38d40f535b6 100644
--- a/db/docs/issue_email_participants.yml
+++ b/db/docs/issue_email_participants.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Email addresses for non-GitLab users added to issues as participants
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42943
milestone: '13.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issue_emails.yml b/db/docs/issue_emails.yml
index 3f6c3ee3d72..4ae4e309338 100644
--- a/db/docs/issue_emails.yml
+++ b/db/docs/issue_emails.yml
@@ -8,3 +8,4 @@ feature_categories:
description: The Message-ID of the original email that resulted in the creation of an issue
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/71749
milestone: '14.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issue_links.yml b/db/docs/issue_links.yml
index 592a4b3873f..ed21e9c177b 100644
--- a/db/docs/issue_links.yml
+++ b/db/docs/issue_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Links two issues by relationship type, which can be related or blocking
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/1719
milestone: '9.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issue_metrics.yml b/db/docs/issue_metrics.yml
index 3d2055a155c..d886aede7d0 100644
--- a/db/docs/issue_metrics.yml
+++ b/db/docs/issue_metrics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store various metrics for issues.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/516c838a1846d049814765afa85c28a3c14a5b9f
milestone: '8.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issue_search_data.yml b/db/docs/issue_search_data.yml
index cea9a385afb..f064c15af4a 100644
--- a/db/docs/issue_search_data.yml
+++ b/db/docs/issue_search_data.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/71913
milestone: '14.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issue_tracker_data.yml b/db/docs/issue_tracker_data.yml
index 3af23de8633..ce62346c3d6 100644
--- a/db/docs/issue_tracker_data.yml
+++ b/db/docs/issue_tracker_data.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Data related to the issue tracker integrations.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/14187
milestone: '12.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issue_user_mentions.yml b/db/docs/issue_user_mentions.yml
index 72e0d483c64..4238441ea0b 100644
--- a/db/docs/issue_user_mentions.yml
+++ b/db/docs/issue_user_mentions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: User mentions in issue descriptions
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19009
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issues.yml b/db/docs/issues.yml
index db95aea01c3..369dc907d57 100644
--- a/db/docs/issues.yml
+++ b/db/docs/issues.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Information describing issues, which is also used by the WorkItem class
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/9ba1224867665844b117fa037e1465bb706b3685
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/issues_prometheus_alert_events.yml b/db/docs/issues_prometheus_alert_events.yml
index 01ff7f9b6e4..75394e7b962 100644
--- a/db/docs/issues_prometheus_alert_events.yml
+++ b/db/docs/issues_prometheus_alert_events.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Adds relationship between PrometheusAlertEvent and issues created due to them
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17477
milestone: '12.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/issues_self_managed_prometheus_alert_events.yml b/db/docs/issues_self_managed_prometheus_alert_events.yml
index feb208d7c3a..7ac9433a2cb 100644
--- a/db/docs/issues_self_managed_prometheus_alert_events.yml
+++ b/db/docs/issues_self_managed_prometheus_alert_events.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Adds associations between Issues table and Prometheus alerts from self-managed Prometheus instances
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/18046
milestone: '12.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/iterations_cadences.yml b/db/docs/iterations_cadences.yml
index 5c6ea38b10e..972e577a788 100644
--- a/db/docs/iterations_cadences.yml
+++ b/db/docs/iterations_cadences.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Defines an iteration cadence for a group, used to define how iterations should act
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/50707
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/jira_connect_installations.yml b/db/docs/jira_connect_installations.yml
index 8695e0294b6..e812fd748d5 100644
--- a/db/docs/jira_connect_installations.yml
+++ b/db/docs/jira_connect_installations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: GitLab.com for Jira Cloud app installation data, formerly Jira Connect App.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/9593
milestone: '11.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/jira_connect_subscriptions.yml b/db/docs/jira_connect_subscriptions.yml
index 775ae3aa96c..6293ab3714d 100644
--- a/db/docs/jira_connect_subscriptions.yml
+++ b/db/docs/jira_connect_subscriptions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: GitLab.com for Jira Cloud app subscriptions data, formerly Jira Connect App.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/10453
milestone: '11.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/jira_imports.yml b/db/docs/jira_imports.yml
index 38cdca874e2..63ee28358ae 100644
--- a/db/docs/jira_imports.yml
+++ b/db/docs/jira_imports.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Track Jira issue import progress into GitLab issues.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/28108
milestone: '12.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/jira_tracker_data.yml b/db/docs/jira_tracker_data.yml
index 6e7d6236ffa..e41ce0b5d87 100644
--- a/db/docs/jira_tracker_data.yml
+++ b/db/docs/jira_tracker_data.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Data related to the Jira integration.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/1f332ae8da994509232c7601074b25514ad23c52
milestone: '12.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/keys.yml b/db/docs/keys.yml
index d016b316c15..4e626b1465c 100644
--- a/db/docs/keys.yml
+++ b/db/docs/keys.yml
@@ -10,3 +10,4 @@ feature_categories:
description: SSH keys used by users or for deployments.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/9ba1224867665844b117fa037e1465bb706b3685
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/label_links.yml b/db/docs/label_links.yml
index 5eb10e5e968..2d5664ab431 100644
--- a/db/docs/label_links.yml
+++ b/db/docs/label_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information linking labels with target objects that can be labelled; such as issues, MRs and epics
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/03654a6abf47c88b8b980a6707874ff78080d2fe
milestone: '7.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/label_priorities.yml b/db/docs/label_priorities.yml
index 608cda8590e..cdeb18d815b 100644
--- a/db/docs/label_priorities.yml
+++ b/db/docs/label_priorities.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The relative priority assigned to a label within a project, if any
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/297892011330ecdd2fa7cbe47fbc6fd4f3b62171
milestone: '8.14'
+gitlab_schema: gitlab_main
diff --git a/db/docs/labels.yml b/db/docs/labels.yml
index efda4b65021..47a3bfb4417 100644
--- a/db/docs/labels.yml
+++ b/db/docs/labels.yml
@@ -9,3 +9,4 @@ feature_categories:
description: Information related to labels, which can be associated with groups or projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/03654a6abf47c88b8b980a6707874ff78080d2fe
milestone: '7.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/ldap_group_links.yml b/db/docs/ldap_group_links.yml
index 49c4e560c34..d9a1b0acca5 100644
--- a/db/docs/ldap_group_links.yml
+++ b/db/docs/ldap_group_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/b017947ac91655f8ae6593fb63c3423cd1b439f4
milestone: '7.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/lfs_file_locks.yml b/db/docs/lfs_file_locks.yml
index 8cd1c2fd4f9..c366c43d6d7 100644
--- a/db/docs/lfs_file_locks.yml
+++ b/db/docs/lfs_file_locks.yml
@@ -7,3 +7,4 @@ feature_categories:
description: File locks for LFS objects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/4091
milestone: '10.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/lfs_object_states.yml b/db/docs/lfs_object_states.yml
index a18699e3557..02334202bdc 100644
--- a/db/docs/lfs_object_states.yml
+++ b/db/docs/lfs_object_states.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Geo verification states for LFS objects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63981
milestone: '14.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/lfs_objects.yml b/db/docs/lfs_objects.yml
index 0e26e3c7758..490bc1af0d9 100644
--- a/db/docs/lfs_objects.yml
+++ b/db/docs/lfs_objects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: LFS files
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/1727
milestone: '8.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/lfs_objects_projects.yml b/db/docs/lfs_objects_projects.yml
index 85cc8f94022..7158e702312 100644
--- a/db/docs/lfs_objects_projects.yml
+++ b/db/docs/lfs_objects_projects.yml
@@ -5,6 +5,7 @@ classes:
feature_categories:
- git_lfs
- source_code_management
-description: Join table relating lfs_objects and projects
+description: Join table relating lfs_objects and projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/1727
milestone: '8.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/licenses.yml b/db/docs/licenses.yml
index 5e178996e3d..0957105695e 100644
--- a/db/docs/licenses.yml
+++ b/db/docs/licenses.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store information related to the instance's license
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/d1f2b09fadcfba210c5121bd214b910b9f9809fd
milestone: '7.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/list_user_preferences.yml b/db/docs/list_user_preferences.yml
index cd2b53fd384..95f935d69bc 100644
--- a/db/docs/list_user_preferences.yml
+++ b/db/docs/list_user_preferences.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Issue board list preferences on a per-user basis, specifically whether the user has collapsed the list or not
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/15657
milestone: '12.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/lists.yml b/db/docs/lists.yml
index 4633be6fb58..6ce93b887d7 100644
--- a/db/docs/lists.yml
+++ b/db/docs/lists.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Configuration of a single list on an issue board
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/611dab2e522e5e59cf09cd459a31686e65616863
milestone: '8.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/loose_foreign_keys_deleted_records.yml b/db/docs/loose_foreign_keys_deleted_records.yml
index df26ffaefd1..aeaf241ef4a 100644
--- a/db/docs/loose_foreign_keys_deleted_records.yml
+++ b/db/docs/loose_foreign_keys_deleted_records.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used by the loose foreign keys feature as a queue of parent records whose child records (via foreign keys) need to be deleted/nullified
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/70152
milestone: '14.3'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/member_roles.yml b/db/docs/member_roles.yml
index 314c65a1ef7..559a85823cc 100644
--- a/db/docs/member_roles.yml
+++ b/db/docs/member_roles.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Stores custom roles with composable permissions
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/92152
milestone: '15.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/member_tasks.yml b/db/docs/member_tasks.yml
index 8802d50176b..0413011c005 100644
--- a/db/docs/member_tasks.yml
+++ b/db/docs/member_tasks.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/69299
milestone: '14.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/members.yml b/db/docs/members.yml
index b26d0edd6c9..94306dc5f87 100644
--- a/db/docs/members.yml
+++ b/db/docs/members.yml
@@ -11,3 +11,4 @@ feature_categories:
description: Stores members per namespace
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/3503b504eabf95487fc3fb49df953a7d694da4fe
milestone: '7.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_assignees.yml b/db/docs/merge_request_assignees.yml
index 6fd82ac003e..38f476ead90 100644
--- a/db/docs/merge_request_assignees.yml
+++ b/db/docs/merge_request_assignees.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store allocated assignees for merge requests
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/26496
milestone: '11.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_blocks.yml b/db/docs/merge_request_blocks.yml
index 1a3452fc66c..3b7e18818c4 100644
--- a/db/docs/merge_request_blocks.yml
+++ b/db/docs/merge_request_blocks.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps relation between blocked and blocking merge requests
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/27323
milestone: '11.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_cleanup_schedules.yml b/db/docs/merge_request_cleanup_schedules.yml
index 9a9338713a6..e25c88c99a7 100644
--- a/db/docs/merge_request_cleanup_schedules.yml
+++ b/db/docs/merge_request_cleanup_schedules.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store refs cleanup schedules for merge requests
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46758
milestone: '13.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_context_commit_diff_files.yml b/db/docs/merge_request_context_commit_diff_files.yml
index 08af5c387c4..6b64ea87555 100644
--- a/db/docs/merge_request_context_commit_diff_files.yml
+++ b/db/docs/merge_request_context_commit_diff_files.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores diffs data for merge request context commits
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23701
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_context_commits.yml b/db/docs/merge_request_context_commits.yml
index 4c52a0a6c08..1c8fc45776f 100644
--- a/db/docs/merge_request_context_commits.yml
+++ b/db/docs/merge_request_context_commits.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store context commit related data for merge requests
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23701
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_diff_commit_users.yml b/db/docs/merge_request_diff_commit_users.yml
index 4a07b37993e..1e6e78b37e3 100644
--- a/db/docs/merge_request_diff_commit_users.yml
+++ b/db/docs/merge_request_diff_commit_users.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store commit user information for merge request diffs
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63669
milestone: '14.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_diff_commits.yml b/db/docs/merge_request_diff_commits.yml
index 155b6f82612..1b2f910c88a 100644
--- a/db/docs/merge_request_diff_commits.yml
+++ b/db/docs/merge_request_diff_commits.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store commit related information within a merge request diff
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/12527
milestone: '9.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_diff_details.yml b/db/docs/merge_request_diff_details.yml
index ff0770e97b6..7036c799df9 100644
--- a/db/docs/merge_request_diff_details.yml
+++ b/db/docs/merge_request_diff_details.yml
@@ -7,3 +7,4 @@ feature_categories:
description: External MR diff replication detail
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/34248
milestone: '13.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_diff_files.yml b/db/docs/merge_request_diff_files.yml
index 56b7b0ec6ee..5bb625231f8 100644
--- a/db/docs/merge_request_diff_files.yml
+++ b/db/docs/merge_request_diff_files.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store file related information within a merge request diff
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/12047
milestone: '9.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_diffs.yml b/db/docs/merge_request_diffs.yml
index 912f972e67d..d1044ebffe8 100644
--- a/db/docs/merge_request_diffs.yml
+++ b/db/docs/merge_request_diffs.yml
@@ -4,6 +4,7 @@ classes:
- MergeRequestDiff
feature_categories:
- code_review
-description: Store information about the changes made within a git push for a merge request
+description: Store information about the changes made within a git push for a merge request
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/c983e8eb3d9cac01090b8657735544f71f891576
milestone: '6.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_metrics.yml b/db/docs/merge_request_metrics.yml
index 0b166eee455..31267b6bf97 100644
--- a/db/docs/merge_request_metrics.yml
+++ b/db/docs/merge_request_metrics.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Store various metrics for merge requests.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/5986
milestone: '8.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_predictions.yml b/db/docs/merge_request_predictions.yml
index 7495f0934a4..60680a73583 100644
--- a/db/docs/merge_request_predictions.yml
+++ b/db/docs/merge_request_predictions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Includes machine learning model predictions
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/97622
milestone: '15.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_reviewers.yml b/db/docs/merge_request_reviewers.yml
index 61810bd13c9..b8afea0d217 100644
--- a/db/docs/merge_request_reviewers.yml
+++ b/db/docs/merge_request_reviewers.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store allocated reviewers for merge requests
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40358
milestone: '13.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_request_user_mentions.yml b/db/docs/merge_request_user_mentions.yml
index 95d2117c12b..26d2b0b7a25 100644
--- a/db/docs/merge_request_user_mentions.yml
+++ b/db/docs/merge_request_user_mentions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store user mentions for merge requests
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19009
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_requests.yml b/db/docs/merge_requests.yml
index 6546d28a534..8e849a242b4 100644
--- a/db/docs/merge_requests.yml
+++ b/db/docs/merge_requests.yml
@@ -7,3 +7,4 @@ feature_categories:
description: This is the main table that stores information about project merge requests.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/6d460aa2d6b3959593c168eed181516036525393
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_requests_closing_issues.yml b/db/docs/merge_requests_closing_issues.yml
index 210419bc75f..9ad45df375a 100644
--- a/db/docs/merge_requests_closing_issues.yml
+++ b/db/docs/merge_requests_closing_issues.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store the events of merge request closing any issues
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/5986
milestone: '8.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_requests_compliance_violations.yml b/db/docs/merge_requests_compliance_violations.yml
index cfa7f78c13e..f23e734de8f 100644
--- a/db/docs/merge_requests_compliance_violations.yml
+++ b/db/docs/merge_requests_compliance_violations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/74290
milestone: '14.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/merge_trains.yml b/db/docs/merge_trains.yml
index e0481d923c0..3b666322d3b 100644
--- a/db/docs/merge_trains.yml
+++ b/db/docs/merge_trains.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/827fc3ccb9335aa29fba0fc532b70015ec4c5186
milestone: '11.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/metrics_dashboard_annotations.yml b/db/docs/metrics_dashboard_annotations.yml
index a874ef0dfdc..6ecf5317794 100644
--- a/db/docs/metrics_dashboard_annotations.yml
+++ b/db/docs/metrics_dashboard_annotations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27583
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/metrics_users_starred_dashboards.yml b/db/docs/metrics_users_starred_dashboards.yml
index 903b563d071..29a027de895 100644
--- a/db/docs/metrics_users_starred_dashboards.yml
+++ b/db/docs/metrics_users_starred_dashboards.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/29912
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/milestone_releases.yml b/db/docs/milestone_releases.yml
index de2b6a9cfbc..e84c83891c3 100644
--- a/db/docs/milestone_releases.yml
+++ b/db/docs/milestone_releases.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/user/project/releases/#associate-milestones-with-a-release
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/a43ab8d6a430014e875deb3bff3fd8d8da256747
milestone: '12.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/milestones.yml b/db/docs/milestones.yml
index c41bb289f37..8ba4f3a4de0 100644
--- a/db/docs/milestones.yml
+++ b/db/docs/milestones.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information related to milestones, used by team planning features to timebox work
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/23d950855d6d2524d00b1f0618c008e2529f06a4
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/ml_candidate_metadata.yml b/db/docs/ml_candidate_metadata.yml
new file mode 100644
index 00000000000..485544f0f59
--- /dev/null
+++ b/db/docs/ml_candidate_metadata.yml
@@ -0,0 +1,11 @@
+---
+table_name: ml_candidate_metadata
+classes:
+ - Ml::CandidateMetadata
+feature_categories:
+ - mlops
+ - incubation
+gitlab_schema: gitlab_main
+description: A Candidate Metadata record holds extra information about the candidate
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/104267
+milestone: '15.7'
diff --git a/db/docs/ml_candidate_metrics.yml b/db/docs/ml_candidate_metrics.yml
index b0d9ed13489..24489973dd5 100644
--- a/db/docs/ml_candidate_metrics.yml
+++ b/db/docs/ml_candidate_metrics.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Metrics recorded for a Machine Learning model candidate
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/95168
milestone: '15.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/ml_candidate_params.yml b/db/docs/ml_candidate_params.yml
index 01903b66108..25372de7c7f 100644
--- a/db/docs/ml_candidate_params.yml
+++ b/db/docs/ml_candidate_params.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Configuration parameters recorded for a Machine Learning model candidate
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/95168
milestone: '15.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/ml_candidates.yml b/db/docs/ml_candidates.yml
index c1f7f622350..c057eb45675 100644
--- a/db/docs/ml_candidates.yml
+++ b/db/docs/ml_candidates.yml
@@ -8,3 +8,4 @@ feature_categories:
description: A Model Candidate is a record of the results on training a model on some configuration
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/95168
milestone: '15.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/ml_experiment_metadata.yml b/db/docs/ml_experiment_metadata.yml
new file mode 100644
index 00000000000..a77781cb601
--- /dev/null
+++ b/db/docs/ml_experiment_metadata.yml
@@ -0,0 +1,11 @@
+---
+table_name: ml_experiment_metadata
+classes:
+ - Ml::ExperimentMetadata
+feature_categories:
+ - mlops
+ - incubation
+gitlab_schema: gitlab_main
+description: An Experiment Metadata record holds extra information about the experiment
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/104267
+milestone: '15.7'
diff --git a/db/docs/ml_experiments.yml b/db/docs/ml_experiments.yml
index ea5edc9569c..bada30749d3 100644
--- a/db/docs/ml_experiments.yml
+++ b/db/docs/ml_experiments.yml
@@ -8,3 +8,4 @@ feature_categories:
description: A Machine Learning Experiments groups many Model Candidates
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/95168
milestone: '15.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespace_admin_notes.yml b/db/docs/namespace_admin_notes.yml
index f46d8f8846b..6d6710f7ee4 100644
--- a/db/docs/namespace_admin_notes.yml
+++ b/db/docs/namespace_admin_notes.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Contains notes about groups that are visible to server administrators.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47825
milestone: '13.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespace_aggregation_schedules.yml b/db/docs/namespace_aggregation_schedules.yml
index 07c80396302..c961c33f2ee 100644
--- a/db/docs/namespace_aggregation_schedules.yml
+++ b/db/docs/namespace_aggregation_schedules.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps update schedules for namespace_root_storage_statistics
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/29570
milestone: '12.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespace_bans.yml b/db/docs/namespace_bans.yml
index 7e11738ab81..af68cf0b48b 100644
--- a/db/docs/namespace_bans.yml
+++ b/db/docs/namespace_bans.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains users banned from namespaces
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/91271
milestone: "15.2"
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespace_ci_cd_settings.yml b/db/docs/namespace_ci_cd_settings.yml
index 8159f721c98..ddfa390694c 100644
--- a/db/docs/namespace_ci_cd_settings.yml
+++ b/db/docs/namespace_ci_cd_settings.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Namespace-scoped settings related to the CI/CD domain
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/86477
milestone: '15.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespace_commit_emails.yml b/db/docs/namespace_commit_emails.yml
index d7e192f97f4..c19ff1c577b 100644
--- a/db/docs/namespace_commit_emails.yml
+++ b/db/docs/namespace_commit_emails.yml
@@ -7,3 +7,4 @@ feature_categories:
description: User default email for commits from the GitLab UI
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/101832
milestone: '15.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespace_details.yml b/db/docs/namespace_details.yml
index 00053d39396..d256085bf00 100644
--- a/db/docs/namespace_details.yml
+++ b/db/docs/namespace_details.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store details for namespaces
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/82958
milestone: '15.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespace_limits.yml b/db/docs/namespace_limits.yml
index 55b174f9e6f..8601d163d9d 100644
--- a/db/docs/namespace_limits.yml
+++ b/db/docs/namespace_limits.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains limits for namespace features like storage and ci
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/34746
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespace_package_settings.yml b/db/docs/namespace_package_settings.yml
index 518458dd02f..7247b1187f5 100644
--- a/db/docs/namespace_package_settings.yml
+++ b/db/docs/namespace_package_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Namespace and group-level settings for the package registry
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/50104
milestone: '13.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespace_root_storage_statistics.yml b/db/docs/namespace_root_storage_statistics.yml
index ce8620db1e5..2a3e19ab108 100644
--- a/db/docs/namespace_root_storage_statistics.yml
+++ b/db/docs/namespace_root_storage_statistics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/bde41ee866d0fe0b1bb5ece1130fb6e24d95ad17
milestone: '12.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespace_settings.yml b/db/docs/namespace_settings.yml
index ef2f96eb46e..85df86074dc 100644
--- a/db/docs/namespace_settings.yml
+++ b/db/docs/namespace_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores settings per namespace
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36321
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespace_statistics.yml b/db/docs/namespace_statistics.yml
index eb8d7f6a5ca..fd7dcb4b62e 100644
--- a/db/docs/namespace_statistics.yml
+++ b/db/docs/namespace_statistics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/48d8bdca0493056a717cd7d9fee2e8b51d6b0502
milestone: '9.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespaces.yml b/db/docs/namespaces.yml
index 0518b055e52..e608e996d51 100644
--- a/db/docs/namespaces.yml
+++ b/db/docs/namespaces.yml
@@ -10,3 +10,4 @@ feature_categories:
description: Storing namespaces records for groups, users and projects
introduced_by_url: https://github.com/gitlabhq/gitlabhq/pull/2051
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/namespaces_sync_events.yml b/db/docs/namespaces_sync_events.yml
index f674bfcf622..f143ac29804 100644
--- a/db/docs/namespaces_sync_events.yml
+++ b/db/docs/namespaces_sync_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used as a queue of data that needs to be synchronized between the `ci` and `main` database
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75517
milestone: '14.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/note_diff_files.yml b/db/docs/note_diff_files.yml
index 33921af7f6d..5e78644fe52 100644
--- a/db/docs/note_diff_files.yml
+++ b/db/docs/note_diff_files.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persisted truncated note diffs
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/18991
milestone: '11.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/notes.yml b/db/docs/notes.yml
index f97bfc5bb5c..a6bc81f093f 100644
--- a/db/docs/notes.yml
+++ b/db/docs/notes.yml
@@ -20,3 +20,4 @@ feature_categories:
description: The object at the core of comments, discussions and system notes shown on issues, MRs and epics
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/9ba1224867665844b117fa037e1465bb706b3685
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/notification_settings.yml b/db/docs/notification_settings.yml
index 214db1ca14a..c048163a790 100644
--- a/db/docs/notification_settings.yml
+++ b/db/docs/notification_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: User preferences for receiving notifications related to various actions within the application
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/31b0e53015e38e51d9c02cca85c9279600b1bf85
milestone: '8.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/oauth_access_grants.yml b/db/docs/oauth_access_grants.yml
index e36f1bcc36c..197d4fc59bd 100644
--- a/db/docs/oauth_access_grants.yml
+++ b/db/docs/oauth_access_grants.yml
@@ -8,3 +8,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/e41dadcb33fda44ee274daa673bd933e13aa90eb
milestone: '7.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/oauth_access_tokens.yml b/db/docs/oauth_access_tokens.yml
index 0f9165f1fca..f409762f483 100644
--- a/db/docs/oauth_access_tokens.yml
+++ b/db/docs/oauth_access_tokens.yml
@@ -8,3 +8,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/e41dadcb33fda44ee274daa673bd933e13aa90eb
milestone: '7.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/oauth_applications.yml b/db/docs/oauth_applications.yml
index 307a436373e..ac13ab3319a 100644
--- a/db/docs/oauth_applications.yml
+++ b/db/docs/oauth_applications.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/e41dadcb33fda44ee274daa673bd933e13aa90eb
milestone: '7.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/oauth_openid_requests.yml b/db/docs/oauth_openid_requests.yml
index 321811e1722..011b91a758a 100644
--- a/db/docs/oauth_openid_requests.yml
+++ b/db/docs/oauth_openid_requests.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/c4982890489d254da2fe998aab30bf257767ed5e
milestone: '9.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/onboarding_progresses.yml b/db/docs/onboarding_progresses.yml
index 80b70fe0b1f..805b674d44b 100644
--- a/db/docs/onboarding_progresses.yml
+++ b/db/docs/onboarding_progresses.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/50711
milestone: '13.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/operations_feature_flag_scopes.yml b/db/docs/operations_feature_flag_scopes.yml
index ac1665fb3a6..98c5c09982c 100644
--- a/db/docs/operations_feature_flag_scopes.yml
+++ b/db/docs/operations_feature_flag_scopes.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Deprecated in favor of `operations_scopes`. To be dropped.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/9110
milestone: '11.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/operations_feature_flags.yml b/db/docs/operations_feature_flags.yml
index c84ed55d0fb..9207ab20b3a 100644
--- a/db/docs/operations_feature_flags.yml
+++ b/db/docs/operations_feature_flags.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/7433
milestone: '11.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/operations_feature_flags_clients.yml b/db/docs/operations_feature_flags_clients.yml
index f8f04cadbb7..d97309f0202 100644
--- a/db/docs/operations_feature_flags_clients.yml
+++ b/db/docs/operations_feature_flags_clients.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/operations/feature_flags.html
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/7433
milestone: '11.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/operations_feature_flags_issues.yml b/db/docs/operations_feature_flags_issues.yml
index 6b62629a38d..ad361f2e659 100644
--- a/db/docs/operations_feature_flags_issues.yml
+++ b/db/docs/operations_feature_flags_issues.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/operations/feature_flags.html#feature-flag-related-issues
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/32876
milestone: '13.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/operations_scopes.yml b/db/docs/operations_scopes.yml
index 781b0a459ab..0275bec0579 100644
--- a/db/docs/operations_scopes.yml
+++ b/db/docs/operations_scopes.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/operations/feature_flags.html#feature-flag-strategies
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/24819
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/operations_strategies.yml b/db/docs/operations_strategies.yml
index c21859e2de6..f92e6c5b057 100644
--- a/db/docs/operations_strategies.yml
+++ b/db/docs/operations_strategies.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/operations/feature_flags.html#feature-flag-strategies
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/24819
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/operations_strategies_user_lists.yml b/db/docs/operations_strategies_user_lists.yml
index ec8062ab57c..c4f0c42c5c5 100644
--- a/db/docs/operations_strategies_user_lists.yml
+++ b/db/docs/operations_strategies_user_lists.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/operations/feature_flags.html#user-list
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/30243
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/operations_user_lists.yml b/db/docs/operations_user_lists.yml
index af1e091ee45..37b6949ea15 100644
--- a/db/docs/operations_user_lists.yml
+++ b/db/docs/operations_user_lists.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/operations/feature_flags.html#user-list
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/28822
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/p_ci_builds_metadata.yml b/db/docs/p_ci_builds_metadata.yml
index 676cb3bfb1c..d984c68541d 100644
--- a/db/docs/p_ci_builds_metadata.yml
+++ b/db/docs/p_ci_builds_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Routing table that holds information for job execution
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/100115
milestone: '15.5'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/packages_build_infos.yml b/db/docs/packages_build_infos.yml
index 5eae65c0e0e..aafb24ad265 100644
--- a/db/docs/packages_build_infos.yml
+++ b/db/docs/packages_build_infos.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table relating packages_packages with ci_pipelines
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19796
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_cleanup_policies.yml b/db/docs/packages_cleanup_policies.yml
index 1221c7952a0..0353f08fc8e 100644
--- a/db/docs/packages_cleanup_policies.yml
+++ b/db/docs/packages_cleanup_policies.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Cleanup policy parameters for packages.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/85918
milestone: '15.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_composer_cache_files.yml b/db/docs/packages_composer_cache_files.yml
index e6e81eb149b..76dc9d75245 100644
--- a/db/docs/packages_composer_cache_files.yml
+++ b/db/docs/packages_composer_cache_files.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Composer packages cached SHA files (deprecated)
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/51509
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_composer_metadata.yml b/db/docs/packages_composer_metadata.yml
index 19d51711d42..e6ab8fcb71e 100644
--- a/db/docs/packages_composer_metadata.yml
+++ b/db/docs/packages_composer_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Composer package metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/30448
milestone: '13.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_conan_file_metadata.yml b/db/docs/packages_conan_file_metadata.yml
index 7d4d86ee4ed..9d8888d73eb 100644
--- a/db/docs/packages_conan_file_metadata.yml
+++ b/db/docs/packages_conan_file_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Conan package file metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/16418
milestone: '12.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_conan_metadata.yml b/db/docs/packages_conan_metadata.yml
index 82b590af698..84bf02b9aeb 100644
--- a/db/docs/packages_conan_metadata.yml
+++ b/db/docs/packages_conan_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Conan package metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/16418
milestone: '12.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_file_metadata.yml b/db/docs/packages_debian_file_metadata.yml
index 6a86b7ec285..f24ddd0efbf 100644
--- a/db/docs/packages_debian_file_metadata.yml
+++ b/db/docs/packages_debian_file_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian package file metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/49692
milestone: '13.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_group_architectures.yml b/db/docs/packages_debian_group_architectures.yml
index 4ffee154fa3..d9d6ea4c714 100644
--- a/db/docs/packages_debian_group_architectures.yml
+++ b/db/docs/packages_debian_group_architectures.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian registry group-level architectures
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/51265
milestone: '13.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_group_component_files.yml b/db/docs/packages_debian_group_component_files.yml
index dc68328e4b5..134400b42b4 100644
--- a/db/docs/packages_debian_group_component_files.yml
+++ b/db/docs/packages_debian_group_component_files.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian group-level component files
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/52885
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_group_components.yml b/db/docs/packages_debian_group_components.yml
index 316e46b90b7..d57fbf8d8b7 100644
--- a/db/docs/packages_debian_group_components.yml
+++ b/db/docs/packages_debian_group_components.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian package group-level distribution components
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/51732
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_group_distribution_keys.yml b/db/docs/packages_debian_group_distribution_keys.yml
index 19d55536e37..522eeb8afb1 100644
--- a/db/docs/packages_debian_group_distribution_keys.yml
+++ b/db/docs/packages_debian_group_distribution_keys.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian group-level distribution keys
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60993
milestone: '14.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_group_distributions.yml b/db/docs/packages_debian_group_distributions.yml
index cb4b3bcd469..e324e73a2bb 100644
--- a/db/docs/packages_debian_group_distributions.yml
+++ b/db/docs/packages_debian_group_distributions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian registry group level distributions
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/49405
milestone: '13.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_project_architectures.yml b/db/docs/packages_debian_project_architectures.yml
index becdee8cfa6..1aba40a3549 100644
--- a/db/docs/packages_debian_project_architectures.yml
+++ b/db/docs/packages_debian_project_architectures.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian registry group-level architectures
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/51265
milestone: '13.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_project_component_files.yml b/db/docs/packages_debian_project_component_files.yml
index 5b6da936ebc..a90860ba8b9 100644
--- a/db/docs/packages_debian_project_component_files.yml
+++ b/db/docs/packages_debian_project_component_files.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian project-level component files
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/52885
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_project_components.yml b/db/docs/packages_debian_project_components.yml
index 44eb9a489a0..36d0caf29a0 100644
--- a/db/docs/packages_debian_project_components.yml
+++ b/db/docs/packages_debian_project_components.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian package project-level distribution components
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/51732
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_project_distribution_keys.yml b/db/docs/packages_debian_project_distribution_keys.yml
index 17863f45e88..947c487312e 100644
--- a/db/docs/packages_debian_project_distribution_keys.yml
+++ b/db/docs/packages_debian_project_distribution_keys.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian project-level distribution keys
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60993
milestone: '14.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_project_distributions.yml b/db/docs/packages_debian_project_distributions.yml
index 4689b0b7534..316849a6dd7 100644
--- a/db/docs/packages_debian_project_distributions.yml
+++ b/db/docs/packages_debian_project_distributions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian package registry project level distributions
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/49405
milestone: '13.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_debian_publications.yml b/db/docs/packages_debian_publications.yml
index 181338308a3..1ba9e7b3736 100644
--- a/db/docs/packages_debian_publications.yml
+++ b/db/docs/packages_debian_publications.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Debian package publications relating distributions to packages
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/52916
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_dependencies.yml b/db/docs/packages_dependencies.yml
index 27b0b2cbd9b..ef1be227ce3 100644
--- a/db/docs/packages_dependencies.yml
+++ b/db/docs/packages_dependencies.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information about package dependencies for a set of supported package types
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20549
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_dependency_links.yml b/db/docs/packages_dependency_links.yml
index 5a6731a9e82..2c4548b5685 100644
--- a/db/docs/packages_dependency_links.yml
+++ b/db/docs/packages_dependency_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table between packages_packages and packages_dependencies
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20549
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_events.yml b/db/docs/packages_events.yml
index 1063e26a749..38c47c53721 100644
--- a/db/docs/packages_events.yml
+++ b/db/docs/packages_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Package tracking events (deprecated)
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/41846
milestone: '13.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_helm_file_metadata.yml b/db/docs/packages_helm_file_metadata.yml
index 13b23fd88cf..dbd39544482 100644
--- a/db/docs/packages_helm_file_metadata.yml
+++ b/db/docs/packages_helm_file_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Helm package file metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57017
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_maven_metadata.yml b/db/docs/packages_maven_metadata.yml
index 6f99f79ffc2..01ebfb1c597 100644
--- a/db/docs/packages_maven_metadata.yml
+++ b/db/docs/packages_maven_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Maven package metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6607
milestone: '11.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_npm_metadata.yml b/db/docs/packages_npm_metadata.yml
index af8c20bf1c0..677e9b55b0d 100644
--- a/db/docs/packages_npm_metadata.yml
+++ b/db/docs/packages_npm_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Npm package metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/73639
milestone: '14.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_nuget_dependency_link_metadata.yml b/db/docs/packages_nuget_dependency_link_metadata.yml
index 92c00306eb3..7d93e6aaf77 100644
--- a/db/docs/packages_nuget_dependency_link_metadata.yml
+++ b/db/docs/packages_nuget_dependency_link_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table between nuget target frameworks and packages_dependency_links
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/30618
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_nuget_metadata.yml b/db/docs/packages_nuget_metadata.yml
index 8179666c148..83a43f24af0 100644
--- a/db/docs/packages_nuget_metadata.yml
+++ b/db/docs/packages_nuget_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Nuget package metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/30994
milestone: '13.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_package_file_build_infos.yml b/db/docs/packages_package_file_build_infos.yml
index 16996a07def..2477117add9 100644
--- a/db/docs/packages_package_file_build_infos.yml
+++ b/db/docs/packages_package_file_build_infos.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table relating packages_package_files and ci_pipelines
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/44348
milestone: '13.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_package_files.yml b/db/docs/packages_package_files.yml
index c9e23f1003e..30f28f5e4ab 100644
--- a/db/docs/packages_package_files.yml
+++ b/db/docs/packages_package_files.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Package registry file links and file metadata for all package types
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6607
milestone: '11.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_packages.yml b/db/docs/packages_packages.yml
index 6378aeaa565..d2e08350ab7 100644
--- a/db/docs/packages_packages.yml
+++ b/db/docs/packages_packages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information for individual packages in the package registry
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6607
milestone: '11.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_pypi_metadata.yml b/db/docs/packages_pypi_metadata.yml
index 7d2d8d7be05..01dce318658 100644
--- a/db/docs/packages_pypi_metadata.yml
+++ b/db/docs/packages_pypi_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: PyPI package metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27632
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_rpm_metadata.yml b/db/docs/packages_rpm_metadata.yml
index cd34529ff0c..193dc46427e 100644
--- a/db/docs/packages_rpm_metadata.yml
+++ b/db/docs/packages_rpm_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Rpm package metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/96019
milestone: '15.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_rpm_repository_files.yml b/db/docs/packages_rpm_repository_files.yml
index 3aac984265c..7044b58e22a 100644
--- a/db/docs/packages_rpm_repository_files.yml
+++ b/db/docs/packages_rpm_repository_files.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Package registry file links and file metadata for RPM packages
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/97484
milestone: '15.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_rubygems_metadata.yml b/db/docs/packages_rubygems_metadata.yml
index ba521f99d77..d4cb5cbbeb8 100644
--- a/db/docs/packages_rubygems_metadata.yml
+++ b/db/docs/packages_rubygems_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Ruby gems metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/52639
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/packages_tags.yml b/db/docs/packages_tags.yml
index 41aad5590f5..dcd1eccd35c 100644
--- a/db/docs/packages_tags.yml
+++ b/db/docs/packages_tags.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Package identifier tags for supported package types. See https://docs.gitlab.com/ee/user/packages/npm_registry/#add-npm-distribution-tags for an example.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20636
milestone: '12.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/pages_deployment_states.yml b/db/docs/pages_deployment_states.yml
index dd0ff12abbe..f1907c93454 100644
--- a/db/docs/pages_deployment_states.yml
+++ b/db/docs/pages_deployment_states.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores verification state for Geo replicated Pages deployments.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/74905
milestone: '14.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/pages_deployments.yml b/db/docs/pages_deployments.yml
index 606147f9887..f8aae63c191 100644
--- a/db/docs/pages_deployments.yml
+++ b/db/docs/pages_deployments.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores ZIP archives for GitLab Pages websites.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/41785
milestone: '13.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/pages_domain_acme_orders.yml b/db/docs/pages_domain_acme_orders.yml
index 1bc97c3e47e..c285f638f3f 100644
--- a/db/docs/pages_domain_acme_orders.yml
+++ b/db/docs/pages_domain_acme_orders.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores ACME order information used in obtaining Let's Encrypt certificates for GitLab Pages domains.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/14014
milestone: '12.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/pages_domains.yml b/db/docs/pages_domains.yml
index e0fc084c4c2..ca4bde86f88 100644
--- a/db/docs/pages_domains.yml
+++ b/db/docs/pages_domains.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store Pages domain, certificate and encryption meta data.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/173
milestone: '8.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/path_locks.yml b/db/docs/path_locks.yml
index 27548f44c39..f27856d5dee 100644
--- a/db/docs/path_locks.yml
+++ b/db/docs/path_locks.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores paths to repository blobs locked by users
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/684e9d1b5979e11d2edae11a3028a696bfcdedf8
milestone: '8.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/personal_access_tokens.yml b/db/docs/personal_access_tokens.yml
index 70ad9a93247..8241f4234d8 100644
--- a/db/docs/personal_access_tokens.yml
+++ b/db/docs/personal_access_tokens.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/3a609038748055a27c7e01cf4b55d8249709c9cc
milestone: '8.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/plan_limits.yml b/db/docs/plan_limits.yml
index f5ddcb11f3d..7baa9a5b447 100644
--- a/db/docs/plan_limits.yml
+++ b/db/docs/plan_limits.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains Plan specific limits (CI minute quantities for example)
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19438
milestone: '12.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/plans.yml b/db/docs/plans.yml
index df227bcb6e9..71053051cb8 100644
--- a/db/docs/plans.yml
+++ b/db/docs/plans.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains information about purchasable Plans for GitLab namespaces
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/39ca951a0f28d147d4689379bbe48a9c14d55d9f
milestone: '9.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/pm_licenses.yml b/db/docs/pm_licenses.yml
new file mode 100644
index 00000000000..55ef2719cbc
--- /dev/null
+++ b/db/docs/pm_licenses.yml
@@ -0,0 +1,10 @@
+---
+table_name: pm_licenses
+classes:
+- PackageMetadata::License
+feature_categories:
+ - license_compliance
+description: Tracks licenses referenced by public package registries.
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/102794
+milestone: '15.6'
+gitlab_schema: gitlab_pm
diff --git a/db/docs/pm_package_version_licenses.yml b/db/docs/pm_package_version_licenses.yml
new file mode 100644
index 00000000000..439162ecf9d
--- /dev/null
+++ b/db/docs/pm_package_version_licenses.yml
@@ -0,0 +1,10 @@
+---
+table_name: pm_package_version_licenses
+classes:
+- PackageMetadata::PackageVersionLicense
+feature_categories:
+ - license_compliance
+description: Tracks licenses under which a given package version has been published.
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/102794
+milestone: '15.6'
+gitlab_schema: gitlab_pm
diff --git a/db/docs/pm_package_versions.yml b/db/docs/pm_package_versions.yml
new file mode 100644
index 00000000000..7b015ddc174
--- /dev/null
+++ b/db/docs/pm_package_versions.yml
@@ -0,0 +1,10 @@
+---
+table_name: pm_package_versions
+classes:
+- PackageMetadata::PackageVersion
+feature_categories:
+- license_compliance
+description: Tracks package versions served by public package registries.
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/102794
+milestone: '15.6'
+gitlab_schema: gitlab_pm
diff --git a/db/docs/pm_packages.yml b/db/docs/pm_packages.yml
new file mode 100644
index 00000000000..35932b37990
--- /dev/null
+++ b/db/docs/pm_packages.yml
@@ -0,0 +1,10 @@
+---
+table_name: pm_packages
+classes:
+- PackageMetadata::Package
+feature_categories:
+- license_compliance
+description: Tracks packages served by public package registries.
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/102794
+milestone: '15.6'
+gitlab_schema: gitlab_pm
diff --git a/db/docs/pool_repositories.yml b/db/docs/pool_repositories.yml
index 96ca1dcf7d9..190b2127f58 100644
--- a/db/docs/pool_repositories.yml
+++ b/db/docs/pool_repositories.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/fff7754186202cfcdeaa0962c28e5d43ddd705b7
milestone: '11.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/postgres_async_indexes.yml b/db/docs/postgres_async_indexes.yml
index b23b72de808..9e54fe11b89 100644
--- a/db/docs/postgres_async_indexes.yml
+++ b/db/docs/postgres_async_indexes.yml
@@ -9,3 +9,4 @@ description: >-
See https://docs.gitlab.com/ee/development/adding_database_indexes.html#create-indexes-asynchronously for more details.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66478
milestone: '14.2'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/postgres_reindex_actions.yml b/db/docs/postgres_reindex_actions.yml
index d7297454d6a..d36917bd707 100644
--- a/db/docs/postgres_reindex_actions.yml
+++ b/db/docs/postgres_reindex_actions.yml
@@ -10,3 +10,4 @@ description: >-
for details about reindexing.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/43156
milestone: '13.5'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/postgres_reindex_queued_actions.yml b/db/docs/postgres_reindex_queued_actions.yml
index 7955d000f8c..d6eef0eb326 100644
--- a/db/docs/postgres_reindex_queued_actions.yml
+++ b/db/docs/postgres_reindex_queued_actions.yml
@@ -9,3 +9,4 @@ description: >-
Actions in this queue will be prioritized over regular reindexing actions.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/73480
milestone: '14.5'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/product_analytics_events_experimental.yml b/db/docs/product_analytics_events_experimental.yml
index c295074b706..347a3ef88ac 100644
--- a/db/docs/product_analytics_events_experimental.yml
+++ b/db/docs/product_analytics_events_experimental.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Product analytic events, experimental feature.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/fc6c53e6f7b47dc22c8619a5a6fe491d29778d3f
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/programming_languages.yml b/db/docs/programming_languages.yml
index 5da5720a116..176ab502c74 100644
--- a/db/docs/programming_languages.yml
+++ b/db/docs/programming_languages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Contains known programming languages and their assigned colors
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/19480
milestone: '11.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_access_tokens.yml b/db/docs/project_access_tokens.yml
index 8c53c854b64..ddaca744571 100644
--- a/db/docs/project_access_tokens.yml
+++ b/db/docs/project_access_tokens.yml
@@ -6,3 +6,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33272
milestone: '13.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_alerting_settings.yml b/db/docs/project_alerting_settings.yml
index 0737c65faaf..629ba0ba834 100644
--- a/db/docs/project_alerting_settings.yml
+++ b/db/docs/project_alerting_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists project-level tokens for manual Prometheus installations
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/9334
milestone: '11.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_aliases.yml b/db/docs/project_aliases.yml
index f79c81d2afe..799dff34e7e 100644
--- a/db/docs/project_aliases.yml
+++ b/db/docs/project_aliases.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores aliases of projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/14108
milestone: '12.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_authorizations.yml b/db/docs/project_authorizations.yml
index 890997d7d33..b37634047f0 100644
--- a/db/docs/project_authorizations.yml
+++ b/db/docs/project_authorizations.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Stores maximal access to the project per user
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/6839
milestone: '8.14'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_auto_devops.yml b/db/docs/project_auto_devops.yml
index dd960ecc4eb..ff4e92c74f5 100644
--- a/db/docs/project_auto_devops.yml
+++ b/db/docs/project_auto_devops.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Auto DevOps settings for a project
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/6ed490401f49a8941dc7a9e3757ec4012f14ef0b
milestone: '10.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_build_artifacts_size_refreshes.yml b/db/docs/project_build_artifacts_size_refreshes.yml
index 56bad0e4df6..2e3a6a12b14 100644
--- a/db/docs/project_build_artifacts_size_refreshes.yml
+++ b/db/docs/project_build_artifacts_size_refreshes.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Temporary table to accurately recompute artifacts size.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/81306
milestone: '14.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_ci_cd_settings.yml b/db/docs/project_ci_cd_settings.yml
index a736cf6a8dc..265ec896247 100644
--- a/db/docs/project_ci_cd_settings.yml
+++ b/db/docs/project_ci_cd_settings.yml
@@ -9,3 +9,4 @@ feature_categories:
description: Project-scoped settings related to the CI/CD domain
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/392c411bdc16386ef42c86afaf8c4d8e4cddb955
milestone: '10.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_ci_feature_usages.yml b/db/docs/project_ci_feature_usages.yml
index e7e354c6cc7..a3f7be26027 100644
--- a/db/docs/project_ci_feature_usages.yml
+++ b/db/docs/project_ci_feature_usages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Project CI feature usage information used to access CI data from the main database.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68186
milestone: '14.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_compliance_framework_settings.yml b/db/docs/project_compliance_framework_settings.yml
index bc5555926c1..ab68259e87e 100644
--- a/db/docs/project_compliance_framework_settings.yml
+++ b/db/docs/project_compliance_framework_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/28182
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_custom_attributes.yml b/db/docs/project_custom_attributes.yml
index 90f13b4f593..3a4b76c5b02 100644
--- a/db/docs/project_custom_attributes.yml
+++ b/db/docs/project_custom_attributes.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores custom attributes per project
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/14593
milestone: '10.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_daily_statistics.yml b/db/docs/project_daily_statistics.yml
index 5de94c2845b..862a63b1909 100644
--- a/db/docs/project_daily_statistics.yml
+++ b/db/docs/project_daily_statistics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores repository fetch statistics per day
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/23596
milestone: '11.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_deploy_tokens.yml b/db/docs/project_deploy_tokens.yml
index 12e565bf4de..80bca84bf4c 100644
--- a/db/docs/project_deploy_tokens.yml
+++ b/db/docs/project_deploy_tokens.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/user/project/deploy_tokens/
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/8315861c9a50675b4f4f4ca536f0da90f27994f3
milestone: '10.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_error_tracking_settings.yml b/db/docs/project_error_tracking_settings.yml
index d10982fe712..5bfc278a206 100644
--- a/db/docs/project_error_tracking_settings.yml
+++ b/db/docs/project_error_tracking_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Project settings related to Error Tracking
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/24047
milestone: '11.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_export_jobs.yml b/db/docs/project_export_jobs.yml
index 991cdbeb12a..2eb6aa51202 100644
--- a/db/docs/project_export_jobs.yml
+++ b/db/docs/project_export_jobs.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to track and control project export status
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23664
milestone: '12.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_feature_usages.yml b/db/docs/project_feature_usages.yml
index b3182de243b..c209abf25eb 100644
--- a/db/docs/project_feature_usages.yml
+++ b/db/docs/project_feature_usages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Track Jira DVCS usage
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/21db9a55e200b23a5a47251e9df46fd548c74559
milestone: '11.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_features.yml b/db/docs/project_features.yml
index 7b94db88e70..a0a1cce3a7d 100644
--- a/db/docs/project_features.yml
+++ b/db/docs/project_features.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores access levels for project features like wikis, issues, repositories, containers, ect.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/5606
milestone: '8.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_group_links.yml b/db/docs/project_group_links.yml
index ca1aedf25b8..c03141058b6 100644
--- a/db/docs/project_group_links.yml
+++ b/db/docs/project_group_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/3ac5a759e93e632539438d4564582c645a9f6799
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_import_data.yml b/db/docs/project_import_data.yml
index 22c0f036b63..283657a1dd3 100644
--- a/db/docs/project_import_data.yml
+++ b/db/docs/project_import_data.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store credentials and configuration of external projects when using the Import/Export feature
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/7d98c8842d6bc9b14fb410f028db7ab651961b42
milestone: '7.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_incident_management_settings.yml b/db/docs/project_incident_management_settings.yml
index b1ef6824fe2..2e9812e9bf0 100644
--- a/db/docs/project_incident_management_settings.yml
+++ b/db/docs/project_incident_management_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists project settings for incident management
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/9744
milestone: '11.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_metrics_settings.yml b/db/docs/project_metrics_settings.yml
index 9090f15278c..6ff8902b24e 100644
--- a/db/docs/project_metrics_settings.yml
+++ b/db/docs/project_metrics_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/bb13ae974c295718eb80c14a179b721ba192a089
milestone: '11.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_mirror_data.yml b/db/docs/project_mirror_data.yml
index 3ea755c04a2..5ac43215b26 100644
--- a/db/docs/project_mirror_data.yml
+++ b/db/docs/project_mirror_data.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store and track the project import status when using the Import/Export feature
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/0ca479d1ce0eadfcdc0e29d0e18136f5790d5b2f
milestone: '9.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_pages_metadata.yml b/db/docs/project_pages_metadata.yml
index aa792520bc3..d9b609d7784 100644
--- a/db/docs/project_pages_metadata.yml
+++ b/db/docs/project_pages_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Store GitLab Pages metadata for projects.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17197
milestone: '12.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_relation_export_uploads.yml b/db/docs/project_relation_export_uploads.yml
index 369f6d281ee..43c6d33f5a5 100644
--- a/db/docs/project_relation_export_uploads.yml
+++ b/db/docs/project_relation_export_uploads.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store relation export files location
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/90624
milestone: '15.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_relation_exports.yml b/db/docs/project_relation_exports.yml
index 7014d4cae0d..f25fe8280ae 100644
--- a/db/docs/project_relation_exports.yml
+++ b/db/docs/project_relation_exports.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to track the generation of relation export files for projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/90624
milestone: '15.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_repositories.yml b/db/docs/project_repositories.yml
index ed90a0d1595..2a3e37098c7 100644
--- a/db/docs/project_repositories.yml
+++ b/db/docs/project_repositories.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps disk path to repositories and link to the shard
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/8614
milestone: '11.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_repository_states.yml b/db/docs/project_repository_states.yml
index fa762a646f4..6a8f33e7fa5 100644
--- a/db/docs/project_repository_states.yml
+++ b/db/docs/project_repository_states.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps checksums of repositories
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/4428
milestone: '10.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_repository_storage_moves.yml b/db/docs/project_repository_storage_moves.yml
index 4255a0d4a8a..d48dc700bae 100644
--- a/db/docs/project_repository_storage_moves.yml
+++ b/db/docs/project_repository_storage_moves.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores status of project repository moves
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/29095
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_security_settings.yml b/db/docs/project_security_settings.yml
index 79ebdcae8c2..99a767978fb 100644
--- a/db/docs/project_security_settings.yml
+++ b/db/docs/project_security_settings.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Project settings related to security features.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/32577
milestone: '13.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_settings.yml b/db/docs/project_settings.yml
index cc084590c89..7113aedf1f8 100644
--- a/db/docs/project_settings.yml
+++ b/db/docs/project_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores settings per project
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/a2a7ad291f64a5db74c1bc21fb556e6e8862d0f3
milestone: '10.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_statistics.yml b/db/docs/project_statistics.yml
index 323ba1d60d4..a3afb678877 100644
--- a/db/docs/project_statistics.yml
+++ b/db/docs/project_statistics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Records statistics about the usage of various product features
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/7754
milestone: '8.16'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_topics.yml b/db/docs/project_topics.yml
index cbe0d482586..3d8ec0c342a 100644
--- a/db/docs/project_topics.yml
+++ b/db/docs/project_topics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores topics per project relationship
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67574
milestone: '14.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_wiki_repositories.yml b/db/docs/project_wiki_repositories.yml
index 9f01fd2db3f..7da09b7fffe 100644
--- a/db/docs/project_wiki_repositories.yml
+++ b/db/docs/project_wiki_repositories.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about project wiki repositories.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/103399
milestone: '15.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/project_wiki_repository_states.yml b/db/docs/project_wiki_repository_states.yml
index b074eca3c89..c12e904b339 100644
--- a/db/docs/project_wiki_repository_states.yml
+++ b/db/docs/project_wiki_repository_states.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Separate table for project wikis containing Geo verification metadata.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/99168
milestone: '15.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/projects.yml b/db/docs/projects.yml
index 9a845a21751..0b7dbbe2127 100644
--- a/db/docs/projects.yml
+++ b/db/docs/projects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores project records
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/9ba1224867665844b117fa037e1465bb706b3685
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/projects_sync_events.yml b/db/docs/projects_sync_events.yml
index cdc27423778..7e03e5abe63 100644
--- a/db/docs/projects_sync_events.yml
+++ b/db/docs/projects_sync_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used as a queue of data that needs to be synchronized between the `ci` and `main` database
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75517
milestone: '14.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/prometheus_alert_events.yml b/db/docs/prometheus_alert_events.yml
index 9fed9d9d73b..91820cffa16 100644
--- a/db/docs/prometheus_alert_events.yml
+++ b/db/docs/prometheus_alert_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/7493
milestone: '11.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/prometheus_alerts.yml b/db/docs/prometheus_alerts.yml
index 3d3a2e45650..cfab6c1c094 100644
--- a/db/docs/prometheus_alerts.yml
+++ b/db/docs/prometheus_alerts.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists information about prometheus alerts from an environment
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6590
milestone: '11.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/prometheus_metrics.yml b/db/docs/prometheus_metrics.yml
index 315aaf7f9bd..69c74dd1629 100644
--- a/db/docs/prometheus_metrics.yml
+++ b/db/docs/prometheus_metrics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/3799
milestone: '9.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/protected_branch_merge_access_levels.yml b/db/docs/protected_branch_merge_access_levels.yml
index a07303975ad..3a348825dce 100644
--- a/db/docs/protected_branch_merge_access_levels.yml
+++ b/db/docs/protected_branch_merge_access_levels.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores merge access settings for protected branches
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/5081
milestone: '8.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/protected_branch_push_access_levels.yml b/db/docs/protected_branch_push_access_levels.yml
index fff94bceace..24865372ad0 100644
--- a/db/docs/protected_branch_push_access_levels.yml
+++ b/db/docs/protected_branch_push_access_levels.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores push access settings for protected branches
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/5081
milestone: '8.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/protected_branch_unprotect_access_levels.yml b/db/docs/protected_branch_unprotect_access_levels.yml
index 8727d77e8ec..aafc7282a5e 100644
--- a/db/docs/protected_branch_unprotect_access_levels.yml
+++ b/db/docs/protected_branch_unprotect_access_levels.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores access settings for protected branch unprotection
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/5103
milestone: '10.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/protected_branches.yml b/db/docs/protected_branches.yml
index a94c7d7681c..7c3132336e2 100644
--- a/db/docs/protected_branches.yml
+++ b/db/docs/protected_branches.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Keeps a list of protected branches by project
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/37224dc9c1ee80ba9030b616e2bc87bd96919e09
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/protected_environment_approval_rules.yml b/db/docs/protected_environment_approval_rules.yml
index fe3d9d7ad08..5bfecbf767d 100644
--- a/db/docs/protected_environment_approval_rules.yml
+++ b/db/docs/protected_environment_approval_rules.yml
@@ -4,6 +4,9 @@ classes:
- ProtectedEnvironments::ApprovalRule
feature_categories:
- continuous_delivery
-description: https://docs.gitlab.com/ee/ci/environments/deployment_approvals.html#multiple-approval-rules
+description: >-
+ A rule associated to a protected environment that allows a user, group, or role to approve a deployment.
+ See https://docs.gitlab.com/ee/ci/environments/deployment_approvals.html#multiple-approval-rules for more details.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/82800
milestone: '14.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/protected_environment_deploy_access_levels.yml b/db/docs/protected_environment_deploy_access_levels.yml
index c25044dc7e2..123d58f4c1a 100644
--- a/db/docs/protected_environment_deploy_access_levels.yml
+++ b/db/docs/protected_environment_deploy_access_levels.yml
@@ -4,6 +4,9 @@ classes:
- ProtectedEnvironments::DeployAccessLevel
feature_categories:
- continuous_delivery
-description: https://docs.gitlab.com/ee/ci/environments/protected_environments.html
+description: >-
+ A rule associated to a protected environment that allows a user, group, or role to deploy.
+ See https://docs.gitlab.com/ee/ci/environments/protected_environments.html for more details.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6672
milestone: '11.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/protected_environments.yml b/db/docs/protected_environments.yml
index 6a0d18ee4b5..b4fcbf130a1 100644
--- a/db/docs/protected_environments.yml
+++ b/db/docs/protected_environments.yml
@@ -4,6 +4,9 @@ classes:
- ProtectedEnvironment
feature_categories:
- continuous_delivery
-description: https://docs.gitlab.com/ee/ci/environments/protected_environments.html
+description: >-
+ Project or group-level record associated to one or more environments by name/pattern.
+ See https://docs.gitlab.com/ee/ci/environments/protected_environments.html for more details.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6672
milestone: '11.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/protected_tag_create_access_levels.yml b/db/docs/protected_tag_create_access_levels.yml
index 0c1ae808e67..2644868a76e 100644
--- a/db/docs/protected_tag_create_access_levels.yml
+++ b/db/docs/protected_tag_create_access_levels.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores create access settings for protected tags
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/07d7d8e65905a39164b63f55eccdcea8f10f5d14
milestone: '9.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/protected_tags.yml b/db/docs/protected_tags.yml
index 79b0b51de5f..4bd43f4a617 100644
--- a/db/docs/protected_tags.yml
+++ b/db/docs/protected_tags.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps a list of protected tags by project
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/10356
milestone: '9.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/push_event_payloads.yml b/db/docs/push_event_payloads.yml
index 68cd4ae4bb8..d0f1bdeb060 100644
--- a/db/docs/push_event_payloads.yml
+++ b/db/docs/push_event_payloads.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores log of push events
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/12463
milestone: '9.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/push_rules.yml b/db/docs/push_rules.yml
index 6a51fc79b33..85c609719b6 100644
--- a/db/docs/push_rules.yml
+++ b/db/docs/push_rules.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/1b98b5ab97ce3e9997df542059cbf3c6ce0bf0e1
milestone: '8.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/raw_usage_data.yml b/db/docs/raw_usage_data.yml
index c7e194d6417..5266b10e370 100644
--- a/db/docs/raw_usage_data.yml
+++ b/db/docs/raw_usage_data.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/38457
milestone: '13.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/redirect_routes.yml b/db/docs/redirect_routes.yml
index a9b93a9b8f9..7997aae2952 100644
--- a/db/docs/redirect_routes.yml
+++ b/db/docs/redirect_routes.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Stores routes for redirect after changing the path to group or project
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/11136
milestone: '9.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/related_epic_links.yml b/db/docs/related_epic_links.yml
index f498353c04b..43799a99101 100644
--- a/db/docs/related_epic_links.yml
+++ b/db/docs/related_epic_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information on the relationship between two epics
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/80499
milestone: '14.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/release_links.yml b/db/docs/release_links.yml
index 03fa9e2bbbb..bc194c949a3 100644
--- a/db/docs/release_links.yml
+++ b/db/docs/release_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/user/project/releases/#links
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/66755c9ed506af9f51022a678ed26e5d31ee87ac
milestone: '11.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/releases.yml b/db/docs/releases.yml
index da4fbfe830f..99ec9a5bed7 100644
--- a/db/docs/releases.yml
+++ b/db/docs/releases.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/user/project/releases
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/1c4d1c3bd69a6f9ec43cce4ab59de4ba47f73229
milestone: '8.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/remote_mirrors.yml b/db/docs/remote_mirrors.yml
index 5d38c9cc3ec..2ae633eb023 100644
--- a/db/docs/remote_mirrors.yml
+++ b/db/docs/remote_mirrors.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores push mirrors and their update statuses
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/249
milestone: '8.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/repository_languages.yml b/db/docs/repository_languages.yml
index ceee8670a68..506c607cf54 100644
--- a/db/docs/repository_languages.yml
+++ b/db/docs/repository_languages.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps relation between projects and repository languages
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/19480
milestone: '11.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/required_code_owners_sections.yml b/db/docs/required_code_owners_sections.yml
index 059078cce27..dbbc5e77af4 100644
--- a/db/docs/required_code_owners_sections.yml
+++ b/db/docs/required_code_owners_sections.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Keeps required code owners sections
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/43573
milestone: '13.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/requirements.yml b/db/docs/requirements.yml
index 29340196b32..9fad8b634cf 100644
--- a/db/docs/requirements.yml
+++ b/db/docs/requirements.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information relating to Requirements as implemented by the Requirements Management tool
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26097
milestone: '12.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/requirements_management_test_reports.yml b/db/docs/requirements_management_test_reports.yml
index b7fc5fa54f8..69f40f9592b 100644
--- a/db/docs/requirements_management_test_reports.yml
+++ b/db/docs/requirements_management_test_reports.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information related to Test Reports, which relate historical test outcomes to Requirements
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/31643
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/resource_iteration_events.yml b/db/docs/resource_iteration_events.yml
index 8e61c68a6f6..46a9e88fd9a 100644
--- a/db/docs/resource_iteration_events.yml
+++ b/db/docs/resource_iteration_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Records the addition and removal of issues to iterations
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37617
milestone: '13.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/resource_label_events.yml b/db/docs/resource_label_events.yml
index b770b642452..9de636ea874 100644
--- a/db/docs/resource_label_events.yml
+++ b/db/docs/resource_label_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Records the addition and removal of labels from resources that can be labelled; such as issues, MRs and epics
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6697
milestone: '11.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/resource_milestone_events.yml b/db/docs/resource_milestone_events.yml
index 8792bb269b6..02962bc0056 100644
--- a/db/docs/resource_milestone_events.yml
+++ b/db/docs/resource_milestone_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Records the addition and removal of issues to milestones
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23965
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/resource_state_events.yml b/db/docs/resource_state_events.yml
index 12887a5a6c4..2390cd26bac 100644
--- a/db/docs/resource_state_events.yml
+++ b/db/docs/resource_state_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Records the change of state of issues between opened and closed
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/28926
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/resource_weight_events.yml b/db/docs/resource_weight_events.yml
index 3f17b312fea..12cf9b27d19 100644
--- a/db/docs/resource_weight_events.yml
+++ b/db/docs/resource_weight_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Records the change of weight on issues along with timestamps
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/21515
milestone: '12.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/reviews.yml b/db/docs/reviews.yml
index 5a9f4c03bfb..81253d0c3c1 100644
--- a/db/docs/reviews.yml
+++ b/db/docs/reviews.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/8442
milestone: '11.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/routes.yml b/db/docs/routes.yml
index 9184309dabf..c54f976d91a 100644
--- a/db/docs/routes.yml
+++ b/db/docs/routes.yml
@@ -10,3 +10,4 @@ feature_categories:
description: Stores routes per namespaces and projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/7121
milestone: '9.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/saml_group_links.yml b/db/docs/saml_group_links.yml
index 109fd62a16b..5fd2372a22d 100644
--- a/db/docs/saml_group_links.yml
+++ b/db/docs/saml_group_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/45061
milestone: '13.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/saml_providers.yml b/db/docs/saml_providers.yml
index 42f2fa956b6..6fcc0e0e370 100644
--- a/db/docs/saml_providers.yml
+++ b/db/docs/saml_providers.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/4549
milestone: '10.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/saved_replies.yml b/db/docs/saved_replies.yml
index bc667bddf4b..c1d4a51ce0d 100644
--- a/db/docs/saved_replies.yml
+++ b/db/docs/saved_replies.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Text templates used to populate comments using a quick action
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/80807
milestone: '14.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/sbom_component_versions.yml b/db/docs/sbom_component_versions.yml
index 1bee0ddb3fb..25ef9e3fb9c 100644
--- a/db/docs/sbom_component_versions.yml
+++ b/db/docs/sbom_component_versions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores version information for software components produced by a Software Bill of Materials (SBoM)
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/90809
milestone: '15.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/sbom_components.yml b/db/docs/sbom_components.yml
index 0bb1a4d7b30..b735d7f29c2 100644
--- a/db/docs/sbom_components.yml
+++ b/db/docs/sbom_components.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about software components produced by a Software Bill of Materials (SBoM)
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/90809
milestone: '15.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/sbom_occurrences.yml b/db/docs/sbom_occurrences.yml
index b30bac79698..094199225e0 100644
--- a/db/docs/sbom_occurrences.yml
+++ b/db/docs/sbom_occurrences.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Tracks each occurrence of an SBoM component
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/90814
milestone: '15.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/sbom_sources.yml b/db/docs/sbom_sources.yml
index dd17b02a3dd..b9cc8611b45 100644
--- a/db/docs/sbom_sources.yml
+++ b/db/docs/sbom_sources.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about where an SBoM component originated from
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/90812
milestone: '15.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/sbom_vulnerable_component_versions.yml b/db/docs/sbom_vulnerable_component_versions.yml
index bb67c6e4f68..8747b6c6588 100644
--- a/db/docs/sbom_vulnerable_component_versions.yml
+++ b/db/docs/sbom_vulnerable_component_versions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about vulnerable SBoM components
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/95622
milestone: '15.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/schema_migrations.yml b/db/docs/schema_migrations.yml
index a8df9b8a767..f5b52bc4db2 100644
--- a/db/docs/schema_migrations.yml
+++ b/db/docs/schema_migrations.yml
@@ -9,3 +9,4 @@ description: >-
An internal table used by ActiveRecord to keep track of which migrations have been applied to the database.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/9ba1224867665844b117fa037e1465bb706b3685
milestone: '0.8'
+gitlab_schema: gitlab_internal
diff --git a/db/docs/scim_identities.yml b/db/docs/scim_identities.yml
index 1aa56dc2740..6ad69d9b4cc 100644
--- a/db/docs/scim_identities.yml
+++ b/db/docs/scim_identities.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26124
milestone: '12.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/scim_oauth_access_tokens.yml b/db/docs/scim_oauth_access_tokens.yml
index bc258eda41a..e26cd94f4cd 100644
--- a/db/docs/scim_oauth_access_tokens.yml
+++ b/db/docs/scim_oauth_access_tokens.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/e9b2253fe3538234d1c4d173c4549a955233d836
milestone: '11.10'
+gitlab_schema: gitlab_main
diff --git a/db/docs/security_findings.yml b/db/docs/security_findings.yml
index b4607d56dca..724881d4d17 100644
--- a/db/docs/security_findings.yml
+++ b/db/docs/security_findings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores a subset of the Finding data which is used to optimize the pipeline security tab
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40368
milestone: '13.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/security_orchestration_policy_configurations.yml b/db/docs/security_orchestration_policy_configurations.yml
index 0f91d180dc3..7d23d30de82 100644
--- a/db/docs/security_orchestration_policy_configurations.yml
+++ b/db/docs/security_orchestration_policy_configurations.yml
@@ -9,3 +9,4 @@ description: |
Policies are stored in the repository as a YAML file.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/53743
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/security_orchestration_policy_rule_schedules.yml b/db/docs/security_orchestration_policy_rule_schedules.yml
index 160e8657f7c..8d1067d8f58 100644
--- a/db/docs/security_orchestration_policy_rule_schedules.yml
+++ b/db/docs/security_orchestration_policy_rule_schedules.yml
@@ -8,3 +8,4 @@ description: |
Security policies scheduled to run based on cadence defined in the policy
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/59842
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/security_scans.yml b/db/docs/security_scans.yml
index fc6732bc80f..b89faf6584d 100644
--- a/db/docs/security_scans.yml
+++ b/db/docs/security_scans.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about the security scans that are a part of Ci::Build
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23669
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/security_training_providers.yml b/db/docs/security_training_providers.yml
index b8c6bc7e01f..69c42a39d1a 100644
--- a/db/docs/security_training_providers.yml
+++ b/db/docs/security_training_providers.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about the available security training providers
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/78195
milestone: '14.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/security_trainings.yml b/db/docs/security_trainings.yml
index 2e84f8a5f65..6c55b6912e8 100644
--- a/db/docs/security_trainings.yml
+++ b/db/docs/security_trainings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about the primary security training provider for a given project
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/78195
milestone: '14.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/self_managed_prometheus_alert_events.yml b/db/docs/self_managed_prometheus_alert_events.yml
index 83eb24475c9..08cdc639518 100644
--- a/db/docs/self_managed_prometheus_alert_events.yml
+++ b/db/docs/self_managed_prometheus_alert_events.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/18046
milestone: '12.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/sent_notifications.yml b/db/docs/sent_notifications.yml
index 9bc7158b067..4e5b93804e9 100644
--- a/db/docs/sent_notifications.yml
+++ b/db/docs/sent_notifications.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Information related to sent email notifications that supports reply-by-email functionality
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/1173
milestone: '8.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/sentry_issues.yml b/db/docs/sentry_issues.yml
index af96751fc7d..25ff1ff9b8f 100644
--- a/db/docs/sentry_issues.yml
+++ b/db/docs/sentry_issues.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists issue data for the Error Tracking's Sentry backend
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/20629
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/serverless_domain_cluster.yml b/db/docs/serverless_domain_cluster.yml
index 2692eb22096..23c77b2c043 100644
--- a/db/docs/serverless_domain_cluster.yml
+++ b/db/docs/serverless_domain_cluster.yml
@@ -4,6 +4,7 @@ classes:
- Serverless::DomainCluster
feature_categories:
- kubernetes_management
-description: (Deprecated) A custom domain for a GitLab managed Knative installation
+description: "(Deprecated) A custom domain for a GitLab managed Knative installation"
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19835
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/service_desk_settings.yml b/db/docs/service_desk_settings.yml
index 1e924ecd01b..90c304c480c 100644
--- a/db/docs/service_desk_settings.yml
+++ b/db/docs/service_desk_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Settings related to Service Desk such as templates to use for email notifications
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19515
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/shards.yml b/db/docs/shards.yml
index ffd4be0b12d..bf6c7dd3959 100644
--- a/db/docs/shards.yml
+++ b/db/docs/shards.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/f760c1cd17881c8aef3a33a3b43db54673db8111
milestone: '10.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/slack_api_scopes.yml b/db/docs/slack_api_scopes.yml
new file mode 100644
index 00000000000..467880dccf5
--- /dev/null
+++ b/db/docs/slack_api_scopes.yml
@@ -0,0 +1,10 @@
+---
+table_name: slack_api_scopes
+classes:
+- Integrations::KnownSlackApiScope
+feature_categories:
+- integrations
+description: Data related to the Slack application integration.
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/105439
+milestone: '15.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/slack_integrations.yml b/db/docs/slack_integrations.yml
index 031bd77ada6..2c997cd1087 100644
--- a/db/docs/slack_integrations.yml
+++ b/db/docs/slack_integrations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Data related to the Slack application integration.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/f50ef96b87d8c785662e82843c22a2ef6093132e
milestone: '9.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/slack_integrations_scopes.yml b/db/docs/slack_integrations_scopes.yml
new file mode 100644
index 00000000000..b09c1b4a51e
--- /dev/null
+++ b/db/docs/slack_integrations_scopes.yml
@@ -0,0 +1,10 @@
+---
+table_name: slack_integrations_scopes
+classes:
+- Integrations::SlackIntegrationsKnownApiScope
+feature_categories:
+- integrations
+description: Data related to the Slack application integration.
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/105439
+milestone: '15.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/smartcard_identities.yml b/db/docs/smartcard_identities.yml
index ad798c0728d..76b8d1a1368 100644
--- a/db/docs/smartcard_identities.yml
+++ b/db/docs/smartcard_identities.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/b6316689fdc2d142af85b17d511d39e50712b420
milestone: '11.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/snippet_repositories.yml b/db/docs/snippet_repositories.yml
index 52a6b96c42c..f33c3828c46 100644
--- a/db/docs/snippet_repositories.yml
+++ b/db/docs/snippet_repositories.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores repository information used to version control snippets.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/23796
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/snippet_repository_storage_moves.yml b/db/docs/snippet_repository_storage_moves.yml
index e8fea9995c7..8d6b7cfc668 100644
--- a/db/docs/snippet_repository_storage_moves.yml
+++ b/db/docs/snippet_repository_storage_moves.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/45990
milestone: '13.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/snippet_statistics.yml b/db/docs/snippet_statistics.yml
index 390d096d1d3..74a0d29bedc 100644
--- a/db/docs/snippet_statistics.yml
+++ b/db/docs/snippet_statistics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores the repository size, commit count, and file count regarding the snippet repository.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/35026
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/snippet_user_mentions.yml b/db/docs/snippet_user_mentions.yml
index aee265b202a..8f141bd0263 100644
--- a/db/docs/snippet_user_mentions.yml
+++ b/db/docs/snippet_user_mentions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: For storing mentioned users, groups, projects referenced in a snippet description.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19009
milestone: '12.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/snippets.yml b/db/docs/snippets.yml
index 1d8f7ca6b15..4d92b59c924 100644
--- a/db/docs/snippets.yml
+++ b/db/docs/snippets.yml
@@ -9,3 +9,4 @@ feature_categories:
description: GitLab snippets allow you to store and share bits of code and text with other users.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/9265de3d25715aeafd38a4ef41596dca058dc18c
milestone: "1.0.1"
+gitlab_schema: gitlab_main
diff --git a/db/docs/software_license_policies.yml b/db/docs/software_license_policies.yml
index 615ae644985..b533ecfee01 100644
--- a/db/docs/software_license_policies.yml
+++ b/db/docs/software_license_policies.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Allows user to approve or deny the use certain software licenses in their project.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6246
milestone: '11.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/software_licenses.yml b/db/docs/software_licenses.yml
index 67ebd697fa8..c3cf32cc288 100644
--- a/db/docs/software_licenses.yml
+++ b/db/docs/software_licenses.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Normalized software licenses to use in conjunction with License Compliance features (like software license policies)
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6246
milestone: '11.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/spam_logs.yml b/db/docs/spam_logs.yml
index 6e16b3600c8..299d4cf9b1b 100644
--- a/db/docs/spam_logs.yml
+++ b/db/docs/spam_logs.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Logs users flagged by the Akismet anti-spam integration.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/2266
milestone: '8.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/sprints.yml b/db/docs/sprints.yml
index 7193c225dae..cee20a3bcb5 100644
--- a/db/docs/sprints.yml
+++ b/db/docs/sprints.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Also called iterations, timeboxes to which issues can be assigned. Used to plan and track work.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/30125
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/ssh_signatures.yml b/db/docs/ssh_signatures.yml
index 7907f335585..583485d9bac 100644
--- a/db/docs/ssh_signatures.yml
+++ b/db/docs/ssh_signatures.yml
@@ -9,3 +9,4 @@ description: >
is part of the commit body and is stored in Gitaly.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/87962
milestone: '15.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/status_check_responses.yml b/db/docs/status_check_responses.yml
index 0959a44106b..bcb063400e1 100644
--- a/db/docs/status_check_responses.yml
+++ b/db/docs/status_check_responses.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/61135
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/status_page_published_incidents.yml b/db/docs/status_page_published_incidents.yml
index 4a21ed156f2..92489209d1b 100644
--- a/db/docs/status_page_published_incidents.yml
+++ b/db/docs/status_page_published_incidents.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Corresponds to an issue which has been published to the Status Page
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/29994
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/status_page_settings.yml b/db/docs/status_page_settings.yml
index a5cefe70300..0e948b6da5c 100644
--- a/db/docs/status_page_settings.yml
+++ b/db/docs/status_page_settings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Project settings related to Status Page
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/25863
milestone: '12.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/subscriptions.yml b/db/docs/subscriptions.yml
index 0f20343bb5e..d129bc40401 100644
--- a/db/docs/subscriptions.yml
+++ b/db/docs/subscriptions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Subscriptions between users and subscribable objects; such as issues, epics and MRs.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/410d25c8ca8afabb25e5f89b36e3cfd09ffe6f87
milestone: '7.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/suggestions.yml b/db/docs/suggestions.yml
index 837fb58af04..7667a693b32 100644
--- a/db/docs/suggestions.yml
+++ b/db/docs/suggestions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Storing code suggestions within notes
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/8656
milestone: '11.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/system_note_metadata.yml b/db/docs/system_note_metadata.yml
index 40b193a4b91..371f90e2bc6 100644
--- a/db/docs/system_note_metadata.yml
+++ b/db/docs/system_note_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to store notes metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/1c3c7fb25d972fc19d5b4bb371cb21094d81e478
milestone: '9.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/taggings.yml b/db/docs/taggings.yml
index 71078ab9c19..a981907486f 100644
--- a/db/docs/taggings.yml
+++ b/db/docs/taggings.yml
@@ -7,4 +7,5 @@ feature_categories:
- runner
description: Taggings applied to arbitrary models based on entries in the 'tags' table
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/b946da44695c9c8fe8867bb87bcdf801c52177d3
-milestone: "1.2"
+milestone: '1.2'
+gitlab_schema: gitlab_ci
diff --git a/db/docs/tags.yml b/db/docs/tags.yml
index 9ae2a4361ff..28337af9291 100644
--- a/db/docs/tags.yml
+++ b/db/docs/tags.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Tags applied to arbitrary models through the 'taggings' table
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/b946da44695c9c8fe8867bb87bcdf801c52177d3
milestone: "<6.0"
+gitlab_schema: gitlab_ci
diff --git a/db/docs/term_agreements.yml b/db/docs/term_agreements.yml
index dd0bd829b19..502adad8ac0 100644
--- a/db/docs/term_agreements.yml
+++ b/db/docs/term_agreements.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/82eeb72c8c03727540b902d40e7e657d0a5ecb4c
milestone: '10.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/terraform_state_versions.yml b/db/docs/terraform_state_versions.yml
index 1d98b049f45..ba5578ebe9f 100644
--- a/db/docs/terraform_state_versions.yml
+++ b/db/docs/terraform_state_versions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Represents a Terraform state file at a point in time, with a corresponding file stored in object storage
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/35211
milestone: '13.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/terraform_states.yml b/db/docs/terraform_states.yml
index dc2bc799582..eca77b164a8 100644
--- a/db/docs/terraform_states.yml
+++ b/db/docs/terraform_states.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Represents a Terraform state backend
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26619
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/timelog_categories.yml b/db/docs/timelog_categories.yml
index 7be6c588f0e..8448e3dd59f 100644
--- a/db/docs/timelog_categories.yml
+++ b/db/docs/timelog_categories.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Categories that can be associated to a timelog to categorize them
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/87529
milestone: '15.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/timelogs.yml b/db/docs/timelogs.yml
index 0aebf8ec5db..3b2b5982897 100644
--- a/db/docs/timelogs.yml
+++ b/db/docs/timelogs.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Time spend data recorded by users on issues
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/870
milestone: '8.14'
+gitlab_schema: gitlab_main
diff --git a/db/docs/todos.yml b/db/docs/todos.yml
index 1a146e29d2f..d7328af05b9 100644
--- a/db/docs/todos.yml
+++ b/db/docs/todos.yml
@@ -7,3 +7,4 @@ feature_categories:
description: An action required or notification of action taken for a user on a target object, generated by various actions within the GitLab application
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/3d52e139b13ad077286f2f9f46b7e98f43ad9564
milestone: '8.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/token_with_ivs.yml b/db/docs/token_with_ivs.yml
index 1df428afdaa..2acdff0dad1 100644
--- a/db/docs/token_with_ivs.yml
+++ b/db/docs/token_with_ivs.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/37b80b4048190c2e1a35ec399e4aeb35d511090e
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/topics.yml b/db/docs/topics.yml
index 25a448e3361..4411566e7ec 100644
--- a/db/docs/topics.yml
+++ b/db/docs/topics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores topics that can be assigned to projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67574
milestone: '14.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/trending_projects.yml b/db/docs/trending_projects.yml
index 1ee72f2d244..58a8421cbdf 100644
--- a/db/docs/trending_projects.yml
+++ b/db/docs/trending_projects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores the list of trending projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/6749
milestone: '8.13'
+gitlab_schema: gitlab_main
diff --git a/db/docs/u2f_registrations.yml b/db/docs/u2f_registrations.yml
index c6e1b65eea4..27b0ca3f2f5 100644
--- a/db/docs/u2f_registrations.yml
+++ b/db/docs/u2f_registrations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/791cc9138be6ea1783e3c3853370cf0290f4d41e
milestone: '8.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/upcoming_reconciliations.yml b/db/docs/upcoming_reconciliations.yml
index 722fa2aee70..9e89bb1a57f 100644
--- a/db/docs/upcoming_reconciliations.yml
+++ b/db/docs/upcoming_reconciliations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores the data needed to notify a user of an upcoming reconciliation
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/63054
milestone: '14.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/upload_states.yml b/db/docs/upload_states.yml
index 29df41c07dd..e6e86cb4bb1 100644
--- a/db/docs/upload_states.yml
+++ b/db/docs/upload_states.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Separate table for uploads containing Geo verification metadata.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65921
milestone: '14.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/uploads.yml b/db/docs/uploads.yml
index 53cfd49839a..b22f8b1d1ad 100644
--- a/db/docs/uploads.yml
+++ b/db/docs/uploads.yml
@@ -13,3 +13,4 @@ feature_categories:
description: For tracking blob metadata. Single table inheritance is used to relate this table to many other tables.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/4c622b71fd284058deee483bf0009f8179b792bc
milestone: '9.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_agent_details.yml b/db/docs/user_agent_details.yml
index 53292bf93f1..08cd811b60b 100644
--- a/db/docs/user_agent_details.yml
+++ b/db/docs/user_agent_details.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores user agent details for submission to Akismet spam detection.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/5538
milestone: '8.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_callouts.yml b/db/docs/user_callouts.yml
index 63ee837eb2c..b77f2e538e4 100644
--- a/db/docs/user_callouts.yml
+++ b/db/docs/user_callouts.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/16735
milestone: '10.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_canonical_emails.yml b/db/docs/user_canonical_emails.yml
index 4d9c3ba4797..aeb1c3d830f 100644
--- a/db/docs/user_canonical_emails.yml
+++ b/db/docs/user_canonical_emails.yml
@@ -7,3 +7,4 @@ feature_categories:
description: stores the canonical version of user's primary email address
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27722
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_credit_card_validations.yml b/db/docs/user_credit_card_validations.yml
index 1ba8bf40460..4c8a851ade7 100644
--- a/db/docs/user_credit_card_validations.yml
+++ b/db/docs/user_credit_card_validations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores whether the user has completed a first time validation to run CI pipelines
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/60626
milestone: '13.12'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_custom_attributes.yml b/db/docs/user_custom_attributes.yml
index 956450acb68..992f790cf24 100644
--- a/db/docs/user_custom_attributes.yml
+++ b/db/docs/user_custom_attributes.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Storing custom attributes per user
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/13038
milestone: '10.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_details.yml b/db/docs/user_details.yml
index 636074214b0..7001c22289d 100644
--- a/db/docs/user_details.yml
+++ b/db/docs/user_details.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores user details
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/25483
milestone: '12.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_follow_users.yml b/db/docs/user_follow_users.yml
index 56243b97546..12d64b01a1d 100644
--- a/db/docs/user_follow_users.yml
+++ b/db/docs/user_follow_users.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores which users follow each other
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/45451
milestone: '13.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_group_callouts.yml b/db/docs/user_group_callouts.yml
index 910752339ed..41028319708 100644
--- a/db/docs/user_group_callouts.yml
+++ b/db/docs/user_group_callouts.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68785
milestone: '14.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_highest_roles.yml b/db/docs/user_highest_roles.yml
index 23754f7c8d3..8713aff5f3f 100644
--- a/db/docs/user_highest_roles.yml
+++ b/db/docs/user_highest_roles.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26987
milestone: '12.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_interacted_projects.yml b/db/docs/user_interacted_projects.yml
index e62e863b0a9..206cb76c496 100644
--- a/db/docs/user_interacted_projects.yml
+++ b/db/docs/user_interacted_projects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Tracks which projects a given user has actively interacted with
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/17327
milestone: '10.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_namespace_callouts.yml b/db/docs/user_namespace_callouts.yml
index 5038ecce3bc..3f057e21aee 100644
--- a/db/docs/user_namespace_callouts.yml
+++ b/db/docs/user_namespace_callouts.yml
@@ -1,4 +1,3 @@
-
---
table_name: user_namespace_callouts
classes:
@@ -8,3 +7,4 @@ feature_categories:
description: Contains records of which users have dismissed a callout, grouped by namespace.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/91092
milestone: '15.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_permission_export_uploads.yml b/db/docs/user_permission_export_uploads.yml
index 93f7e360ec2..217ede5bad2 100644
--- a/db/docs/user_permission_export_uploads.yml
+++ b/db/docs/user_permission_export_uploads.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47846
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_phone_number_validations.yml b/db/docs/user_phone_number_validations.yml
index 9feacd76c5a..5d0100cdb95 100644
--- a/db/docs/user_phone_number_validations.yml
+++ b/db/docs/user_phone_number_validations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores whether the user has verified their phone number
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/97762
milestone: '15.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_preferences.yml b/db/docs/user_preferences.yml
index b9afb679503..7bc1ab27ccb 100644
--- a/db/docs/user_preferences.yml
+++ b/db/docs/user_preferences.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores users' preferences
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/7816
milestone: '11.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_project_callouts.yml b/db/docs/user_project_callouts.yml
index 308c3048aa7..40ccfa243ac 100644
--- a/db/docs/user_project_callouts.yml
+++ b/db/docs/user_project_callouts.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Adds the ability to track a user callout being dismissed by project
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/94144
milestone: '15.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_statuses.yml b/db/docs/user_statuses.yml
index 94aaff70d85..e5f4d4ee72f 100644
--- a/db/docs/user_statuses.yml
+++ b/db/docs/user_statuses.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores users' statuses
introduced_by_url: https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/20614
milestone: '11.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/user_synced_attributes_metadata.yml b/db/docs/user_synced_attributes_metadata.yml
index 73f3e6166ed..efc0ad1ec95 100644
--- a/db/docs/user_synced_attributes_metadata.yml
+++ b/db/docs/user_synced_attributes_metadata.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/4df54f260751a832ebf0b8c18524020d6604994b
milestone: '10.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/users.yml b/db/docs/users.yml
index 7c6a7fbdcb8..324d81850a1 100644
--- a/db/docs/users.yml
+++ b/db/docs/users.yml
@@ -9,3 +9,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/9ba1224867665844b117fa037e1465bb706b3685
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/users_ops_dashboard_projects.yml b/db/docs/users_ops_dashboard_projects.yml
index d8854d1db45..d09d3196e19 100644
--- a/db/docs/users_ops_dashboard_projects.yml
+++ b/db/docs/users_ops_dashboard_projects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: https://docs.gitlab.com/ee/user/operations_dashboard/
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/7341
milestone: '11.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/users_security_dashboard_projects.yml b/db/docs/users_security_dashboard_projects.yml
index 4c379e5739d..9d5d8cfbe2b 100644
--- a/db/docs/users_security_dashboard_projects.yml
+++ b/db/docs/users_security_dashboard_projects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores projects which users select to appear in their Security Dashboard
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/18708
milestone: '12.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/users_star_projects.yml b/db/docs/users_star_projects.yml
index 0199a0e3433..df03f721d57 100644
--- a/db/docs/users_star_projects.yml
+++ b/db/docs/users_star_projects.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores conection between users and project through staring action
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/714f7201d3362793d11f33793e5ef6dc83bdd2f0
milestone: '7.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/users_statistics.yml b/db/docs/users_statistics.yml
index f2c44cc456e..9110ee6063d 100644
--- a/db/docs/users_statistics.yml
+++ b/db/docs/users_statistics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: User statistics
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26261
milestone: '12.9'
+gitlab_schema: gitlab_main
diff --git a/db/docs/verification_codes.yml b/db/docs/verification_codes.yml
index 24c4d0991f9..9d0e3f53830 100644
--- a/db/docs/verification_codes.yml
+++ b/db/docs/verification_codes.yml
@@ -6,3 +6,4 @@ feature_categories:
description: Used by the JiHu edition for user verification
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/71139
milestone: '14.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/views/postgres_autovacuum_activity.yml b/db/docs/views/postgres_autovacuum_activity.yml
new file mode 100644
index 00000000000..68878ceaaef
--- /dev/null
+++ b/db/docs/views/postgres_autovacuum_activity.yml
@@ -0,0 +1,10 @@
+---
+view_name: postgres_autovacuum_activity
+description: TODO
+classes:
+- Gitlab::Database::PostgresAutovacuumActivity
+feature_categories:
+- database
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/85103
+milestone: '15.0'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/views/postgres_constraints.yml b/db/docs/views/postgres_constraints.yml
new file mode 100644
index 00000000000..133b4430ef2
--- /dev/null
+++ b/db/docs/views/postgres_constraints.yml
@@ -0,0 +1,10 @@
+---
+view_name: postgres_constraints
+description: TODO
+classes:
+- Gitlab::Database::PostgresConstraint
+feature_categories:
+- database
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/96815
+milestone: '15.4'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/views/postgres_foreign_keys.yml b/db/docs/views/postgres_foreign_keys.yml
new file mode 100644
index 00000000000..0124d854681
--- /dev/null
+++ b/db/docs/views/postgres_foreign_keys.yml
@@ -0,0 +1,10 @@
+---
+view_name: postgres_foreign_keys
+description: TODO
+classes:
+- Gitlab::Database::PostgresForeignKey
+feature_categories:
+- database
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66473
+milestone: '14.2'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/views/postgres_index_bloat_estimates.yml b/db/docs/views/postgres_index_bloat_estimates.yml
new file mode 100644
index 00000000000..ac3fc462b58
--- /dev/null
+++ b/db/docs/views/postgres_index_bloat_estimates.yml
@@ -0,0 +1,10 @@
+---
+view_name: postgres_index_bloat_estimates
+description: TODO
+classes:
+- Gitlab::Database::PostgresIndexBloatEstimate
+feature_categories:
+- database
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/48698
+milestone: '13.7'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/views/postgres_indexes.yml b/db/docs/views/postgres_indexes.yml
new file mode 100644
index 00000000000..b6c7a399216
--- /dev/null
+++ b/db/docs/views/postgres_indexes.yml
@@ -0,0 +1,10 @@
+---
+view_name: postgres_indexes
+description: TODO
+classes:
+- Gitlab::Database::PostgresIndex
+feature_categories:
+- database
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/42967
+milestone: '13.5'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/views/postgres_partitioned_tables.yml b/db/docs/views/postgres_partitioned_tables.yml
new file mode 100644
index 00000000000..ddec7550e80
--- /dev/null
+++ b/db/docs/views/postgres_partitioned_tables.yml
@@ -0,0 +1,10 @@
+---
+view_name: postgres_partitioned_tables
+description: TODO
+classes:
+- Gitlab::Database::PostgresPartitionedTables
+feature_categories:
+- database
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/45591
+milestone: '13.6'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/views/postgres_partitions.yml b/db/docs/views/postgres_partitions.yml
new file mode 100644
index 00000000000..4cb72f71956
--- /dev/null
+++ b/db/docs/views/postgres_partitions.yml
@@ -0,0 +1,10 @@
+---
+view_name: postgres_partitions
+description: TODO
+classes:
+- Gitlab::Database::PostgresPartition
+feature_categories:
+- database
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/45592
+milestone: '13.6'
+gitlab_schema: gitlab_shared
diff --git a/db/docs/vulnerabilities.yml b/db/docs/vulnerabilities.yml
index 72f080a075f..11e7885f7cc 100644
--- a/db/docs/vulnerabilities.yml
+++ b/db/docs/vulnerabilities.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about vulnerabilites present in the project's source code
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/16181
milestone: '12.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_advisories.yml b/db/docs/vulnerability_advisories.yml
index 2c88be94a11..18029e784b5 100644
--- a/db/docs/vulnerability_advisories.yml
+++ b/db/docs/vulnerability_advisories.yml
@@ -9,3 +9,4 @@ feature_categories:
description: Stores vulnerability advisories
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/95622
milestone: '15.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_exports.yml b/db/docs/vulnerability_exports.yml
index 4254a4426d6..823ec9ac252 100644
--- a/db/docs/vulnerability_exports.yml
+++ b/db/docs/vulnerability_exports.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores metadata about exported Vulnerabilities CSV files
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27196
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_external_issue_links.yml b/db/docs/vulnerability_external_issue_links.yml
index 2adf90e6838..4c2dcd8d8d6 100644
--- a/db/docs/vulnerability_external_issue_links.yml
+++ b/db/docs/vulnerability_external_issue_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about connections between external issue trackers and vulnerabilities
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/48465
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_feedback.yml b/db/docs/vulnerability_feedback.yml
index bcd8c3935e6..473ae398531 100644
--- a/db/docs/vulnerability_feedback.yml
+++ b/db/docs/vulnerability_feedback.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about the confirm, dismiss, or create issue to investigate actions taken on vulnerabilities
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/5452
milestone: '10.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_finding_evidences.yml b/db/docs/vulnerability_finding_evidences.yml
index 0c7fc7c7fdd..35ecfd57fe3 100644
--- a/db/docs/vulnerability_finding_evidences.yml
+++ b/db/docs/vulnerability_finding_evidences.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores evidence used to identify presence of a vulnerability
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/56790
milestone: '13.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_finding_links.yml b/db/docs/vulnerability_finding_links.yml
index c259778cb09..267355dd873 100644
--- a/db/docs/vulnerability_finding_links.yml
+++ b/db/docs/vulnerability_finding_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores URLs relevant to the vulnerability findings
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/46555
milestone: '13.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_finding_signatures.yml b/db/docs/vulnerability_finding_signatures.yml
index a9faf1e8a1b..9a1e59697cf 100644
--- a/db/docs/vulnerability_finding_signatures.yml
+++ b/db/docs/vulnerability_finding_signatures.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores signatures of vulnerability locations which are used to improve tracking
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57840
milestone: '13.11'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_findings_remediations.yml b/db/docs/vulnerability_findings_remediations.yml
index f59b2360f42..ffadb160b76 100644
--- a/db/docs/vulnerability_findings_remediations.yml
+++ b/db/docs/vulnerability_findings_remediations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table between Remediations and Findings
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47166
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_flags.yml b/db/docs/vulnerability_flags.yml
index 5d26faf66e0..fabc8a48200 100644
--- a/db/docs/vulnerability_flags.yml
+++ b/db/docs/vulnerability_flags.yml
@@ -4,6 +4,7 @@ classes:
- Vulnerabilities::Flag
feature_categories:
- vulnerability_management
-description: Stores additional information for vulnerabilities, for example if a vulnerability is identified as a false positive
+description: Stores additional information for vulnerabilities, for example if a vulnerability is identified as a false positive
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65573
milestone: '14.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_historical_statistics.yml b/db/docs/vulnerability_historical_statistics.yml
index 22622f2494d..5efa7a51e0f 100644
--- a/db/docs/vulnerability_historical_statistics.yml
+++ b/db/docs/vulnerability_historical_statistics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores aggregate vulnerability statistics which are used in the Security Dashboard
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/36955
milestone: '13.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_identifiers.yml b/db/docs/vulnerability_identifiers.yml
index 9be03505671..fa8f63507e1 100644
--- a/db/docs/vulnerability_identifiers.yml
+++ b/db/docs/vulnerability_identifiers.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores identifiers (like CVE or CWE) for vulnerabilities that have been found
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6896
milestone: '11.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_issue_links.yml b/db/docs/vulnerability_issue_links.yml
index 8503af34831..4bbc587707e 100644
--- a/db/docs/vulnerability_issue_links.yml
+++ b/db/docs/vulnerability_issue_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table between Vulnerabilities and Issues
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19852
milestone: '12.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_merge_request_links.yml b/db/docs/vulnerability_merge_request_links.yml
index 7c9d958303f..8cc71b2a76a 100644
--- a/db/docs/vulnerability_merge_request_links.yml
+++ b/db/docs/vulnerability_merge_request_links.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table between Vulnerabilities and Merge Requests
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/92096
milestone: '15.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_occurrence_identifiers.yml b/db/docs/vulnerability_occurrence_identifiers.yml
index 77b985e3e02..cd2236631aa 100644
--- a/db/docs/vulnerability_occurrence_identifiers.yml
+++ b/db/docs/vulnerability_occurrence_identifiers.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table between Findings and Identifiers
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6896
milestone: '11.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_occurrence_pipelines.yml b/db/docs/vulnerability_occurrence_pipelines.yml
index 5c798e7a2ac..542d4026824 100644
--- a/db/docs/vulnerability_occurrence_pipelines.yml
+++ b/db/docs/vulnerability_occurrence_pipelines.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Join table between Findings and Pipelines
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/7578
milestone: '11.5'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_occurrences.yml b/db/docs/vulnerability_occurrences.yml
index 919a0ae19e7..90795b94c45 100644
--- a/db/docs/vulnerability_occurrences.yml
+++ b/db/docs/vulnerability_occurrences.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about findings for a given vulnerability
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6896
milestone: '11.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_reads.yml b/db/docs/vulnerability_reads.yml
index 29727da2e69..a7f589bf74e 100644
--- a/db/docs/vulnerability_reads.yml
+++ b/db/docs/vulnerability_reads.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Denormalized version of the vulnerabilites table used for faster reads
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/74733
milestone: '14.6'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_remediations.yml b/db/docs/vulnerability_remediations.yml
index 3f4e93ba0d8..d522a2147c0 100644
--- a/db/docs/vulnerability_remediations.yml
+++ b/db/docs/vulnerability_remediations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores remediation information, such as diffs, for a given vulnerability
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/47166
milestone: '13.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_scanners.yml b/db/docs/vulnerability_scanners.yml
index 2ea7a3763d6..90e8808e929 100644
--- a/db/docs/vulnerability_scanners.yml
+++ b/db/docs/vulnerability_scanners.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores information about the vulnerability scanners used by projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/6896
milestone: '11.4'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_state_transitions.yml b/db/docs/vulnerability_state_transitions.yml
index 908b4120b47..0f168f7a0ee 100644
--- a/db/docs/vulnerability_state_transitions.yml
+++ b/db/docs/vulnerability_state_transitions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores state transitions of a Vulnerability
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/87957
milestone: '15.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_statistics.yml b/db/docs/vulnerability_statistics.yml
index c94145e24f1..fbe1f07fbcc 100644
--- a/db/docs/vulnerability_statistics.yml
+++ b/db/docs/vulnerability_statistics.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores pre-calculated vulnerability statistics for projects
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/34289
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/vulnerability_user_mentions.yml b/db/docs/vulnerability_user_mentions.yml
index 4e4a07e97ac..9a95c834726 100644
--- a/db/docs/vulnerability_user_mentions.yml
+++ b/db/docs/vulnerability_user_mentions.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores notes for a given vulnerability
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/27515
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/web_hook_logs.yml b/db/docs/web_hook_logs.yml
index e7ed77112bb..d342c9a9ed0 100644
--- a/db/docs/web_hook_logs.yml
+++ b/db/docs/web_hook_logs.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Webhooks logs data.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/330789c23c777d8ca646eba7c25f39cb7342cdee
milestone: '9.3'
+gitlab_schema: gitlab_main
diff --git a/db/docs/web_hooks.yml b/db/docs/web_hooks.yml
index 3c43dd837b5..6300a2f7c32 100644
--- a/db/docs/web_hooks.yml
+++ b/db/docs/web_hooks.yml
@@ -11,3 +11,4 @@ feature_categories:
description: Webhooks data with the custom HTTP callbacks that a user defines.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/edab46e9fa5f568b1423c0021e81d30453d7dc1e
milestone: "<6.0"
+gitlab_schema: gitlab_main
diff --git a/db/docs/webauthn_registrations.yml b/db/docs/webauthn_registrations.yml
index 13c4c28e24b..fc983ea60ca 100644
--- a/db/docs/webauthn_registrations.yml
+++ b/db/docs/webauthn_registrations.yml
@@ -7,3 +7,4 @@ feature_categories:
description: TODO
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/35797
milestone: '13.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/wiki_page_meta.yml b/db/docs/wiki_page_meta.yml
index bed636eed08..2af6c3dc587 100644
--- a/db/docs/wiki_page_meta.yml
+++ b/db/docs/wiki_page_meta.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Used to record the metadata for wiki pages when we create events.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26529
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/wiki_page_slugs.yml b/db/docs/wiki_page_slugs.yml
index a6997322f73..89c9da260d8 100644
--- a/db/docs/wiki_page_slugs.yml
+++ b/db/docs/wiki_page_slugs.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores wiki page slug metadata for when we create events.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26529
milestone: '13.0'
+gitlab_schema: gitlab_main
diff --git a/db/docs/work_item_hierarchy_restrictions.yml b/db/docs/work_item_hierarchy_restrictions.yml
new file mode 100644
index 00000000000..8c8b85a9df9
--- /dev/null
+++ b/db/docs/work_item_hierarchy_restrictions.yml
@@ -0,0 +1,10 @@
+---
+table_name: work_item_hierarchy_restrictions
+classes:
+- WorkItems::HierarchyRestriction
+feature_categories:
+- team_planning
+description: Restrictions applied to parent/child relationships. Currently one of a predefined set but in future will support custom types.
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/103796
+milestone: '15.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/work_item_parent_links.yml b/db/docs/work_item_parent_links.yml
index f4b5cd20abb..3966154a17e 100644
--- a/db/docs/work_item_parent_links.yml
+++ b/db/docs/work_item_parent_links.yml
@@ -8,3 +8,4 @@ feature_categories:
description: Persists link between work item and its parent.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/87283
milestone: '15.1'
+gitlab_schema: gitlab_main
diff --git a/db/docs/work_item_progresses.yml b/db/docs/work_item_progresses.yml
new file mode 100644
index 00000000000..881e5d879e3
--- /dev/null
+++ b/db/docs/work_item_progresses.yml
@@ -0,0 +1,10 @@
+---
+table_name: work_item_progresses
+classes:
+- WorkItems::Progress
+feature_categories:
+- team_planning
+description: The progress of a Work Item.
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/104591/
+milestone: '15.7'
+gitlab_schema: gitlab_main
diff --git a/db/docs/work_item_types.yml b/db/docs/work_item_types.yml
index afb694bca79..21ec69da152 100644
--- a/db/docs/work_item_types.yml
+++ b/db/docs/work_item_types.yml
@@ -7,3 +7,4 @@ feature_categories:
description: The work item type related to an issue. Currently one of a predefined set but in future will support custom types.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/55705
milestone: '14.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/x509_certificates.yml b/db/docs/x509_certificates.yml
index bcf976155f4..364bd3615bb 100644
--- a/db/docs/x509_certificates.yml
+++ b/db/docs/x509_certificates.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores data about X.509 certificate
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17773
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/x509_commit_signatures.yml b/db/docs/x509_commit_signatures.yml
index 170294c8d56..2d95eaa609e 100644
--- a/db/docs/x509_commit_signatures.yml
+++ b/db/docs/x509_commit_signatures.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores X.509 verification status of the commit
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17773
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/x509_issuers.yml b/db/docs/x509_issuers.yml
index 30bbe8e4b12..04253f903be 100644
--- a/db/docs/x509_issuers.yml
+++ b/db/docs/x509_issuers.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Stores data about issuer of X.509 certificate
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17773
milestone: '12.8'
+gitlab_schema: gitlab_main
diff --git a/db/docs/zentao_tracker_data.yml b/db/docs/zentao_tracker_data.yml
index c99aebd70e2..c02e08bb5e8 100644
--- a/db/docs/zentao_tracker_data.yml
+++ b/db/docs/zentao_tracker_data.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Data related to the ZenTao integration.
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67938
milestone: '14.2'
+gitlab_schema: gitlab_main
diff --git a/db/docs/zoom_meetings.yml b/db/docs/zoom_meetings.yml
index 620df953ad5..95bb98bf896 100644
--- a/db/docs/zoom_meetings.yml
+++ b/db/docs/zoom_meetings.yml
@@ -7,3 +7,4 @@ feature_categories:
description: Persists Zoom meetings, its associations and its metadata
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17890
milestone: '12.5'
+gitlab_schema: gitlab_main
diff --git a/db/fixtures/development/14_pipelines.rb b/db/fixtures/development/14_pipelines.rb
index 8f63ce3dbfe..9120d95ca5d 100644
--- a/db/fixtures/development/14_pipelines.rb
+++ b/db/fixtures/development/14_pipelines.rb
@@ -1,51 +1,69 @@
require './spec/support/sidekiq_middleware'
class Gitlab::Seeder::Pipelines
- STAGES = %w[build test deploy notify]
- BUILDS = [
- # build stage
- { name: 'build:linux', stage: 'build', status: :success,
- queued_at: 10.hour.ago, started_at: 9.hour.ago, finished_at: 8.hour.ago },
- { name: 'build:osx', stage: 'build', status: :success,
- queued_at: 10.hour.ago, started_at: 10.hour.ago, finished_at: 9.hour.ago },
-
- # test stage
- { name: 'rspec:linux 0 3', stage: 'test', status: :success,
- queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
- { name: 'rspec:linux 1 3', stage: 'test', status: :success,
- queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
- { name: 'rspec:linux 2 3', stage: 'test', status: :success,
- queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
- { name: 'rspec:windows 0 3', stage: 'test', status: :success,
- queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
- { name: 'rspec:windows 1 3', stage: 'test', status: :success,
- queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
- { name: 'rspec:windows 2 3', stage: 'test', status: :success,
- queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
- { name: 'rspec:windows 2 3', stage: 'test', status: :success,
- queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
- { name: 'rspec:osx', stage: 'test', status_event: :success,
- queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
- { name: 'spinach:linux', stage: 'test', status: :success,
- queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
- { name: 'spinach:osx', stage: 'test', status: :failed, allow_failure: true,
- queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
-
- # deploy stage
- { name: 'staging', stage: 'deploy', environment: 'staging', status_event: :success,
- options: { environment: { action: 'start', on_stop: 'stop staging' } },
- queued_at: 7.hour.ago, started_at: 6.hour.ago, finished_at: 4.hour.ago },
- { name: 'stop staging', stage: 'deploy', environment: 'staging',
- when: 'manual', status: :skipped },
- { name: 'production', stage: 'deploy', environment: 'production',
- when: 'manual', status: :skipped },
-
- # notify stage
- { name: 'slack', stage: 'notify', when: 'manual', status: :success },
- ]
- EXTERNAL_JOBS = [
- { name: 'jenkins', stage: 'test', status: :success,
- queued_at: 7.hour.ago, started_at: 6.hour.ago, finished_at: 4.hour.ago },
+ PIPELINE_STAGES = [
+ {
+ name: 'build',
+ position: 0,
+ builds: [
+ { name: 'build:linux', status: :success,
+ queued_at: 10.hour.ago, started_at: 9.hour.ago, finished_at: 8.hour.ago },
+ { name: 'build:osx', status: :success,
+ queued_at: 10.hour.ago, started_at: 10.hour.ago, finished_at: 9.hour.ago },
+ ]
+ },
+ {
+ name: 'test',
+ position: 1,
+ builds: [
+ { name: 'rspec:linux 0 3', status: :success,
+ queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
+ { name: 'rspec:linux 1 3', status: :success,
+ queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
+ { name: 'rspec:linux 2 3', status: :success,
+ queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
+ { name: 'rspec:windows 0 3', status: :success,
+ queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
+ { name: 'rspec:windows 1 3', status: :success,
+ queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
+ { name: 'rspec:windows 2 3', status: :success,
+ queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
+ { name: 'rspec:windows 2 3', status: :success,
+ queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
+ { name: 'rspec:osx', status_event: :success,
+ queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
+ { name: 'spinach:linux', status: :success,
+ queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago },
+ { name: 'spinach:osx', status: :failed, allow_failure: true,
+ queued_at: 8.hour.ago, started_at: 8.hour.ago, finished_at: 7.hour.ago }
+ ]
+ },
+ {
+ name: 'deploy',
+ position: 2,
+ builds: [
+ { name: 'staging', environment: 'staging', status_event: :success,
+ options: { environment: { action: 'start', on_stop: 'stop staging' } },
+ queued_at: 7.hour.ago, started_at: 6.hour.ago, finished_at: 4.hour.ago },
+ { name: 'stop staging', environment: 'staging', when: 'manual', status: :skipped },
+ { name: 'production', environment: 'production', when: 'manual', status: :skipped },
+ ]
+ },
+ {
+ name: 'notify',
+ position: 3,
+ builds: [
+ { name: 'slack', when: 'manual', status: :success },
+ ]
+ },
+ {
+ name: 'external',
+ position: 4,
+ builds: [
+ { name: 'jenkins', status: :success,
+ queued_at: 7.hour.ago, started_at: 6.hour.ago, finished_at: 4.hour.ago }
+ ]
+ }
]
def initialize(project)
@@ -54,9 +72,20 @@ class Gitlab::Seeder::Pipelines
def seed!
pipelines.each do |pipeline|
- BUILDS.each { |opts| build_create!(pipeline, opts) }
- EXTERNAL_JOBS.each { |opts| commit_status_create!(pipeline, opts) }
+ PIPELINE_STAGES.each do |stage_attrs|
+ stage = stage_create!(pipeline, stage_attrs[:name], stage_attrs[:position])
+
+ stage_attrs[:builds].each do |build_attrs|
+ if stage_attrs[:name] == 'external'
+ generic_commit_status_create!(pipeline, stage, build_attrs)
+ else
+ build_create!(pipeline, stage, build_attrs)
+ end
+ end
+ end
+
pipeline.update_duration
+
::Ci::ProcessPipelineService.new(pipeline).execute
end
@@ -65,6 +94,10 @@ class Gitlab::Seeder::Pipelines
private
+ def stage_create!(pipeline, name, position)
+ Ci::Stage.create!(pipeline: pipeline, project: pipeline.project, name: name, position: position)
+ end
+
def pipelines
create_master_pipelines + create_merge_request_pipelines
end
@@ -106,8 +139,8 @@ class Gitlab::Seeder::Pipelines
project.ci_pipelines.create!(sha: commit.id, ref: ref, source: :push)
end
- def build_create!(pipeline, opts = {})
- attributes = job_attributes(pipeline, opts)
+ def build_create!(pipeline, stage, opts = {})
+ attributes = job_attributes(pipeline, stage, opts)
attributes[:options] ||= {}
attributes[:options][:script] = 'build command'
@@ -129,7 +162,7 @@ class Gitlab::Seeder::Pipelines
end
def setup_artifacts(build)
- return unless build.stage_name == "build"
+ return unless build.ci_stage.name == 'build'
artifacts_cache_file(artifacts_archive_path) do |file|
build.job_artifacts.build(project: build.project, file_type: :archive, file_format: :zip, file: file)
@@ -141,7 +174,7 @@ class Gitlab::Seeder::Pipelines
end
def setup_test_reports(build)
- return unless build.stage_name == "test" && build.name == "rspec:osx"
+ return unless build.ci_stage.name == 'test' && build.name == "rspec:osx"
if build.ref == build.project.default_branch
artifacts_cache_file(test_reports_pass_path) do |file|
@@ -160,15 +193,15 @@ class Gitlab::Seeder::Pipelines
end
end
- def commit_status_create!(pipeline, opts = {})
- attributes = job_attributes(pipeline, opts)
+ def generic_commit_status_create!(pipeline, stage, opts = {})
+ attributes = job_attributes(pipeline, stage, opts)
GenericCommitStatus.create!(attributes)
end
- def job_attributes(pipeline, opts)
+ def job_attributes(pipeline, stage, opts)
{
- name: 'test build', stage: 'test', stage_idx: stage_index(opts[:stage]),
+ name: 'test build', ci_stage: stage, stage_idx: stage.position,
ref: pipeline.ref, tag: false, user: build_user, project: @project, pipeline: pipeline,
scheduling_type: :stage, created_at: Time.now, updated_at: Time.now
}.merge(opts)
@@ -186,10 +219,6 @@ class Gitlab::Seeder::Pipelines
Ci::Build::AVAILABLE_STATUSES.sample
end
- def stage_index(stage)
- STAGES.index(stage) || 0
- end
-
def artifacts_archive_path
Rails.root + 'spec/fixtures/ci_build_artifacts.zip'
end
diff --git a/db/fixtures/development/50_create_work_item_hierarchy_restrictions.rb b/db/fixtures/development/50_create_work_item_hierarchy_restrictions.rb
new file mode 100644
index 00000000000..b5c5d0cacdd
--- /dev/null
+++ b/db/fixtures/development/50_create_work_item_hierarchy_restrictions.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+Gitlab::Seeder.quiet do
+ Gitlab::DatabaseImporters::WorkItems::HierarchyRestrictionsImporter.upsert_restrictions
+end
diff --git a/db/fixtures/production/020_create_work_item_hierarchy_restrictions.rb b/db/fixtures/production/020_create_work_item_hierarchy_restrictions.rb
new file mode 100644
index 00000000000..b5c5d0cacdd
--- /dev/null
+++ b/db/fixtures/production/020_create_work_item_hierarchy_restrictions.rb
@@ -0,0 +1,5 @@
+# frozen_string_literal: true
+
+Gitlab::Seeder.quiet do
+ Gitlab::DatabaseImporters::WorkItems::HierarchyRestrictionsImporter.upsert_restrictions
+end
diff --git a/db/migrate/20220824082427_remove_tmp_idx_vulnerability_occurrences_on_id_and_scanner_id.rb b/db/migrate/20220824082427_remove_tmp_idx_vulnerability_occurrences_on_id_and_scanner_id.rb
new file mode 100644
index 00000000000..ebb90df569b
--- /dev/null
+++ b/db/migrate/20220824082427_remove_tmp_idx_vulnerability_occurrences_on_id_and_scanner_id.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+class RemoveTmpIdxVulnerabilityOccurrencesOnIdAndScannerId < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = 'tmp_index_vulnerability_occurrences_on_id_and_scanner_id'
+ REPORT_TYPES = { cluster_image_scanning: 7, generic: 99 }.freeze
+ CLAUSE = "report_type IN (#{REPORT_TYPES.values.join(',')})"
+
+ disable_ddl_transaction!
+
+ def up
+ remove_concurrent_index_by_name :vulnerability_occurrences, INDEX_NAME
+ end
+
+ def down
+ add_concurrent_index :vulnerability_occurrences,
+ [:id, :scanner_id],
+ where: CLAUSE,
+ name: INDEX_NAME
+ end
+end
diff --git a/db/migrate/20220908150054_add_runner_registration_enabled_to_namespace_settings.rb b/db/migrate/20220908150054_add_runner_registration_enabled_to_namespace_settings.rb
new file mode 100644
index 00000000000..7721d0d592c
--- /dev/null
+++ b/db/migrate/20220908150054_add_runner_registration_enabled_to_namespace_settings.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddRunnerRegistrationEnabledToNamespaceSettings < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :namespace_settings, :runner_registration_enabled, :boolean, default: true
+ end
+end
diff --git a/db/migrate/20221026095133_add_status_updated_at_to_container_repository.rb b/db/migrate/20221026095133_add_status_updated_at_to_container_repository.rb
new file mode 100644
index 00000000000..caf838e8307
--- /dev/null
+++ b/db/migrate/20221026095133_add_status_updated_at_to_container_repository.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class AddStatusUpdatedAtToContainerRepository < Gitlab::Database::Migration[2.0]
+ def change
+ add_column :container_repositories, :status_updated_at, :datetime_with_timezone
+ end
+end
diff --git a/db/migrate/20221101174816_create_package_metadata.rb b/db/migrate/20221101174816_create_package_metadata.rb
new file mode 100644
index 00000000000..f1456689641
--- /dev/null
+++ b/db/migrate/20221101174816_create_package_metadata.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class CreatePackageMetadata < Gitlab::Database::Migration[2.0]
+ def change
+ create_table :pm_packages do |t|
+ t.integer :purl_type, null: false, limit: 2
+ t.text :name, null: false, limit: 255
+ t.index [:purl_type, :name], unique: true, name: 'i_pm_packages_purl_type_and_name'
+ end
+ end
+end
diff --git a/db/migrate/20221101194416_create_package_metadata_versions.rb b/db/migrate/20221101194416_create_package_metadata_versions.rb
new file mode 100644
index 00000000000..19b86d86de1
--- /dev/null
+++ b/db/migrate/20221101194416_create_package_metadata_versions.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class CreatePackageMetadataVersions < Gitlab::Database::Migration[2.0]
+ def change
+ create_table :pm_package_versions do |t|
+ t.references :pm_package, foreign_key: { to_table: :pm_packages, on_delete: :cascade }
+ t.text :version, null: false, limit: 255
+ t.index [:pm_package_id, :version], unique: true, name: 'i_pm_package_versions_on_package_id_and_version'
+ end
+ end
+end
diff --git a/db/migrate/20221101195309_create_package_metadata_licenses.rb b/db/migrate/20221101195309_create_package_metadata_licenses.rb
new file mode 100644
index 00000000000..1fbb0c147bd
--- /dev/null
+++ b/db/migrate/20221101195309_create_package_metadata_licenses.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+class CreatePackageMetadataLicenses < Gitlab::Database::Migration[2.0]
+ def change
+ create_table :pm_licenses do |t|
+ t.text :spdx_identifier, null: false, limit: 50
+ t.index [:spdx_identifier], unique: true, name: 'i_pm_licenses_on_spdx_identifier'
+ end
+ end
+end
diff --git a/db/migrate/20221101195543_create_package_metadata_package_version_licenses.rb b/db/migrate/20221101195543_create_package_metadata_package_version_licenses.rb
new file mode 100644
index 00000000000..9007f869e1f
--- /dev/null
+++ b/db/migrate/20221101195543_create_package_metadata_package_version_licenses.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+class CreatePackageMetadataPackageVersionLicenses < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = 'i_pm_package_version_licenses_on_version_and_license_ids'
+
+ def change
+ create_table :pm_package_version_licenses, primary_key: [:pm_package_version_id, :pm_license_id] do |t|
+ t.references :pm_package_version, foreign_key: { on_delete: :cascade }, null: false
+ t.references :pm_license, foreign_key: { on_delete: :cascade }, null: false
+ end
+ end
+end
diff --git a/db/migrate/20221102150737_index_environments_for_name_search_within_folder.rb b/db/migrate/20221102150737_index_environments_for_name_search_within_folder.rb
new file mode 100644
index 00000000000..10fd8b33c45
--- /dev/null
+++ b/db/migrate/20221102150737_index_environments_for_name_search_within_folder.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class IndexEnvironmentsForNameSearchWithinFolder < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_environments_for_name_search_within_folder'
+
+ def up
+ add_concurrent_index :environments,
+ "project_id, lower(ltrim(name, environment_type || '/')) varchar_pattern_ops, state", name: INDEX_NAME
+ end
+
+ def down
+ remove_concurrent_index_by_name :environments, INDEX_NAME
+ end
+end
diff --git a/db/migrate/20221102195642_create_dependency_proxy_manifest_states.rb b/db/migrate/20221102195642_create_dependency_proxy_manifest_states.rb
new file mode 100644
index 00000000000..e0da92c6c94
--- /dev/null
+++ b/db/migrate/20221102195642_create_dependency_proxy_manifest_states.rb
@@ -0,0 +1,45 @@
+# frozen_string_literal: true
+
+class CreateDependencyProxyManifestStates < Gitlab::Database::Migration[2.0]
+ DEPENDENCY_PROXY_MANIFEST_INDEX_NAME = "index_manifest_states_on_dependency_proxy_manifest_id"
+ VERIFICATION_STATE_INDEX_NAME = "index_manifest_states_on_verification_state"
+ PENDING_VERIFICATION_INDEX_NAME = "index_manifest_states_pending_verification"
+ FAILED_VERIFICATION_INDEX_NAME = "index_manifest_states_failed_verification"
+ NEEDS_VERIFICATION_INDEX_NAME = "index_manifest_states_needs_verification"
+
+ enable_lock_retries!
+
+ def up
+ create_table :dependency_proxy_manifest_states, id: false do |t|
+ t.datetime_with_timezone :verification_started_at
+ t.datetime_with_timezone :verification_retry_at
+ t.datetime_with_timezone :verified_at
+ t.references :dependency_proxy_manifest,
+ primary_key: true,
+ index: { name: DEPENDENCY_PROXY_MANIFEST_INDEX_NAME },
+ default: nil,
+ foreign_key: { on_delete: :cascade }
+ t.integer :verification_state, default: 0, limit: 2, null: false
+ t.integer :verification_retry_count, limit: 2, default: 0, null: false
+ t.binary :verification_checksum, using: 'verification_checksum::bytea'
+ t.text :verification_failure, limit: 255
+
+ t.index :verification_state, name: VERIFICATION_STATE_INDEX_NAME
+ t.index :verified_at,
+ where: "(verification_state = 0)",
+ order: { verified_at: 'ASC NULLS FIRST' },
+ name: PENDING_VERIFICATION_INDEX_NAME
+ t.index :verification_retry_at,
+ where: "(verification_state = 3)",
+ order: { verification_retry_at: 'ASC NULLS FIRST' },
+ name: FAILED_VERIFICATION_INDEX_NAME
+ t.index :verification_state,
+ where: "(verification_state = 0 OR verification_state = 3)",
+ name: NEEDS_VERIFICATION_INDEX_NAME
+ end
+ end
+
+ def down
+ drop_table :dependency_proxy_manifest_states
+ end
+end
diff --git a/db/migrate/20221103205317_create_dast_pre_scan_verification.rb b/db/migrate/20221103205317_create_dast_pre_scan_verification.rb
new file mode 100644
index 00000000000..85375be53b5
--- /dev/null
+++ b/db/migrate/20221103205317_create_dast_pre_scan_verification.rb
@@ -0,0 +1,22 @@
+# frozen_string_literal: true
+
+class CreateDastPreScanVerification < Gitlab::Database::Migration[2.0]
+ def up
+ create_table :dast_pre_scan_verifications do |t|
+ t.references :dast_profile, null: false, foreign_key: { on_delete: :cascade },
+ index: { name: 'index_dast_pre_scan_verifications_on_dast_profile_id' }
+
+ t.bigint :ci_pipeline_id, null: false
+
+ t.timestamps_with_timezone
+
+ t.integer :status, default: 0, limit: 2, null: false
+
+ t.index :ci_pipeline_id, unique: true, name: :index_dast_pre_scan_verifications_on_ci_pipeline_id
+ end
+ end
+
+ def down
+ drop_table :dast_pre_scan_verifications
+ end
+end
diff --git a/db/migrate/20221107013943_add_accepted_reviewers_to_merge_request_predictions.rb b/db/migrate/20221107013943_add_accepted_reviewers_to_merge_request_predictions.rb
new file mode 100644
index 00000000000..9876ac3127a
--- /dev/null
+++ b/db/migrate/20221107013943_add_accepted_reviewers_to_merge_request_predictions.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddAcceptedReviewersToMergeRequestPredictions < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :merge_request_predictions, :accepted_reviewers, :jsonb, null: false, default: {}
+ end
+end
diff --git a/db/migrate/20221110080508_add_partition_id_to_ci_unit_test_failures.rb b/db/migrate/20221110080508_add_partition_id_to_ci_unit_test_failures.rb
new file mode 100644
index 00000000000..2217048965c
--- /dev/null
+++ b/db/migrate/20221110080508_add_partition_id_to_ci_unit_test_failures.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiUnitTestFailures < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_unit_test_failures, :partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221110080636_add_partition_id_to_ci_sources_pipelines.rb b/db/migrate/20221110080636_add_partition_id_to_ci_sources_pipelines.rb
new file mode 100644
index 00000000000..a76955d8db1
--- /dev/null
+++ b/db/migrate/20221110080636_add_partition_id_to_ci_sources_pipelines.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiSourcesPipelines < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_sources_pipelines, :partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221110080748_add_partition_id_to_ci_build_pending_states.rb b/db/migrate/20221110080748_add_partition_id_to_ci_build_pending_states.rb
new file mode 100644
index 00000000000..abf14f4ceca
--- /dev/null
+++ b/db/migrate/20221110080748_add_partition_id_to_ci_build_pending_states.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiBuildPendingStates < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_build_pending_states, :partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221110080822_add_partition_id_to_ci_build_trace_chunks.rb b/db/migrate/20221110080822_add_partition_id_to_ci_build_trace_chunks.rb
new file mode 100644
index 00000000000..27a9bbdb896
--- /dev/null
+++ b/db/migrate/20221110080822_add_partition_id_to_ci_build_trace_chunks.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiBuildTraceChunks < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_build_trace_chunks, :partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221110080913_add_partition_id_to_ci_build_report_results.rb b/db/migrate/20221110080913_add_partition_id_to_ci_build_report_results.rb
new file mode 100644
index 00000000000..b915ac9f907
--- /dev/null
+++ b/db/migrate/20221110080913_add_partition_id_to_ci_build_report_results.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiBuildReportResults < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_build_report_results, :partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221110080956_add_partition_id_to_ci_build_needs.rb b/db/migrate/20221110080956_add_partition_id_to_ci_build_needs.rb
new file mode 100644
index 00000000000..faa0309f2c1
--- /dev/null
+++ b/db/migrate/20221110080956_add_partition_id_to_ci_build_needs.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiBuildNeeds < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_build_needs, :partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221110081037_add_partition_id_to_ci_builds_runner_session.rb b/db/migrate/20221110081037_add_partition_id_to_ci_builds_runner_session.rb
new file mode 100644
index 00000000000..e6f5d65c7b1
--- /dev/null
+++ b/db/migrate/20221110081037_add_partition_id_to_ci_builds_runner_session.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiBuildsRunnerSession < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_builds_runner_session, :partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221110081115_add_partition_id_to_ci_pending_builds.rb b/db/migrate/20221110081115_add_partition_id_to_ci_pending_builds.rb
new file mode 100644
index 00000000000..24435fd7aa9
--- /dev/null
+++ b/db/migrate/20221110081115_add_partition_id_to_ci_pending_builds.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiPendingBuilds < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_pending_builds, :partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221110081207_add_partition_id_to_ci_build_trace_metadata.rb b/db/migrate/20221110081207_add_partition_id_to_ci_build_trace_metadata.rb
new file mode 100644
index 00000000000..0c4baa2af1e
--- /dev/null
+++ b/db/migrate/20221110081207_add_partition_id_to_ci_build_trace_metadata.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiBuildTraceMetadata < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_build_trace_metadata, :partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221110081348_add_partition_id_to_ci_running_builds.rb b/db/migrate/20221110081348_add_partition_id_to_ci_running_builds.rb
new file mode 100644
index 00000000000..f4d61a93e3e
--- /dev/null
+++ b/db/migrate/20221110081348_add_partition_id_to_ci_running_builds.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiRunningBuilds < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_running_builds, :partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221110081448_add_partition_id_to_ci_job_variables.rb b/db/migrate/20221110081448_add_partition_id_to_ci_job_variables.rb
new file mode 100644
index 00000000000..0e0eadd8f72
--- /dev/null
+++ b/db/migrate/20221110081448_add_partition_id_to_ci_job_variables.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiJobVariables < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_job_variables, :partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221110183103_add_dashboard_fields_to_namespace_details.rb b/db/migrate/20221110183103_add_dashboard_fields_to_namespace_details.rb
new file mode 100644
index 00000000000..73e8ccbcb51
--- /dev/null
+++ b/db/migrate/20221110183103_add_dashboard_fields_to_namespace_details.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+class AddDashboardFieldsToNamespaceDetails < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :namespace_details, :dashboard_notification_at, :datetime_with_timezone
+ add_column :namespace_details, :dashboard_enforcement_at, :datetime_with_timezone
+ end
+end
diff --git a/db/migrate/20221111123146_add_onboarding_in_progress_to_users.rb b/db/migrate/20221111123146_add_onboarding_in_progress_to_users.rb
new file mode 100644
index 00000000000..665760347bf
--- /dev/null
+++ b/db/migrate/20221111123146_add_onboarding_in_progress_to_users.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class AddOnboardingInProgressToUsers < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ # rubocop:disable Migration/AddColumnsToWideTables
+ def up
+ add_column :users, :onboarding_in_progress, :boolean, default: false, null: false
+ end
+
+ def down
+ remove_column :users, :onboarding_in_progress
+ end
+ # rubocop:enable Migration/AddColumnsToWideTables
+end
diff --git a/db/migrate/20221111123147_add_onboarding_step_url_to_user_details.rb b/db/migrate/20221111123147_add_onboarding_step_url_to_user_details.rb
new file mode 100644
index 00000000000..7b6c035e05a
--- /dev/null
+++ b/db/migrate/20221111123147_add_onboarding_step_url_to_user_details.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class AddOnboardingStepUrlToUserDetails < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ # rubocop:disable Migration/AddLimitToTextColumns
+ # limit is added in 20221111123148_add_text_limit_to_onboarding_step_url.rb
+ def up
+ add_column :user_details, :onboarding_step_url, :text
+ end
+
+ def down
+ remove_column :user_details, :onboarding_step_url
+ end
+ # rubocop:enable Migration/AddLimitToTextColumns
+end
diff --git a/db/migrate/20221111123148_add_text_limit_to_onboarding_step_url.rb b/db/migrate/20221111123148_add_text_limit_to_onboarding_step_url.rb
new file mode 100644
index 00000000000..cfd9f004131
--- /dev/null
+++ b/db/migrate/20221111123148_add_text_limit_to_onboarding_step_url.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class AddTextLimitToOnboardingStepUrl < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ add_text_limit :user_details, :onboarding_step_url, 2000
+ end
+
+ def down
+ remove_text_limit :user_details, :onboarding_step_url
+ end
+end
diff --git a/db/migrate/20221111135238_create_dependency_list_exports_table.rb b/db/migrate/20221111135238_create_dependency_list_exports_table.rb
new file mode 100644
index 00000000000..d47bd93fff7
--- /dev/null
+++ b/db/migrate/20221111135238_create_dependency_list_exports_table.rb
@@ -0,0 +1,23 @@
+# frozen_string_literal: true
+
+class CreateDependencyListExportsTable < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ create_table :dependency_list_exports do |t|
+ t.timestamps_with_timezone null: false
+ t.bigint :project_id, null: false
+ t.bigint :user_id
+ t.integer :file_store
+ t.integer :status, default: 0, null: false, limit: 2
+ t.text :file, limit: 255
+
+ t.index :user_id
+ t.index :project_id
+ end
+ end
+
+ def down
+ drop_table :dependency_list_exports
+ end
+end
diff --git a/db/migrate/20221111142921_add_hierarchy_restrictions.rb b/db/migrate/20221111142921_add_hierarchy_restrictions.rb
new file mode 100644
index 00000000000..dd80de04969
--- /dev/null
+++ b/db/migrate/20221111142921_add_hierarchy_restrictions.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+class AddHierarchyRestrictions < Gitlab::Database::Migration[2.0]
+ UNIQUE_INDEX_NAME = 'index_work_item_hierarchy_restrictions_on_parent_and_child'
+
+ def up
+ create_table :work_item_hierarchy_restrictions do |t|
+ t.references :parent_type, index: true, null: false,
+ foreign_key: { on_delete: :cascade, to_table: :work_item_types }
+ t.references :child_type, index: true, null: false,
+ foreign_key: { on_delete: :cascade, to_table: :work_item_types }
+ t.integer :maximum_depth, limit: 2
+
+ t.index [:parent_type_id, :child_type_id], unique: true, name: UNIQUE_INDEX_NAME
+ end
+ end
+
+ def down
+ drop_table :work_item_hierarchy_restrictions
+ end
+end
diff --git a/db/migrate/20221114131943_add_short_title_to_appearances.rb b/db/migrate/20221114131943_add_short_title_to_appearances.rb
new file mode 100644
index 00000000000..6bf5d32f441
--- /dev/null
+++ b/db/migrate/20221114131943_add_short_title_to_appearances.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+class AddShortTitleToAppearances < Gitlab::Database::Migration[2.0]
+ # rubocop:disable Migration/AddLimitToTextColumns
+ # limit is added in 20221115085813_add_limit_to_appereances_short_title.rb
+ def change
+ add_column :appearances, :short_title, :text
+ end
+ # rubocop:enable Migration/AddLimitToTextColumns
+end
diff --git a/db/migrate/20221114145103_add_last_seat_refresh_at_to_gitlab_subscriptions.rb b/db/migrate/20221114145103_add_last_seat_refresh_at_to_gitlab_subscriptions.rb
new file mode 100644
index 00000000000..77d6bb42f02
--- /dev/null
+++ b/db/migrate/20221114145103_add_last_seat_refresh_at_to_gitlab_subscriptions.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class AddLastSeatRefreshAtToGitlabSubscriptions < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ TABLE_NAME = 'gitlab_subscriptions'
+ COLUMN_NAME = 'last_seat_refresh_at'
+
+ def up
+ add_column(TABLE_NAME, COLUMN_NAME, :datetime_with_timezone)
+ end
+
+ def down
+ remove_column(TABLE_NAME, COLUMN_NAME)
+ end
+end
diff --git a/db/migrate/20221114212908_add_debug_trace_to_ci_builds_metadata.rb b/db/migrate/20221114212908_add_debug_trace_to_ci_builds_metadata.rb
new file mode 100644
index 00000000000..aee479dfcee
--- /dev/null
+++ b/db/migrate/20221114212908_add_debug_trace_to_ci_builds_metadata.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddDebugTraceToCiBuildsMetadata < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :p_ci_builds_metadata, :debug_trace_enabled, :boolean, null: false, default: false
+ end
+end
diff --git a/db/migrate/20221115085813_add_limit_to_appereances_short_title.rb b/db/migrate/20221115085813_add_limit_to_appereances_short_title.rb
new file mode 100644
index 00000000000..d75895216f7
--- /dev/null
+++ b/db/migrate/20221115085813_add_limit_to_appereances_short_title.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class AddLimitToAppereancesShortTitle < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ add_text_limit :appearances, :short_title, 255
+ end
+
+ def down
+ remove_text_limit :appearances, :short_title
+ end
+end
diff --git a/db/migrate/20221116100056_add_foreign_key_to_dependency_list_exports.rb b/db/migrate/20221116100056_add_foreign_key_to_dependency_list_exports.rb
new file mode 100644
index 00000000000..1c7df66bd04
--- /dev/null
+++ b/db/migrate/20221116100056_add_foreign_key_to_dependency_list_exports.rb
@@ -0,0 +1,27 @@
+# frozen_string_literal: true
+
+class AddForeignKeyToDependencyListExports < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ add_concurrent_foreign_key(
+ :dependency_list_exports,
+ :users,
+ column: :user_id,
+ on_delete: :nullify)
+ add_concurrent_foreign_key(
+ :dependency_list_exports,
+ :projects,
+ column: :project_id,
+ on_delete: :cascade)
+ end
+
+ def down
+ with_lock_retries do
+ remove_foreign_key_if_exists :dependency_list_exports, column: :user_id
+ end
+ with_lock_retries do
+ remove_foreign_key_if_exists :dependency_list_exports, column: :project_id
+ end
+ end
+end
diff --git a/db/migrate/20221116113323_add_index_on_team_id_and_chat_id.rb b/db/migrate/20221116113323_add_index_on_team_id_and_chat_id.rb
new file mode 100644
index 00000000000..7a7bcf48d80
--- /dev/null
+++ b/db/migrate/20221116113323_add_index_on_team_id_and_chat_id.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class AddIndexOnTeamIdAndChatId < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_chat_names_on_team_id_and_chat_id'
+
+ def up
+ add_concurrent_index(:chat_names, [:team_id, :chat_id], name: INDEX_NAME)
+ end
+
+ def down
+ remove_concurrent_index_by_name :chat_names, INDEX_NAME
+ end
+end
diff --git a/db/migrate/20221116124821_add_enterprise_boolean_to_bulk_imports.rb b/db/migrate/20221116124821_add_enterprise_boolean_to_bulk_imports.rb
new file mode 100644
index 00000000000..69cc39b72f6
--- /dev/null
+++ b/db/migrate/20221116124821_add_enterprise_boolean_to_bulk_imports.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class AddEnterpriseBooleanToBulkImports < Gitlab::Database::Migration[2.0]
+ def change
+ add_column :bulk_imports, :source_enterprise, :boolean, default: true, null: false
+ end
+end
diff --git a/db/migrate/20221116160204_create_ml_experiment_metadata_and_ml_candidate_metadata.rb b/db/migrate/20221116160204_create_ml_experiment_metadata_and_ml_candidate_metadata.rb
new file mode 100644
index 00000000000..288d1e4be98
--- /dev/null
+++ b/db/migrate/20221116160204_create_ml_experiment_metadata_and_ml_candidate_metadata.rb
@@ -0,0 +1,29 @@
+# frozen_string_literal: true
+
+class CreateMlExperimentMetadataAndMlCandidateMetadata < Gitlab::Database::Migration[2.0]
+ def change
+ create_table :ml_experiment_metadata do |t|
+ t.timestamps_with_timezone null: false
+ t.references :experiment,
+ foreign_key: { to_table: :ml_experiments, on_delete: :cascade },
+ index: false,
+ null: false
+ t.text :name, limit: 255, null: false
+ t.text :value, limit: 5000, null: false
+
+ t.index [:experiment_id, :name], unique: true
+ end
+
+ create_table :ml_candidate_metadata do |t|
+ t.timestamps_with_timezone null: false
+ t.references :candidate,
+ foreign_key: { to_table: :ml_candidates, on_delete: :cascade },
+ index: false,
+ null: false
+ t.text :name, limit: 255, null: false, index: true
+ t.text :value, limit: 5000, null: false
+
+ t.index [:candidate_id, :name], unique: true
+ end
+ end
+end
diff --git a/db/migrate/20221116161126_add_auth_signing_type_to_keys.rb b/db/migrate/20221116161126_add_auth_signing_type_to_keys.rb
new file mode 100644
index 00000000000..795074fa0ca
--- /dev/null
+++ b/db/migrate/20221116161126_add_auth_signing_type_to_keys.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class AddAuthSigningTypeToKeys < Gitlab::Database::Migration[2.0]
+ def change
+ add_column :keys, :usage_type, :integer, limit: 2, null: false, default: 0
+ end
+end
diff --git a/db/migrate/20221121091238_add_work_item_progress.rb b/db/migrate/20221121091238_add_work_item_progress.rb
new file mode 100644
index 00000000000..0e306bf7332
--- /dev/null
+++ b/db/migrate/20221121091238_add_work_item_progress.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+class AddWorkItemProgress < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def up
+ create_table :work_item_progresses, id: false do |t|
+ t.timestamps_with_timezone null: false
+ t.references :issue, primary_key: true, index: false, default: nil,
+ foreign_key: { on_delete: :cascade, to_table: :issues }
+ t.integer :progress, default: 0, limit: 2, null: false
+ end
+ end
+
+ def down
+ drop_table :work_item_progresses
+ end
+end
diff --git a/db/migrate/20221121100431_add_partition_id_to_ci_resources.rb b/db/migrate/20221121100431_add_partition_id_to_ci_resources.rb
new file mode 100644
index 00000000000..5b783057b3a
--- /dev/null
+++ b/db/migrate/20221121100431_add_partition_id_to_ci_resources.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddPartitionIdToCiResources < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column(:ci_resources, :partition_id, :bigint, default: 100, null: false)
+ end
+end
diff --git a/db/migrate/20221122141046_add_allow_pipeline_trigger_approve_deployment_to_project_settings.rb b/db/migrate/20221122141046_add_allow_pipeline_trigger_approve_deployment_to_project_settings.rb
new file mode 100644
index 00000000000..b9397d80211
--- /dev/null
+++ b/db/migrate/20221122141046_add_allow_pipeline_trigger_approve_deployment_to_project_settings.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddAllowPipelineTriggerApproveDeploymentToProjectSettings < Gitlab::Database::Migration[2.1]
+ enable_lock_retries!
+
+ def change
+ add_column :project_settings, :allow_pipeline_trigger_approve_deployment, :boolean, default: false, null: false
+ end
+end
diff --git a/db/migrate/20221122225925_set_email_confirmation_setting_before_removing_send_user_confirmation_email_column.rb b/db/migrate/20221122225925_set_email_confirmation_setting_before_removing_send_user_confirmation_email_column.rb
new file mode 100644
index 00000000000..f92704ac212
--- /dev/null
+++ b/db/migrate/20221122225925_set_email_confirmation_setting_before_removing_send_user_confirmation_email_column.rb
@@ -0,0 +1,22 @@
+# frozen_string_literal: true
+
+class SetEmailConfirmationSettingBeforeRemovingSendUserConfirmationEmailColumn < Gitlab::Database::Migration[2.0]
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ class ApplicationSetting < MigrationRecord
+ self.table_name = 'application_settings'
+ end
+
+ def up
+ return unless ApplicationSetting.exists?
+ return unless ApplicationSetting.last.send_user_confirmation_email
+
+ ApplicationSetting.last.update(email_confirmation_setting: 2)
+ end
+
+ def down
+ return unless ApplicationSetting.exists?
+
+ ApplicationSetting.last.update(email_confirmation_setting: 0)
+ end
+end
diff --git a/db/migrate/20221124113925_add_pipeline_hierarchy_size_to_plan_limits.rb b/db/migrate/20221124113925_add_pipeline_hierarchy_size_to_plan_limits.rb
new file mode 100644
index 00000000000..f96097febe5
--- /dev/null
+++ b/db/migrate/20221124113925_add_pipeline_hierarchy_size_to_plan_limits.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class AddPipelineHierarchySizeToPlanLimits < Gitlab::Database::Migration[2.1]
+ def change
+ add_column(:plan_limits, :pipeline_hierarchy_size, :integer, default: 1000, null: false)
+ end
+end
diff --git a/db/migrate/20221128123514_add_source_partition_id_to_ci_sources_pipeline.rb b/db/migrate/20221128123514_add_source_partition_id_to_ci_sources_pipeline.rb
new file mode 100644
index 00000000000..a98cdbf88de
--- /dev/null
+++ b/db/migrate/20221128123514_add_source_partition_id_to_ci_sources_pipeline.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddSourcePartitionIdToCiSourcesPipeline < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :ci_sources_pipelines, :source_partition_id, :bigint, default: 100, null: false
+ end
+end
diff --git a/db/migrate/20221129192619_increase_self_hosted_attachment_size_limit.rb b/db/migrate/20221129192619_increase_self_hosted_attachment_size_limit.rb
new file mode 100644
index 00000000000..ec938afc7ba
--- /dev/null
+++ b/db/migrate/20221129192619_increase_self_hosted_attachment_size_limit.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class IncreaseSelfHostedAttachmentSizeLimit < Gitlab::Database::Migration[2.1]
+ enable_lock_retries!
+
+ def up
+ change_column_default :application_settings, :max_attachment_size, from: 10, to: 100
+ end
+
+ def down
+ change_column_default :application_settings, :max_attachment_size, from: 100, to: 10
+ end
+end
diff --git a/db/migrate/20221130170433_create_dast_pre_scan_verification_step.rb b/db/migrate/20221130170433_create_dast_pre_scan_verification_step.rb
new file mode 100644
index 00000000000..f0b88ab1c4d
--- /dev/null
+++ b/db/migrate/20221130170433_create_dast_pre_scan_verification_step.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+class CreateDastPreScanVerificationStep < Gitlab::Database::Migration[2.1]
+ def up
+ create_table :dast_pre_scan_verification_steps do |t|
+ t.references :dast_pre_scan_verification,
+ null: false, foreign_key: { on_delete: :cascade },
+ index: { name: 'i_dast_pre_scan_verification_steps_on_pre_scan_verification_id' }
+ t.timestamps_with_timezone
+ t.text :name, limit: 255
+ t.text :verification_errors, array: true, default: [], null: false
+ end
+ end
+
+ def down
+ drop_table :dast_pre_scan_verification_steps
+ end
+end
diff --git a/db/migrate/20221130182056_add_plan_limits_max_size_to_requirements_v2_artifact.rb b/db/migrate/20221130182056_add_plan_limits_max_size_to_requirements_v2_artifact.rb
new file mode 100644
index 00000000000..48d53d69898
--- /dev/null
+++ b/db/migrate/20221130182056_add_plan_limits_max_size_to_requirements_v2_artifact.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class AddPlanLimitsMaxSizeToRequirementsV2Artifact < Gitlab::Database::Migration[2.0]
+ def change
+ add_column :plan_limits, :ci_max_artifact_size_requirements_v2, :integer, null: false, default: 0
+ end
+end
diff --git a/db/migrate/20221202144210_create_achievements.rb b/db/migrate/20221202144210_create_achievements.rb
new file mode 100644
index 00000000000..30b2fd528ee
--- /dev/null
+++ b/db/migrate/20221202144210_create_achievements.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+class CreateAchievements < Gitlab::Database::Migration[2.1]
+ enable_lock_retries!
+
+ def up
+ create_table :achievements do |t|
+ t.references :namespace,
+ null: false,
+ index: false,
+ foreign_key: { on_delete: :cascade }
+ t.timestamps_with_timezone null: false
+ t.text :name, null: false, limit: 255
+ t.text :avatar, limit: 255
+ t.text :description, limit: 1024
+ t.boolean :revokeable, default: false, null: false
+ t.index 'namespace_id, LOWER(name)', unique: true
+ end
+ end
+
+ def down
+ drop_table :achievements
+ end
+end
diff --git a/db/migrate/20221202202351_remove_index_i_ci_job_token_project_scope_links_on_source_and_target_project.rb b/db/migrate/20221202202351_remove_index_i_ci_job_token_project_scope_links_on_source_and_target_project.rb
new file mode 100644
index 00000000000..81a636739b4
--- /dev/null
+++ b/db/migrate/20221202202351_remove_index_i_ci_job_token_project_scope_links_on_source_and_target_project.rb
@@ -0,0 +1,23 @@
+# frozen_string_literal: true
+class RemoveIndexICiJobTokenProjectScopeLinksOnSourceAndTargetProject < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ TABLE_NAME = 'ci_job_token_project_scope_links'
+ OLD_INDEX_NAME = 'i_ci_job_token_project_scope_links_on_source_and_target_project'
+ NEW_INDEX_NAME = 'ci_job_token_scope_links_source_and_target_project_direction'
+ NEW_INDEX_COL = %w[source_project_id target_project_id direction]
+
+ def up
+ add_concurrent_index(
+ TABLE_NAME,
+ NEW_INDEX_COL,
+ name: NEW_INDEX_NAME,
+ unique: true
+ )
+ remove_concurrent_index_by_name(TABLE_NAME, OLD_INDEX_NAME)
+ end
+
+ def down
+ # noop: as we can have duplicate records once the unique index is removed
+ end
+end
diff --git a/db/migrate/20221205061134_add_disable_pats_to_application_settings.rb b/db/migrate/20221205061134_add_disable_pats_to_application_settings.rb
new file mode 100644
index 00000000000..0f2438f3e78
--- /dev/null
+++ b/db/migrate/20221205061134_add_disable_pats_to_application_settings.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class AddDisablePatsToApplicationSettings < Gitlab::Database::Migration[2.0]
+ def change
+ add_column(:application_settings, :disable_personal_access_tokens, :boolean, default: false, null: false)
+ end
+end
diff --git a/db/migrate/20221206163420_add_use_new_navigation_to_user_preferences.rb b/db/migrate/20221206163420_add_use_new_navigation_to_user_preferences.rb
new file mode 100644
index 00000000000..72531e8c067
--- /dev/null
+++ b/db/migrate/20221206163420_add_use_new_navigation_to_user_preferences.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class AddUseNewNavigationToUserPreferences < Gitlab::Database::Migration[2.0]
+ enable_lock_retries!
+
+ def change
+ add_column :user_preferences, :use_new_navigation, :boolean, default: nil, null: true
+ end
+end
diff --git a/db/migrate/20221206211814_add_authorized_scopes_to_slack_integration.rb b/db/migrate/20221206211814_add_authorized_scopes_to_slack_integration.rb
new file mode 100644
index 00000000000..40abf087dfe
--- /dev/null
+++ b/db/migrate/20221206211814_add_authorized_scopes_to_slack_integration.rb
@@ -0,0 +1,38 @@
+# frozen_string_literal: true
+
+class AddAuthorizedScopesToSlackIntegration < Gitlab::Database::Migration[2.1]
+ def up
+ create_table :slack_api_scopes do |t|
+ t.text :name, null: false, limit: 100
+
+ t.index :name, name: 'index_slack_api_scopes_on_name', unique: true
+ end
+
+ create_table :slack_integrations_scopes do |t|
+ references :slack_api_scope,
+ null: false,
+ index: false, # See composite index
+ foreign_key: {
+ to_table: :slack_api_scopes,
+ on_delete: :cascade
+ }
+
+ references :slack_integration,
+ null: false,
+ index: false, # see composite index
+ foreign_key: {
+ to_table: :slack_integrations,
+ on_delete: :cascade
+ }
+
+ t.index [:slack_integration_id, :slack_api_scope_id],
+ unique: true,
+ name: 'index_slack_api_scopes_on_name_and_integration'
+ end
+ end
+
+ def down
+ drop_table :slack_integrations_scopes, if_exists: true
+ drop_table :slack_api_scopes, if_exists: true
+ end
+end
diff --git a/db/migrate/20221206222032_add_read_code_to_member_roles.rb b/db/migrate/20221206222032_add_read_code_to_member_roles.rb
new file mode 100644
index 00000000000..dc62672ccd0
--- /dev/null
+++ b/db/migrate/20221206222032_add_read_code_to_member_roles.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class AddReadCodeToMemberRoles < Gitlab::Database::Migration[2.1]
+ def change
+ add_column :member_roles, :read_code, :boolean, default: false
+ end
+end
diff --git a/db/migrate/20221206235208_add_max_terraform_state_size_bytes_to_application_settings.rb b/db/migrate/20221206235208_add_max_terraform_state_size_bytes_to_application_settings.rb
new file mode 100644
index 00000000000..28bfce8ac0b
--- /dev/null
+++ b/db/migrate/20221206235208_add_max_terraform_state_size_bytes_to_application_settings.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+class AddMaxTerraformStateSizeBytesToApplicationSettings < Gitlab::Database::Migration[2.1]
+ disable_ddl_transaction!
+
+ CONSTRAINT_NAME = "app_settings_max_terraform_state_size_bytes_check"
+
+ def up
+ add_column(
+ :application_settings,
+ :max_terraform_state_size_bytes,
+ :integer,
+ null: false,
+ default: 0,
+ if_not_exists: true
+ )
+
+ add_check_constraint :application_settings, "max_terraform_state_size_bytes >= 0", CONSTRAINT_NAME
+ end
+
+ def down
+ remove_column :application_settings, :max_terraform_state_size_bytes, if_exists: true
+ end
+end
diff --git a/db/migrate/20221207140259_add_bulk_import_enabled_to_application_settings.rb b/db/migrate/20221207140259_add_bulk_import_enabled_to_application_settings.rb
new file mode 100644
index 00000000000..c6702559da1
--- /dev/null
+++ b/db/migrate/20221207140259_add_bulk_import_enabled_to_application_settings.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class AddBulkImportEnabledToApplicationSettings < Gitlab::Database::Migration[2.1]
+ def change
+ add_column :application_settings, :bulk_import_enabled, :boolean, default: false, null: false
+ end
+end
diff --git a/db/migrate/20221207220120_create_dast_scanner_profiles_runner_tags.rb b/db/migrate/20221207220120_create_dast_scanner_profiles_runner_tags.rb
new file mode 100644
index 00000000000..f07cebb6b2c
--- /dev/null
+++ b/db/migrate/20221207220120_create_dast_scanner_profiles_runner_tags.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+class CreateDastScannerProfilesRunnerTags < Gitlab::Database::Migration[2.1]
+ def up
+ create_table :dast_scanner_profiles_tags do |t|
+ t.references :dast_scanner_profile, null: false, foreign_key: { on_delete: :cascade },
+ index: { name: 'i_dast_scanner_profiles_tags_on_scanner_profiles_id' }
+
+ t.bigint :tag_id, null: false
+
+ t.index :tag_id, name: :index_dast_scanner_profiles_tags_on_tag_id
+ end
+ end
+
+ def down
+ drop_table :dast_scanner_profiles_tags
+ end
+end
diff --git a/db/migrate/20221208122921_remove_constraints_from_ci_resources_for_partition_id.rb b/db/migrate/20221208122921_remove_constraints_from_ci_resources_for_partition_id.rb
new file mode 100644
index 00000000000..ffdd744b05c
--- /dev/null
+++ b/db/migrate/20221208122921_remove_constraints_from_ci_resources_for_partition_id.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class RemoveConstraintsFromCiResourcesForPartitionId < Gitlab::Database::Migration[2.1]
+ enable_lock_retries!
+
+ def up
+ change_column_null :ci_resources, :partition_id, true
+ end
+
+ def down
+ # no-op
+ # Adding back the not null constraint requires a long exclusive lock.
+ # Also depending on when it gets called, it might not even be possible to
+ # execute because the application could have inserted null values.
+ end
+end
diff --git a/db/migrate/20221209110934_update_import_sources_on_application_settings.rb b/db/migrate/20221209110934_update_import_sources_on_application_settings.rb
new file mode 100644
index 00000000000..59955d30544
--- /dev/null
+++ b/db/migrate/20221209110934_update_import_sources_on_application_settings.rb
@@ -0,0 +1,28 @@
+# frozen_string_literal: true
+
+class UpdateImportSourcesOnApplicationSettings < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ class ApplicationSetting < MigrationRecord
+ end
+
+ def up
+ return if import_sources.empty?
+
+ new_sources = import_sources - ['google_code']
+ ApplicationSetting.update_all(import_sources: new_sources.to_yaml)
+ end
+
+ def down
+ ## a reversion is not needed as google_code is no longer a supported import source
+ # and attempting to save it as one will result in a ActiveRecord error.
+ end
+
+ def import_sources
+ ## the last ApplicationSetting record is used to determine application settings
+ import_sources = ApplicationSetting.last&.import_sources
+ import_sources.nil? ? [] : YAML.safe_load(import_sources)
+ end
+end
diff --git a/db/migrate/20221209110935_fix_update_import_sources_on_application_settings.rb b/db/migrate/20221209110935_fix_update_import_sources_on_application_settings.rb
new file mode 100644
index 00000000000..d3123113e82
--- /dev/null
+++ b/db/migrate/20221209110935_fix_update_import_sources_on_application_settings.rb
@@ -0,0 +1,25 @@
+# frozen_string_literal: true
+
+# This fixes 20221209110934_update_import_sources_on_application_settings.rb, which
+# previously serialized a YAML column into a string.
+class FixUpdateImportSourcesOnApplicationSettings < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ class ApplicationSetting < MigrationRecord
+ end
+
+ def up
+ sources = ApplicationSetting.last&.import_sources
+
+ return unless sources.is_a?(String)
+ return if sources.start_with?('---')
+
+ sources = YAML.safe_load(sources)
+
+ ApplicationSetting.update_all(import_sources: sources.to_yaml)
+ end
+
+ def down; end
+end
diff --git a/db/migrate/20221213184314_change_enabled_default_in_dependency_proxy_group_settings.rb b/db/migrate/20221213184314_change_enabled_default_in_dependency_proxy_group_settings.rb
new file mode 100644
index 00000000000..6cddcb80949
--- /dev/null
+++ b/db/migrate/20221213184314_change_enabled_default_in_dependency_proxy_group_settings.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class ChangeEnabledDefaultInDependencyProxyGroupSettings < Gitlab::Database::Migration[2.0]
+ def change
+ change_column_default :dependency_proxy_group_settings, :enabled, from: false, to: true
+ end
+end
diff --git a/db/post_migrate/20210731132939_backfill_stage_event_hash.rb b/db/post_migrate/20210731132939_backfill_stage_event_hash.rb
index 2c4dc904387..e4966cc0e6d 100644
--- a/db/post_migrate/20210731132939_backfill_stage_event_hash.rb
+++ b/db/post_migrate/20210731132939_backfill_stage_event_hash.rb
@@ -75,7 +75,7 @@ class BackfillStageEventHash < ActiveRecord::Migration[6.1]
records = delete_invalid_records(records)
next if records.empty?
- hashes_by_stage = records.to_h { |stage| [stage, calculate_stage_events_hash(stage)] }
+ hashes_by_stage = records.index_with { |stage| calculate_stage_events_hash(stage) }
hashes = hashes_by_stage.values.uniq
StageEventHash.insert_all(hashes.map { |hash| { hash_sha256: hash } })
diff --git a/db/post_migrate/20220202105733_delete_service_template_records.rb b/db/post_migrate/20220202105733_delete_service_template_records.rb
index b70bacc83aa..e1697f23588 100644
--- a/db/post_migrate/20220202105733_delete_service_template_records.rb
+++ b/db/post_migrate/20220202105733_delete_service_template_records.rb
@@ -5,6 +5,7 @@ class DeleteServiceTemplateRecords < Gitlab::Database::Migration[1.0]
# Disable single-table inheritance
self.inheritance_column = :_type_disabled
end
+
def up
Integration.where(template: true).delete_all
end
diff --git a/db/post_migrate/20220420214703_schedule_backfill_draft_status_on_merge_requests_corrected_regex.rb b/db/post_migrate/20220420214703_schedule_backfill_draft_status_on_merge_requests_corrected_regex.rb
index 1001aca583b..9640d5d2516 100644
--- a/db/post_migrate/20220420214703_schedule_backfill_draft_status_on_merge_requests_corrected_regex.rb
+++ b/db/post_migrate/20220420214703_schedule_backfill_draft_status_on_merge_requests_corrected_regex.rb
@@ -16,7 +16,7 @@ class ScheduleBackfillDraftStatusOnMergeRequestsCorrectedRegex < Gitlab::Databas
eligible_mrs = MergeRequest.where(state_id: 1)
.where(draft: false)
- .where("title ~* ?", "#{CORRECTED_REGEXP_STR}")
+ .where("title ~* ?", CORRECTED_REGEXP_STR)
queue_background_migration_jobs_by_range_at_intervals(
eligible_mrs,
diff --git a/db/post_migrate/20220920180451_schedule_vulnerabilities_feedback_migration.rb b/db/post_migrate/20220920180451_schedule_vulnerabilities_feedback_migration.rb
new file mode 100644
index 00000000000..35f7a5dcdb6
--- /dev/null
+++ b/db/post_migrate/20220920180451_schedule_vulnerabilities_feedback_migration.rb
@@ -0,0 +1,36 @@
+# frozen_string_literal: true
+
+class ScheduleVulnerabilitiesFeedbackMigration < Gitlab::Database::Migration[2.0]
+ MIGRATION = 'MigrateVulnerabilitiesFeedbackToVulnerabilitiesStateTransition'
+ TABLE_NAME = :vulnerability_feedback
+ BATCH_COLUMN = :id
+ DELAY_INTERVAL = 5.minutes
+ BATCH_SIZE = 250
+ MAX_BATCH_SIZE = 250
+ SUB_BATCH_SIZE = 50
+
+ disable_ddl_transaction!
+
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ def up
+ queue_batched_background_migration(
+ MIGRATION,
+ TABLE_NAME,
+ BATCH_COLUMN,
+ job_interval: DELAY_INTERVAL,
+ batch_size: BATCH_SIZE,
+ max_batch_size: MAX_BATCH_SIZE,
+ sub_batch_size: SUB_BATCH_SIZE
+ )
+ end
+
+ def down
+ delete_batched_background_migration(
+ MIGRATION,
+ TABLE_NAME,
+ BATCH_COLUMN,
+ []
+ )
+ end
+end
diff --git a/db/post_migrate/20221018095434_schedule_disable_legacy_open_source_license_for_projects_less_than_five_mb.rb b/db/post_migrate/20221018095434_schedule_disable_legacy_open_source_license_for_projects_less_than_five_mb.rb
new file mode 100644
index 00000000000..8b3f0668200
--- /dev/null
+++ b/db/post_migrate/20221018095434_schedule_disable_legacy_open_source_license_for_projects_less_than_five_mb.rb
@@ -0,0 +1,33 @@
+# frozen_string_literal: true
+
+class ScheduleDisableLegacyOpenSourceLicenseForProjectsLessThanFiveMb < Gitlab::Database::Migration[2.0]
+ MIGRATION = 'DisableLegacyOpenSourceLicenseForProjectsLessThanFiveMb'
+ INTERVAL = 2.minutes
+ BATCH_SIZE = 4_000
+ MAX_BATCH_SIZE = 50_000
+ SUB_BATCH_SIZE = 250
+
+ disable_ddl_transaction!
+
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ def up
+ return unless Gitlab.com?
+
+ queue_batched_background_migration(
+ MIGRATION,
+ :project_settings,
+ :project_id,
+ job_interval: INTERVAL,
+ batch_size: BATCH_SIZE,
+ max_batch_size: MAX_BATCH_SIZE,
+ sub_batch_size: SUB_BATCH_SIZE
+ )
+ end
+
+ def down
+ return unless Gitlab.com?
+
+ delete_batched_background_migration(MIGRATION, :project_settings, :project_id, [])
+ end
+end
diff --git a/db/post_migrate/20221104115712_backfill_project_statistics_storage_size_without_uploads_size.rb b/db/post_migrate/20221104115712_backfill_project_statistics_storage_size_without_uploads_size.rb
new file mode 100644
index 00000000000..9dd64a3e7b5
--- /dev/null
+++ b/db/post_migrate/20221104115712_backfill_project_statistics_storage_size_without_uploads_size.rb
@@ -0,0 +1,31 @@
+# frozen_string_literal: true
+
+class BackfillProjectStatisticsStorageSizeWithoutUploadsSize < Gitlab::Database::Migration[2.0]
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ DELAY_INTERVAL = 2.minutes.to_i
+ BATCH_SIZE = 500
+ MIGRATION_CLASS = 'BackfillProjectStatisticsStorageSizeWithoutUploadsSize'
+ SUB_BATCH_SIZE = 100
+
+ disable_ddl_transaction!
+
+ def up
+ return unless Gitlab.dev_or_test_env? || Gitlab.org_or_com?
+
+ queue_batched_background_migration(
+ MIGRATION_CLASS,
+ :project_statistics,
+ :project_id,
+ job_interval: DELAY_INTERVAL,
+ batch_size: BATCH_SIZE,
+ sub_batch_size: SUB_BATCH_SIZE
+ )
+ end
+
+ def down
+ return unless Gitlab.dev_or_test_env? || Gitlab.org_or_com?
+
+ delete_batched_background_migration(MIGRATION_CLASS, :project_statistics, :project_id, [])
+ end
+end
diff --git a/db/post_migrate/20221104141647_add_index_for_non_public_top_level_groups_to_namespaces.rb b/db/post_migrate/20221104141647_add_index_for_non_public_top_level_groups_to_namespaces.rb
new file mode 100644
index 00000000000..ade35a39737
--- /dev/null
+++ b/db/post_migrate/20221104141647_add_index_for_non_public_top_level_groups_to_namespaces.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddIndexForNonPublicTopLevelGroupsToNamespaces < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ TABLE_NAME = 'namespaces'
+ INDEX_NAME = 'index_namespaces_on_type_and_visibility_and_parent_id'
+ CONDITIONS = "(type = 'Group' AND parent_id IS NULL AND visibility_level != 20)"
+
+ def up
+ add_concurrent_index TABLE_NAME, :id, name: INDEX_NAME, where: CONDITIONS
+ end
+
+ def down
+ remove_concurrent_index_by_name TABLE_NAME, INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221109160052_add_default_for_approval_project_rules_scanners.rb b/db/post_migrate/20221109160052_add_default_for_approval_project_rules_scanners.rb
new file mode 100644
index 00000000000..a527bf4b2ef
--- /dev/null
+++ b/db/post_migrate/20221109160052_add_default_for_approval_project_rules_scanners.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class AddDefaultForApprovalProjectRulesScanners < Gitlab::Database::Migration[2.0]
+ def up
+ change_column_default :approval_project_rules, :scanners, from: nil, to: []
+ end
+
+ def down
+ change_column_default :approval_project_rules, :scanners, from: [], to: nil
+ end
+end
diff --git a/db/post_migrate/20221110152133_delete_orphans_approval_rules.rb b/db/post_migrate/20221110152133_delete_orphans_approval_rules.rb
new file mode 100644
index 00000000000..55b6a10d786
--- /dev/null
+++ b/db/post_migrate/20221110152133_delete_orphans_approval_rules.rb
@@ -0,0 +1,36 @@
+# frozen_string_literal: true
+
+class DeleteOrphansApprovalRules < Gitlab::Database::Migration[2.0]
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ BATCH_SIZE = 1000
+ SUB_BATCH_SIZE = 500
+ MERGE_REQUEST_MIGRATION = 'DeleteOrphansApprovalMergeRequestRules'
+ PROJECT_MIGRATION = 'DeleteOrphansApprovalProjectRules'
+ INTERVAL = 2.minutes
+
+ def up
+ queue_batched_background_migration(
+ PROJECT_MIGRATION,
+ :approval_project_rules,
+ :id,
+ job_interval: INTERVAL,
+ batch_size: BATCH_SIZE,
+ sub_batch_size: SUB_BATCH_SIZE
+ )
+
+ queue_batched_background_migration(
+ MERGE_REQUEST_MIGRATION,
+ :approval_merge_request_rules,
+ :id,
+ job_interval: INTERVAL,
+ batch_size: BATCH_SIZE,
+ sub_batch_size: SUB_BATCH_SIZE
+ )
+ end
+
+ def down
+ delete_batched_background_migration(PROJECT_MIGRATION, :approval_project_rules, :id, [])
+ delete_batched_background_migration(MERGE_REQUEST_MIGRATION, :approval_merge_request_rules, :id, [])
+ end
+end
diff --git a/db/post_migrate/20221110190340_add_partial_legacy_open_source_license_available_project_id_index.rb b/db/post_migrate/20221110190340_add_partial_legacy_open_source_license_available_project_id_index.rb
new file mode 100644
index 00000000000..9931b25eb3c
--- /dev/null
+++ b/db/post_migrate/20221110190340_add_partial_legacy_open_source_license_available_project_id_index.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+class AddPartialLegacyOpenSourceLicenseAvailableProjectIdIndex < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_project_settings_on_legacy_os_license_project_id'
+
+ def up
+ add_concurrent_index :project_settings,
+ :project_id,
+ where: "legacy_open_source_license_available = TRUE",
+ name: INDEX_NAME
+ end
+
+ def down
+ remove_concurrent_index_by_name(:project_settings, INDEX_NAME)
+ end
+end
diff --git a/db/post_migrate/20221114142044_delete_experiments_foreign_keys.rb b/db/post_migrate/20221114142044_delete_experiments_foreign_keys.rb
new file mode 100644
index 00000000000..d44b7a6eb51
--- /dev/null
+++ b/db/post_migrate/20221114142044_delete_experiments_foreign_keys.rb
@@ -0,0 +1,34 @@
+# frozen_string_literal: true
+
+class DeleteExperimentsForeignKeys < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ with_lock_retries do
+ remove_foreign_key_if_exists :experiment_subjects, :users, name: 'fk_dfc3e211d4'
+ end
+
+ with_lock_retries do
+ remove_foreign_key_if_exists :experiment_subjects, :experiments, name: 'fk_rails_ede5754774'
+ end
+
+ with_lock_retries do
+ remove_foreign_key_if_exists :experiment_subjects, :projects, name: 'fk_ccc28f8ceb'
+ end
+
+ with_lock_retries do
+ remove_foreign_key_if_exists :experiment_subjects, :namespaces, name: 'fk_842649f2f5'
+ end
+ end
+
+ def down
+ add_concurrent_foreign_key :experiment_subjects,
+ :users, column: :user_id, name: 'fk_dfc3e211d4', on_delete: :cascade
+ add_concurrent_foreign_key :experiment_subjects,
+ :experiments, column: :experiment_id, name: 'fk_rails_ede5754774', on_delete: :cascade
+ add_concurrent_foreign_key :experiment_subjects,
+ :projects, column: :project_id, name: 'fk_ccc28f8ceb', on_delete: :cascade
+ add_concurrent_foreign_key :experiment_subjects,
+ :namespaces, column: :namespace_id, name: 'fk_842649f2f5', on_delete: :cascade
+ end
+end
diff --git a/db/post_migrate/20221114142602_drop_experiment_subjects_table.rb b/db/post_migrate/20221114142602_drop_experiment_subjects_table.rb
new file mode 100644
index 00000000000..371f214de6d
--- /dev/null
+++ b/db/post_migrate/20221114142602_drop_experiment_subjects_table.rb
@@ -0,0 +1,32 @@
+# frozen_string_literal: true
+
+class DropExperimentSubjectsTable < Gitlab::Database::Migration[2.0]
+ def up
+ drop_table :experiment_subjects, if_exists: true
+ end
+
+ def down
+ unless table_exists?(:experiment_subjects)
+ create_table :experiment_subjects do |t| # rubocop:disable Migration/SchemaAdditionMethodsNoPost
+ t.bigint :experiment_id, null: false
+ t.bigint :user_id
+ t.bigint :project_id
+ t.integer :variant, limit: 2, null: false, default: 0
+ t.timestamps_with_timezone null: false
+ t.datetime_with_timezone :converted_at
+ t.jsonb :context, null: false, default: {}
+ t.bigint :namespace_id
+
+ t.index :experiment_id
+ t.index :namespace_id
+ t.index :project_id
+ t.index :user_id
+ end
+ end
+
+ # Require exactly one of user_id, group_id, or project_id to be NOT NULL
+ execute <<-SQL
+ ALTER TABLE experiment_subjects ADD CONSTRAINT check_f6411bc4b5 CHECK (num_nonnulls(user_id, namespace_id, project_id) = 1);
+ SQL
+ end
+end
diff --git a/db/post_migrate/20221114142616_drop_experiments_table.rb b/db/post_migrate/20221114142616_drop_experiments_table.rb
new file mode 100644
index 00000000000..da6c1122494
--- /dev/null
+++ b/db/post_migrate/20221114142616_drop_experiments_table.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+class DropExperimentsTable < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ drop_table :experiments, if_exists: true
+ end
+
+ def down
+ unless table_exists?(:experiments)
+ create_table :experiments do |t| # rubocop:disable Migration/SchemaAdditionMethodsNoPost
+ t.text :name, null: false
+
+ t.index :name, unique: true
+ end
+ end
+
+ add_text_limit :experiments, :name, 255
+ end
+end
diff --git a/db/post_migrate/20221115120602_add_index_for_issues_health_status_ordering.rb b/db/post_migrate/20221115120602_add_index_for_issues_health_status_ordering.rb
new file mode 100644
index 00000000000..d7d861387fd
--- /dev/null
+++ b/db/post_migrate/20221115120602_add_index_for_issues_health_status_ordering.rb
@@ -0,0 +1,23 @@
+# frozen_string_literal: true
+
+class AddIndexForIssuesHealthStatusOrdering < Gitlab::Database::Migration[2.0]
+ INDEX_NAME_DESC = 'index_on_issues_health_status_desc_order'
+ INDEX_NAME_ASC = 'index_on_issues_health_status_asc_order'
+
+ def up
+ prepare_async_index :issues,
+ [:project_id, :health_status, :id, :state_id, :issue_type],
+ order: { health_status: 'DESC NULLS LAST', id: :desc },
+ name: INDEX_NAME_DESC
+
+ prepare_async_index :issues,
+ [:project_id, :health_status, :id, :state_id, :issue_type],
+ order: { health_status: 'ASC NULLS LAST', id: :desc },
+ name: INDEX_NAME_ASC
+ end
+
+ def down
+ unprepare_async_index :issues, INDEX_NAME_DESC
+ unprepare_async_index :issues, INDEX_NAME_ASC
+ end
+end
diff --git a/db/post_migrate/20221115173607_ensure_work_item_type_backfill_migration_finished.rb b/db/post_migrate/20221115173607_ensure_work_item_type_backfill_migration_finished.rb
new file mode 100644
index 00000000000..2cec1919e82
--- /dev/null
+++ b/db/post_migrate/20221115173607_ensure_work_item_type_backfill_migration_finished.rb
@@ -0,0 +1,42 @@
+# frozen_string_literal: true
+
+class EnsureWorkItemTypeBackfillMigrationFinished < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ MIGRATION = 'BackfillWorkItemTypeIdForIssues'
+
+ class MigrationWorkItemType < MigrationRecord
+ self.table_name = 'work_item_types'
+
+ def self.id_by_type(types)
+ where(namespace_id: nil, base_type: types).pluck(:base_type, :id).to_h
+ end
+ end
+
+ def up
+ # more types were added to the types table after the backfill run
+ # so we cannot fetch all from the DB but only those that were backfilled
+ relevant_types = {
+ issue: 0,
+ incident: 1,
+ test_case: 2,
+ requirement: 3,
+ task: 4
+ }
+
+ MigrationWorkItemType.id_by_type(relevant_types.values).each do |base_type, type_id|
+ ensure_batched_background_migration_is_finished(
+ job_class_name: MIGRATION,
+ table_name: :issues,
+ column_name: :id,
+ job_arguments: [base_type, type_id]
+ )
+ end
+ end
+
+ def down
+ # noop
+ end
+end
diff --git a/db/post_migrate/20221115184525_remove_namespaces_tmp_project_id_column.rb b/db/post_migrate/20221115184525_remove_namespaces_tmp_project_id_column.rb
new file mode 100644
index 00000000000..01424f8113f
--- /dev/null
+++ b/db/post_migrate/20221115184525_remove_namespaces_tmp_project_id_column.rb
@@ -0,0 +1,27 @@
+# frozen_string_literal: true
+
+class RemoveNamespacesTmpProjectIdColumn < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'tmp_index_on_tmp_project_id_on_namespaces'
+
+ def up
+ with_lock_retries do
+ remove_column :namespaces, :tmp_project_id if column_exists?(:namespaces, :tmp_project_id)
+ end
+ end
+
+ def down
+ unless column_exists?(:namespaces, :tmp_project_id)
+ with_lock_retries do
+ # rubocop:disable Migration/SchemaAdditionMethodsNoPost, Migration/AddColumnsToWideTables
+ add_column :namespaces, :tmp_project_id, :integer
+ # rubocop:enable Migration/SchemaAdditionMethodsNoPost, Migration/AddColumnsToWideTables
+ end
+ end
+
+ add_concurrent_foreign_key :namespaces, :projects, column: :tmp_project_id
+
+ add_concurrent_index :namespaces, :tmp_project_id, name: INDEX_NAME, unique: true
+ end
+end
diff --git a/db/post_migrate/20221116105434_remove_index_project_settings_on_legacy_open_source_license_available.rb b/db/post_migrate/20221116105434_remove_index_project_settings_on_legacy_open_source_license_available.rb
new file mode 100644
index 00000000000..363c9b6e572
--- /dev/null
+++ b/db/post_migrate/20221116105434_remove_index_project_settings_on_legacy_open_source_license_available.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+class RemoveIndexProjectSettingsOnLegacyOpenSourceLicenseAvailable < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_project_settings_on_legacy_open_source_license_available'
+
+ def up
+ remove_concurrent_index_by_name(:project_settings, INDEX_NAME)
+ end
+
+ def down
+ add_concurrent_index :project_settings,
+ %i[legacy_open_source_license_available],
+ where: "legacy_open_source_license_available = TRUE",
+ name: INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221116143854_add_okr_hierarchy_restrictions.rb b/db/post_migrate/20221116143854_add_okr_hierarchy_restrictions.rb
new file mode 100644
index 00000000000..658ce0287f8
--- /dev/null
+++ b/db/post_migrate/20221116143854_add_okr_hierarchy_restrictions.rb
@@ -0,0 +1,48 @@
+# frozen_string_literal: true
+
+class AddOkrHierarchyRestrictions < Gitlab::Database::Migration[2.0]
+ class WorkItemType < MigrationRecord
+ self.table_name = 'work_item_types'
+ end
+
+ class HierarchyRestriction < MigrationRecord
+ self.table_name = 'work_item_hierarchy_restrictions'
+ end
+
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+ disable_ddl_transaction!
+
+ def up
+ objective = WorkItemType.find_by_name_and_namespace_id('Objective', nil)
+ key_result = WorkItemType.find_by_name_and_namespace_id('Key Result', nil)
+ issue = WorkItemType.find_by_name_and_namespace_id('Issue', nil)
+ task = WorkItemType.find_by_name_and_namespace_id('Task', nil)
+ incident = WorkItemType.find_by_name_and_namespace_id('Incident', nil)
+
+ # work item default types should be filled, if this is not the case
+ # then restrictions will be created together with work item types
+ unless objective && key_result && issue && task && incident
+ Gitlab::AppLogger.warn('default types are missing, not adding restrictions')
+
+ return
+ end
+
+ restrictions = [
+ { parent_type_id: objective.id, child_type_id: objective.id, maximum_depth: 9 },
+ { parent_type_id: objective.id, child_type_id: key_result.id, maximum_depth: 1 },
+ { parent_type_id: issue.id, child_type_id: task.id, maximum_depth: 1 },
+ { parent_type_id: incident.id, child_type_id: task.id, maximum_depth: 1 }
+ ]
+
+ HierarchyRestriction.upsert_all(
+ restrictions,
+ unique_by: :index_work_item_hierarchy_restrictions_on_parent_and_child
+ )
+ end
+
+ def down
+ # so far restrictions table was empty so we can delete all records when
+ # migrating down
+ HierarchyRestriction.delete_all
+ end
+end
diff --git a/db/post_migrate/20221117103015_add_async_index_author_id_created_at_on_merge_requests.rb b/db/post_migrate/20221117103015_add_async_index_author_id_created_at_on_merge_requests.rb
new file mode 100644
index 00000000000..a45fdcccc27
--- /dev/null
+++ b/db/post_migrate/20221117103015_add_async_index_author_id_created_at_on_merge_requests.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class AddAsyncIndexAuthorIdCreatedAtOnMergeRequests < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = 'index_merge_requests_on_author_id_and_created_at'
+
+ def up
+ prepare_async_index :merge_requests, %i[author_id created_at], name: INDEX_NAME
+ end
+
+ def down
+ unprepare_async_index_by_name :merge_requests, INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221117135032_remove_clusters_applications_job_instances.rb b/db/post_migrate/20221117135032_remove_clusters_applications_job_instances.rb
new file mode 100644
index 00000000000..1bc80271ff7
--- /dev/null
+++ b/db/post_migrate/20221117135032_remove_clusters_applications_job_instances.rb
@@ -0,0 +1,26 @@
+# frozen_string_literal: true
+
+class RemoveClustersApplicationsJobInstances < Gitlab::Database::Migration[2.0]
+ DEPRECATED_JOB_CLASSES = %w[
+ ClusterConfigureIstioWorker
+ ClusterInstallAppWorker
+ ClusterPatchAppWorker
+ ClusterUpdateAppWorker
+ ClusterUpgradeAppWorker
+ ClusterWaitForAppInstallationWorker
+ ClusterWaitForAppUpdateWorker
+ ClusterWaitForIngressIpAddressWorker
+ ]
+
+ def up
+ sidekiq_remove_jobs(job_klasses: DEPRECATED_JOB_CLASSES)
+ end
+
+ def down
+ # no-op Why: This migration removes any instances of deprecated job classes
+ # from expected queues via the sidekiq_queue_length method. Once the job
+ # class instances are removed, they cannot be added back. These job classes
+ # are deprecated and previous MRs have already no-op'd their perform
+ # methods to further increase confidence that removal is OK.
+ end
+end
diff --git a/db/post_migrate/20221117153015_add_index_merge_request_id_created_at_on_scan_finding_approval_merge_request_rules.rb b/db/post_migrate/20221117153015_add_index_merge_request_id_created_at_on_scan_finding_approval_merge_request_rules.rb
new file mode 100644
index 00000000000..ecd3a8be02e
--- /dev/null
+++ b/db/post_migrate/20221117153015_add_index_merge_request_id_created_at_on_scan_finding_approval_merge_request_rules.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddIndexMergeRequestIdCreatedAtOnScanFindingApprovalMergeRequestRules < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = 'scan_finding_approval_mr_rule_index_mr_id_and_created_at'
+ SCAN_FINDING_REPORT_TYPE = 4
+
+ disable_ddl_transaction!
+
+ def up
+ add_concurrent_index :approval_merge_request_rules, %i[merge_request_id created_at],
+ where: "report_type = #{SCAN_FINDING_REPORT_TYPE}", name: INDEX_NAME
+ end
+
+ def down
+ remove_concurrent_index_by_name :approval_merge_request_rules, INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221118103152_finalize_issues_namespace_id_backfilling.rb b/db/post_migrate/20221118103152_finalize_issues_namespace_id_backfilling.rb
new file mode 100644
index 00000000000..c0a95b3e348
--- /dev/null
+++ b/db/post_migrate/20221118103152_finalize_issues_namespace_id_backfilling.rb
@@ -0,0 +1,22 @@
+# frozen_string_literal: true
+
+class FinalizeIssuesNamespaceIdBackfilling < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ MIGRATION = 'BackfillProjectNamespaceOnIssues'
+
+ def up
+ ensure_batched_background_migration_is_finished(
+ job_class_name: MIGRATION,
+ table_name: :issues,
+ column_name: :id,
+ job_arguments: []
+ )
+ end
+
+ def down
+ # noop
+ end
+end
diff --git a/db/post_migrate/20221118103352_add_cascade_delete_fk_on_issues_namespace_id.rb b/db/post_migrate/20221118103352_add_cascade_delete_fk_on_issues_namespace_id.rb
new file mode 100644
index 00000000000..094ac3abe0f
--- /dev/null
+++ b/db/post_migrate/20221118103352_add_cascade_delete_fk_on_issues_namespace_id.rb
@@ -0,0 +1,41 @@
+# frozen_string_literal: true
+
+class AddCascadeDeleteFkOnIssuesNamespaceId < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ TARGET_COLUMN = :namespace_id
+
+ def up
+ # add the new FK before removing the old one
+ add_concurrent_foreign_key(
+ :issues,
+ :namespaces,
+ column: TARGET_COLUMN,
+ name: fk_name("#{TARGET_COLUMN}_new"),
+ on_delete: :cascade
+ )
+
+ with_lock_retries do
+ remove_foreign_key_if_exists(:issues, column: TARGET_COLUMN, name: fk_name(TARGET_COLUMN))
+ end
+ end
+
+ def down
+ add_concurrent_foreign_key(
+ :issues,
+ :namespaces,
+ column: TARGET_COLUMN,
+ name: fk_name(TARGET_COLUMN),
+ on_delete: :nullify
+ )
+
+ with_lock_retries do
+ remove_foreign_key_if_exists(:issues, column: TARGET_COLUMN, name: fk_name("#{TARGET_COLUMN}_new"))
+ end
+ end
+
+ def fk_name(column_name)
+ # generate a FK name
+ concurrent_foreign_key_name(:issues, column_name)
+ end
+end
diff --git a/db/post_migrate/20221118103752_add_not_null_contraint_to_issues_namespace_id.rb b/db/post_migrate/20221118103752_add_not_null_contraint_to_issues_namespace_id.rb
new file mode 100644
index 00000000000..22a69c2bac0
--- /dev/null
+++ b/db/post_migrate/20221118103752_add_not_null_contraint_to_issues_namespace_id.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class AddNotNullContraintToIssuesNamespaceId < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ add_not_null_constraint :issues, :namespace_id, validate: false
+ end
+
+ def down
+ remove_not_null_constraint :issues, :namespace_id
+ end
+end
diff --git a/db/post_migrate/20221118104752_validate_not_null_contraint_to_issues_namespace_id.rb b/db/post_migrate/20221118104752_validate_not_null_contraint_to_issues_namespace_id.rb
new file mode 100644
index 00000000000..f7aad9d3606
--- /dev/null
+++ b/db/post_migrate/20221118104752_validate_not_null_contraint_to_issues_namespace_id.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class ValidateNotNullContraintToIssuesNamespaceId < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ validate_not_null_constraint :issues, :namespace_id
+ end
+
+ def down
+ # no-op
+ end
+end
diff --git a/db/post_migrate/20221121000127_index_security_scans_on_created_at_and_id_for_non_purged_records.rb b/db/post_migrate/20221121000127_index_security_scans_on_created_at_and_id_for_non_purged_records.rb
new file mode 100644
index 00000000000..0085005166f
--- /dev/null
+++ b/db/post_migrate/20221121000127_index_security_scans_on_created_at_and_id_for_non_purged_records.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class IndexSecurityScansOnCreatedAtAndIdForNonPurgedRecords < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = :index_security_scans_for_non_purged_records
+ PURGED_STATE = 6
+
+ disable_ddl_transaction!
+
+ def up
+ add_concurrent_index :security_scans, %w[created_at id], where: "status != #{PURGED_STATE}", name: INDEX_NAME
+ end
+
+ def down
+ remove_concurrent_index_by_name :security_scans, INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221121000451_drop_index_security_scans_on_id_for_non_purged_records.rb b/db/post_migrate/20221121000451_drop_index_security_scans_on_id_for_non_purged_records.rb
new file mode 100644
index 00000000000..06e614101e0
--- /dev/null
+++ b/db/post_migrate/20221121000451_drop_index_security_scans_on_id_for_non_purged_records.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class DropIndexSecurityScansOnIdForNonPurgedRecords < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = :index_security_scans_on_id_for_non_purged_records
+ PURGED_STATE = 6
+
+ disable_ddl_transaction!
+
+ def up
+ remove_concurrent_index_by_name :security_scans, INDEX_NAME
+ end
+
+ def down
+ add_concurrent_index :security_scans, :id, where: "status != #{PURGED_STATE}", name: INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221121152048_remove_unused_feedback_migration_index.rb b/db/post_migrate/20221121152048_remove_unused_feedback_migration_index.rb
new file mode 100644
index 00000000000..b5dbafccd3a
--- /dev/null
+++ b/db/post_migrate/20221121152048_remove_unused_feedback_migration_index.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+class RemoveUnusedFeedbackMigrationIndex < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = "tmp_idx_for_vulnerability_feedback_migration"
+ WHERE_CLAUSE = "migrated_to_state_transition = false AND feedback_type = 0"
+
+ disable_ddl_transaction!
+
+ def up
+ remove_concurrent_index_by_name(
+ :vulnerability_feedback,
+ INDEX_NAME
+ )
+ end
+
+ def down
+ add_concurrent_index(
+ :vulnerability_feedback,
+ %i[migrated_to_state_transition feedback_type],
+ where: WHERE_CLAUSE,
+ name: INDEX_NAME
+ )
+ end
+end
diff --git a/db/post_migrate/20221121152515_add_supporting_index_for_vulnerabilities_feedback_migration2.rb b/db/post_migrate/20221121152515_add_supporting_index_for_vulnerabilities_feedback_migration2.rb
new file mode 100644
index 00000000000..8c55f2da957
--- /dev/null
+++ b/db/post_migrate/20221121152515_add_supporting_index_for_vulnerabilities_feedback_migration2.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+class AddSupportingIndexForVulnerabilitiesFeedbackMigration2 < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = "tmp_idx_for_vulnerability_feedback_migration"
+ WHERE_CLAUSE = "migrated_to_state_transition = false AND feedback_type = 0"
+
+ disable_ddl_transaction!
+
+ def up
+ add_concurrent_index(
+ :vulnerability_feedback,
+ :id,
+ where: WHERE_CLAUSE,
+ name: INDEX_NAME
+ )
+ end
+
+ def down
+ remove_concurrent_index_by_name(
+ :vulnerability_feedback,
+ INDEX_NAME
+ )
+ end
+end
diff --git a/db/post_migrate/20221121155850_change_vulnerabilities_state_transitions_comment_limit.rb b/db/post_migrate/20221121155850_change_vulnerabilities_state_transitions_comment_limit.rb
new file mode 100644
index 00000000000..b75216ee413
--- /dev/null
+++ b/db/post_migrate/20221121155850_change_vulnerabilities_state_transitions_comment_limit.rb
@@ -0,0 +1,23 @@
+# frozen_string_literal: true
+
+class ChangeVulnerabilitiesStateTransitionsCommentLimit < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ add_text_limit(
+ :vulnerability_state_transitions,
+ :comment,
+ 50_000,
+ constraint_name: check_constraint_name(:vulnerability_state_transitions, :comment, 'max_length_50000')
+ )
+ remove_text_limit(
+ :vulnerability_state_transitions,
+ :comment,
+ constraint_name: 'check_fca4a7ca39'
+ )
+ end
+
+ def down
+ # no-op: this can fail if records with length > 255 (previous limit) show up
+ end
+end
diff --git a/db/post_migrate/20221121180138_drop_index_on_vulnerabilities_state_case_id.rb b/db/post_migrate/20221121180138_drop_index_on_vulnerabilities_state_case_id.rb
new file mode 100644
index 00000000000..87f1e5d3ba2
--- /dev/null
+++ b/db/post_migrate/20221121180138_drop_index_on_vulnerabilities_state_case_id.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+class DropIndexOnVulnerabilitiesStateCaseId < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = "index_vulnerabilities_on_state_case_id"
+
+ disable_ddl_transaction!
+
+ def up
+ remove_concurrent_index_by_name(
+ :vulnerabilities,
+ INDEX_NAME
+ )
+ end
+
+ def down
+ execute <<~SQL
+ CREATE INDEX CONCURRENTLY index_vulnerabilities_on_state_case_id ON vulnerabilities
+ USING btree (array_position(ARRAY[(1)::smallint, (4)::smallint, (3)::smallint, (2)::smallint], state), id DESC);
+ SQL
+ end
+end
diff --git a/db/post_migrate/20221121181627_drop_index_on_vulnerabilities_state_case_id_desc.rb b/db/post_migrate/20221121181627_drop_index_on_vulnerabilities_state_case_id_desc.rb
new file mode 100644
index 00000000000..712343bc7b0
--- /dev/null
+++ b/db/post_migrate/20221121181627_drop_index_on_vulnerabilities_state_case_id_desc.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+class DropIndexOnVulnerabilitiesStateCaseIdDesc < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = "index_vulnerabilities_on_state_case_id_desc"
+ disable_ddl_transaction!
+
+ def up
+ remove_concurrent_index_by_name(
+ :vulnerabilities,
+ INDEX_NAME
+ )
+ end
+
+ def down
+ execute <<~SQL
+ CREATE INDEX CONCURRENTLY index_vulnerabilities_on_state_case_id_desc ON vulnerabilities
+ USING btree (array_position(ARRAY[(1)::smallint, (4)::smallint, (3)::smallint, (2)::smallint], state) DESC, id DESC);
+ SQL
+ end
+end
diff --git a/db/post_migrate/20221121184931_validate_not_null_contraint_on_issues_work_item_type_id.rb b/db/post_migrate/20221121184931_validate_not_null_contraint_on_issues_work_item_type_id.rb
new file mode 100644
index 00000000000..be09f2ebe3a
--- /dev/null
+++ b/db/post_migrate/20221121184931_validate_not_null_contraint_on_issues_work_item_type_id.rb
@@ -0,0 +1,13 @@
+# frozen_string_literal: true
+
+class ValidateNotNullContraintOnIssuesWorkItemTypeId < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ add_not_null_constraint :issues, :work_item_type_id, validate: true
+ end
+
+ def down
+ remove_not_null_constraint :issues, :work_item_type_id
+ end
+end
diff --git a/db/post_migrate/20221122063922_remove_issue_title_trigram_index.rb b/db/post_migrate/20221122063922_remove_issue_title_trigram_index.rb
new file mode 100644
index 00000000000..80a2020a364
--- /dev/null
+++ b/db/post_migrate/20221122063922_remove_issue_title_trigram_index.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+class RemoveIssueTitleTrigramIndex < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_issues_on_title_trigram'
+
+ def up
+ remove_concurrent_index_by_name :issues, name: INDEX_NAME
+ end
+
+ def down
+ disable_statement_timeout do
+ execute <<-SQL
+ CREATE INDEX CONCURRENTLY IF NOT EXISTS #{INDEX_NAME} ON issues
+ USING gin (title gin_trgm_ops) WITH (fastupdate='false')
+ SQL
+ end
+ end
+end
diff --git a/db/post_migrate/20221122064537_remove_issue_description_trigram_index.rb b/db/post_migrate/20221122064537_remove_issue_description_trigram_index.rb
new file mode 100644
index 00000000000..c6d4f62de3e
--- /dev/null
+++ b/db/post_migrate/20221122064537_remove_issue_description_trigram_index.rb
@@ -0,0 +1,20 @@
+# frozen_string_literal: true
+
+class RemoveIssueDescriptionTrigramIndex < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_issues_on_description_trigram'
+
+ def up
+ remove_concurrent_index_by_name :issues, name: INDEX_NAME
+ end
+
+ def down
+ disable_statement_timeout do
+ execute <<-SQL
+ CREATE INDEX CONCURRENTLY IF NOT EXISTS #{INDEX_NAME} ON issues
+ USING gin (description gin_trgm_ops) WITH (fastupdate='false')
+ SQL
+ end
+ end
+end
diff --git a/db/post_migrate/20221122132812_schedule_prune_stale_project_export_jobs.rb b/db/post_migrate/20221122132812_schedule_prune_stale_project_export_jobs.rb
new file mode 100644
index 00000000000..871224ea18e
--- /dev/null
+++ b/db/post_migrate/20221122132812_schedule_prune_stale_project_export_jobs.rb
@@ -0,0 +1,22 @@
+# frozen_string_literal: true
+
+class SchedulePruneStaleProjectExportJobs < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ MIGRATION = 'PruneStaleProjectExportJobs'
+ DELAY_INTERVAL = 2.minutes
+
+ def up
+ queue_batched_background_migration(
+ MIGRATION,
+ :project_export_jobs,
+ :id,
+ job_interval: DELAY_INTERVAL
+ )
+ end
+
+ def down
+ delete_batched_background_migration(MIGRATION, :project_export_jobs, :id, [])
+ end
+end
diff --git a/db/post_migrate/20221122155149_add_index_for_paths_on_non_projects.rb b/db/post_migrate/20221122155149_add_index_for_paths_on_non_projects.rb
new file mode 100644
index 00000000000..e9a90844550
--- /dev/null
+++ b/db/post_migrate/20221122155149_add_index_for_paths_on_non_projects.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class AddIndexForPathsOnNonProjects < Gitlab::Database::Migration[2.0]
+ TABLE_NAME = 'namespaces'
+ INDEX_NAME = 'index_namespaces_on_path_for_top_level_non_projects'
+ COLUMN = "(lower(path::text))"
+ CONDITIONS = "(parent_id IS NULL AND type::text <> 'Project'::text)"
+
+ def up
+ prepare_async_index TABLE_NAME, COLUMN, name: INDEX_NAME, where: CONDITIONS
+ end
+
+ def down
+ unprepare_async_index TABLE_NAME, COLUMN, name: INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221123133054_queue_reset_status_on_container_repositories.rb b/db/post_migrate/20221123133054_queue_reset_status_on_container_repositories.rb
new file mode 100644
index 00000000000..2d482e0b83c
--- /dev/null
+++ b/db/post_migrate/20221123133054_queue_reset_status_on_container_repositories.rb
@@ -0,0 +1,25 @@
+# frozen_string_literal: true
+
+class QueueResetStatusOnContainerRepositories < Gitlab::Database::Migration[2.0]
+ MIGRATION = 'ResetStatusOnContainerRepositories'
+ DELAY_INTERVAL = 2.minutes
+ BATCH_SIZE = 50
+
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ def up
+ return unless ::Gitlab.config.registry.enabled
+
+ queue_batched_background_migration(
+ MIGRATION,
+ :container_repositories,
+ :id,
+ job_interval: DELAY_INTERVAL,
+ sub_batch_size: BATCH_SIZE
+ )
+ end
+
+ def down
+ delete_batched_background_migration(MIGRATION, :container_repositories, :id, [])
+ end
+end
diff --git a/db/post_migrate/20221124153602_add_supporting_index_for_vulnerabilities_feedback_comment_proccessing.rb b/db/post_migrate/20221124153602_add_supporting_index_for_vulnerabilities_feedback_comment_proccessing.rb
new file mode 100644
index 00000000000..71f48e22b52
--- /dev/null
+++ b/db/post_migrate/20221124153602_add_supporting_index_for_vulnerabilities_feedback_comment_proccessing.rb
@@ -0,0 +1,24 @@
+# frozen_string_literal: true
+
+class AddSupportingIndexForVulnerabilitiesFeedbackCommentProccessing < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = "tmp_idx_for_feedback_comment_processing"
+ WHERE_CLAUSE = "char_length(comment) > 50000"
+
+ disable_ddl_transaction!
+
+ def up
+ add_concurrent_index(
+ :vulnerability_feedback,
+ :id,
+ where: WHERE_CLAUSE,
+ name: INDEX_NAME
+ )
+ end
+
+ def down
+ remove_concurrent_index_by_name(
+ :vulnerability_feedback,
+ INDEX_NAME
+ )
+ end
+end
diff --git a/db/post_migrate/20221125222221_add_metrics_index_to_authentication_events.rb b/db/post_migrate/20221125222221_add_metrics_index_to_authentication_events.rb
new file mode 100644
index 00000000000..2d3181dea67
--- /dev/null
+++ b/db/post_migrate/20221125222221_add_metrics_index_to_authentication_events.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddMetricsIndexToAuthenticationEvents < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = 'index_successful_authentication_events_for_metrics'
+ disable_ddl_transaction!
+
+ def up
+ add_concurrent_index :authentication_events,
+ %i[user_id provider created_at],
+ where: "result = 1",
+ name: INDEX_NAME
+ end
+
+ def down
+ remove_concurrent_index_by_name :authentication_events, INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221125222341_remove_result_index_from_authentication_events.rb b/db/post_migrate/20221125222341_remove_result_index_from_authentication_events.rb
new file mode 100644
index 00000000000..97fb4b320d1
--- /dev/null
+++ b/db/post_migrate/20221125222341_remove_result_index_from_authentication_events.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+class RemoveResultIndexFromAuthenticationEvents < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_authentication_events_on_provider_user_id_created_at'
+
+ def up
+ remove_concurrent_index_by_name :authentication_events, INDEX_NAME
+ end
+
+ def down
+ add_concurrent_index :authentication_events,
+ [:provider, :user_id, :created_at],
+ where: 'result = 1',
+ name: INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221128120634_schedule_fixing_security_scan_statuses.rb b/db/post_migrate/20221128120634_schedule_fixing_security_scan_statuses.rb
new file mode 100644
index 00000000000..1cf4a33e09f
--- /dev/null
+++ b/db/post_migrate/20221128120634_schedule_fixing_security_scan_statuses.rb
@@ -0,0 +1,52 @@
+# frozen_string_literal: true
+
+class ScheduleFixingSecurityScanStatuses < Gitlab::Database::Migration[2.0]
+ MIGRATION = 'FixSecurityScanStatuses'
+ TABLE_NAME = :security_scans
+ BATCH_COLUMN = :id
+ DELAY_INTERVAL = 2.minutes
+ BATCH_SIZE = 10_000
+ MAX_BATCH_SIZE = 50_000
+ SUB_BATCH_SIZE = 100
+
+ disable_ddl_transaction!
+
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ class SecurityScan < MigrationRecord
+ def self.start_migration_from
+ sort_order = Arel::Nodes::SqlLiteral.new("date(timezone('UTC'::text, created_at)) ASC, id ASC")
+
+ where("date(timezone('UTC'::text, created_at)) > ?", 90.days.ago).order(sort_order).first&.id
+ end
+ end
+
+ def up
+ # Only the SaaS application is affected
+ return unless Gitlab.dev_or_test_env? || Gitlab.com?
+
+ batch_min_value = SecurityScan.start_migration_from
+
+ return unless batch_min_value # It is possible that some users don't have corrupted records
+
+ queue_batched_background_migration(
+ MIGRATION,
+ TABLE_NAME,
+ BATCH_COLUMN,
+ job_interval: DELAY_INTERVAL,
+ batch_size: BATCH_SIZE,
+ max_batch_size: MAX_BATCH_SIZE,
+ sub_batch_size: SUB_BATCH_SIZE,
+ batch_min_value: batch_min_value
+ )
+ end
+
+ def down
+ delete_batched_background_migration(
+ MIGRATION,
+ TABLE_NAME,
+ BATCH_COLUMN,
+ []
+ )
+ end
+end
diff --git a/db/post_migrate/20221128220043_drop_temp_work_item_type_id_backfill_index.rb b/db/post_migrate/20221128220043_drop_temp_work_item_type_id_backfill_index.rb
new file mode 100644
index 00000000000..97fb1202e6e
--- /dev/null
+++ b/db/post_migrate/20221128220043_drop_temp_work_item_type_id_backfill_index.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class DropTempWorkItemTypeIdBackfillIndex < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'tmp_index_issues_on_issue_type_and_id'
+
+ def up
+ remove_concurrent_index_by_name :issues, INDEX_NAME
+ end
+
+ def down
+ add_concurrent_index :issues, [:issue_type, :id], name: INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221128222417_add_back_issues_work_item_type_id_index.rb b/db/post_migrate/20221128222417_add_back_issues_work_item_type_id_index.rb
new file mode 100644
index 00000000000..3ee6f0a6179
--- /dev/null
+++ b/db/post_migrate/20221128222417_add_back_issues_work_item_type_id_index.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class AddBackIssuesWorkItemTypeIdIndex < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_issues_on_work_item_type_id'
+
+ def up
+ prepare_async_index :issues, :work_item_type_id, name: INDEX_NAME
+ end
+
+ def down
+ unprepare_async_index :issues, :work_item_type_id, name: INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221129124240_remove_flowdock_integration_records.rb b/db/post_migrate/20221129124240_remove_flowdock_integration_records.rb
new file mode 100644
index 00000000000..6390ed0d53b
--- /dev/null
+++ b/db/post_migrate/20221129124240_remove_flowdock_integration_records.rb
@@ -0,0 +1,23 @@
+# frozen_string_literal: true
+
+class RemoveFlowdockIntegrationRecords < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ class Integration < MigrationRecord
+ include EachBatch
+
+ self.table_name = 'integrations'
+ end
+
+ def up
+ Integration.each_batch(of: 1000, column: :id) do |relation|
+ relation.delete_by(type_new: 'Integrations::Flowdock')
+ end
+ end
+
+ def down
+ # no-op
+ end
+end
diff --git a/db/post_migrate/20221130192239_fix_approval_project_rules_without_protected_branches.rb b/db/post_migrate/20221130192239_fix_approval_project_rules_without_protected_branches.rb
new file mode 100644
index 00000000000..9cfe958ff60
--- /dev/null
+++ b/db/post_migrate/20221130192239_fix_approval_project_rules_without_protected_branches.rb
@@ -0,0 +1,27 @@
+# frozen_string_literal: true
+
+class FixApprovalProjectRulesWithoutProtectedBranches < Gitlab::Database::Migration[2.0]
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ BATCH_SIZE = 1000
+ SUB_BATCH_SIZE = 500
+ MIGRATION = 'FixApprovalProjectRulesWithoutProtectedBranches'
+ INTERVAL = 2.minutes
+
+ def up
+ return unless Gitlab.ee?
+
+ queue_batched_background_migration(
+ MIGRATION,
+ :approval_project_rules,
+ :id,
+ job_interval: INTERVAL,
+ batch_size: BATCH_SIZE,
+ sub_batch_size: SUB_BATCH_SIZE
+ )
+ end
+
+ def down
+ delete_batched_background_migration(MIGRATION, :approval_project_rules, :id, [])
+ end
+end
diff --git a/db/post_migrate/20221202031332_add_index_to_issue_assignees_on_user_id_and_issue_id.rb b/db/post_migrate/20221202031332_add_index_to_issue_assignees_on_user_id_and_issue_id.rb
new file mode 100644
index 00000000000..5c008008218
--- /dev/null
+++ b/db/post_migrate/20221202031332_add_index_to_issue_assignees_on_user_id_and_issue_id.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class AddIndexToIssueAssigneesOnUserIdAndIssueId < Gitlab::Database::Migration[2.1]
+ INDEX_NAME = "index_issue_assignees_on_user_id_and_issue_id"
+
+ disable_ddl_transaction!
+
+ def up
+ add_concurrent_index :issue_assignees, [:user_id, :issue_id], name: INDEX_NAME
+ end
+
+ def down
+ remove_concurrent_index_by_name :issue_assignees, INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221202031417_remove_index_to_issue_assignees_on_user_id.rb b/db/post_migrate/20221202031417_remove_index_to_issue_assignees_on_user_id.rb
new file mode 100644
index 00000000000..abdda680098
--- /dev/null
+++ b/db/post_migrate/20221202031417_remove_index_to_issue_assignees_on_user_id.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class RemoveIndexToIssueAssigneesOnUserId < Gitlab::Database::Migration[2.1]
+ INDEX_NAME = "index_issue_assignees_on_user_id"
+
+ disable_ddl_transaction!
+
+ def up
+ remove_concurrent_index_by_name :issue_assignees, INDEX_NAME
+ end
+
+ def down
+ add_concurrent_index :issue_assignees, [:user_id], name: INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221202154128_add_pipeline_metadata_name_index.rb b/db/post_migrate/20221202154128_add_pipeline_metadata_name_index.rb
new file mode 100644
index 00000000000..3d1d7fa7e5a
--- /dev/null
+++ b/db/post_migrate/20221202154128_add_pipeline_metadata_name_index.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class AddPipelineMetadataNameIndex < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_pipeline_metadata_on_pipeline_id_name_lower_text_pattern'
+
+ def up
+ add_concurrent_index :ci_pipeline_metadata, 'pipeline_id, lower(name) text_pattern_ops', name: INDEX_NAME
+ end
+
+ def down
+ remove_concurrent_index_by_name :ci_pipeline_metadata, INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221202154151_remove_pipeline_metadata_pipeline_id_index.rb b/db/post_migrate/20221202154151_remove_pipeline_metadata_pipeline_id_index.rb
new file mode 100644
index 00000000000..1c551f49fa6
--- /dev/null
+++ b/db/post_migrate/20221202154151_remove_pipeline_metadata_pipeline_id_index.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class RemovePipelineMetadataPipelineIdIndex < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_ci_pipeline_metadata_on_pipeline_id_name'
+
+ def up
+ remove_concurrent_index_by_name :ci_pipeline_metadata, INDEX_NAME
+ end
+
+ def down
+ add_concurrent_index :ci_pipeline_metadata, [:pipeline_id, :name], name: INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221205134448_set_index_for_issues_health_status_ordering.rb b/db/post_migrate/20221205134448_set_index_for_issues_health_status_ordering.rb
new file mode 100644
index 00000000000..38426c3ba15
--- /dev/null
+++ b/db/post_migrate/20221205134448_set_index_for_issues_health_status_ordering.rb
@@ -0,0 +1,25 @@
+# frozen_string_literal: true
+
+class SetIndexForIssuesHealthStatusOrdering < Gitlab::Database::Migration[2.1]
+ disable_ddl_transaction!
+
+ INDEX_NAME_DESC = 'index_on_issues_health_status_desc_order'
+ INDEX_NAME_ASC = 'index_on_issues_health_status_asc_order'
+
+ def up
+ add_concurrent_index :issues,
+ [:project_id, :health_status, :id, :state_id, :issue_type],
+ order: { health_status: 'DESC NULLS LAST', id: :desc },
+ name: INDEX_NAME_DESC
+
+ add_concurrent_index :issues,
+ [:project_id, :health_status, :id, :state_id, :issue_type],
+ order: { health_status: 'ASC NULLS LAST', id: :desc },
+ name: INDEX_NAME_ASC
+ end
+
+ def down
+ remove_concurrent_index_by_name :issues, INDEX_NAME_DESC
+ remove_concurrent_index_by_name :issues, INDEX_NAME_ASC
+ end
+end
diff --git a/db/post_migrate/20221205151917_schedule_backfill_environment_tier.rb b/db/post_migrate/20221205151917_schedule_backfill_environment_tier.rb
new file mode 100644
index 00000000000..eb62e50ea65
--- /dev/null
+++ b/db/post_migrate/20221205151917_schedule_backfill_environment_tier.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+class ScheduleBackfillEnvironmentTier < Gitlab::Database::Migration[2.0]
+ MIGRATION = 'BackfillEnvironmentTiers'
+ DELAY_INTERVAL = 2.minutes
+
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ def up
+ queue_batched_background_migration(
+ MIGRATION,
+ :environments,
+ :id,
+ job_interval: DELAY_INTERVAL
+ )
+ end
+
+ def down
+ delete_batched_background_migration(MIGRATION, :environments, :id, [])
+ end
+end
diff --git a/db/post_migrate/20221205170310_add_index_for_active_members.rb b/db/post_migrate/20221205170310_add_index_for_active_members.rb
new file mode 100644
index 00000000000..c52b8ccfd04
--- /dev/null
+++ b/db/post_migrate/20221205170310_add_index_for_active_members.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+class AddIndexForActiveMembers < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = 'index_members_on_source_state_type_access_level_and_user_id'
+
+ disable_ddl_transaction!
+
+ def up
+ where_clause = 'requested_at is null and invite_token is null'
+
+ add_concurrent_index :members, [:source_id, :source_type, :state, :type, :access_level, :user_id],
+ name: INDEX_NAME, where: where_clause
+ end
+
+ def down
+ remove_concurrent_index_by_name :members, INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221206012013_add_index_author_id_created_at_on_merge_requests.rb b/db/post_migrate/20221206012013_add_index_author_id_created_at_on_merge_requests.rb
new file mode 100644
index 00000000000..886d8aed71a
--- /dev/null
+++ b/db/post_migrate/20221206012013_add_index_author_id_created_at_on_merge_requests.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class AddIndexAuthorIdCreatedAtOnMergeRequests < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = 'index_merge_requests_on_author_id_and_created_at'
+
+ disable_ddl_transaction!
+
+ def up
+ add_concurrent_index :merge_requests, %i[author_id created_at], name: INDEX_NAME
+ end
+
+ def down
+ remove_concurrent_index_by_name :merge_requests, INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221206075631_add_unique_id_partition_id_index_to_ci_build.rb b/db/post_migrate/20221206075631_add_unique_id_partition_id_index_to_ci_build.rb
new file mode 100644
index 00000000000..c3e7a5799d0
--- /dev/null
+++ b/db/post_migrate/20221206075631_add_unique_id_partition_id_index_to_ci_build.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class AddUniqueIdPartitionIdIndexToCiBuild < Gitlab::Database::Migration[2.1]
+ TABLE_NAME = :ci_builds
+ INDEX_NAME = :index_ci_builds_on_id_partition_id_unique
+ COLUMNS = %i[id partition_id].freeze
+
+ def up
+ prepare_async_index(TABLE_NAME, COLUMNS, unique: true, name: INDEX_NAME)
+ end
+
+ def down
+ unprepare_async_index(TABLE_NAME, COLUMNS, name: INDEX_NAME)
+ end
+end
diff --git a/db/post_migrate/20221206132610_add_unique_token_encrypted_partition_id_index_to_ci_build.rb b/db/post_migrate/20221206132610_add_unique_token_encrypted_partition_id_index_to_ci_build.rb
new file mode 100644
index 00000000000..c330ece1a60
--- /dev/null
+++ b/db/post_migrate/20221206132610_add_unique_token_encrypted_partition_id_index_to_ci_build.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+class AddUniqueTokenEncryptedPartitionIdIndexToCiBuild < Gitlab::Database::Migration[2.1]
+ TABLE_NAME = :ci_builds
+ INDEX_NAME = :index_ci_builds_on_token_encrypted_partition_id_unique
+ COLUMNS = %i[token_encrypted partition_id].freeze
+
+ def up
+ prepare_async_index(
+ TABLE_NAME,
+ COLUMNS,
+ where: 'token_encrypted IS NOT NULL',
+ unique: true,
+ name: INDEX_NAME
+ )
+ end
+
+ def down
+ unprepare_async_index(TABLE_NAME, COLUMNS, name: INDEX_NAME)
+ end
+end
diff --git a/db/post_migrate/20221206173132_add_issues_work_item_type_id_index.rb b/db/post_migrate/20221206173132_add_issues_work_item_type_id_index.rb
new file mode 100644
index 00000000000..b50da0e4644
--- /dev/null
+++ b/db/post_migrate/20221206173132_add_issues_work_item_type_id_index.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class AddIssuesWorkItemTypeIdIndex < Gitlab::Database::Migration[2.1]
+ disable_ddl_transaction!
+
+ INDEX_NAME = 'index_issues_on_work_item_type_id'
+
+ def up
+ add_concurrent_index :issues, :work_item_type_id, name: INDEX_NAME
+ end
+
+ def down
+ remove_concurrent_index_by_name :issues, INDEX_NAME
+ end
+end
diff --git a/db/post_migrate/20221210154044_update_active_billable_users_index.rb b/db/post_migrate/20221210154044_update_active_billable_users_index.rb
new file mode 100644
index 00000000000..9d306eff16b
--- /dev/null
+++ b/db/post_migrate/20221210154044_update_active_billable_users_index.rb
@@ -0,0 +1,29 @@
+# frozen_string_literal: true
+class UpdateActiveBillableUsersIndex < Gitlab::Database::Migration[2.1]
+ disable_ddl_transaction!
+
+ OLD_INDEX_NAME = 'active_billable_users'
+ NEW_INDEX_NAME = 'index_users_for_active_billable'
+ TABLE_NAME = 'users'
+ COLUMNS = %i[id]
+ OLD_INDEX_FILTER_CONDITION = <<~QUERY
+ ((state)::text = 'active'::text) AND ((user_type IS NULL)
+ OR (user_type = ANY (ARRAY[NULL::integer, 6, 4]))) AND ((user_type IS NULL)
+ OR (user_type <> ALL ('{2,6,1,3,7,8}'::smallint[])))
+ QUERY
+ NEW_INDEX_FILTER_CONDITION = <<~QUERY
+ ((state)::text = 'active'::text) AND ((user_type IS NULL)
+ OR (user_type = ANY (ARRAY[NULL::integer, 6, 4]))) AND ((user_type IS NULL)
+ OR (user_type <> ALL ('{1,2,3,4,5,6,7,8,9,11}'::smallint[])))
+ QUERY
+
+ def up
+ add_concurrent_index(TABLE_NAME, COLUMNS, where: NEW_INDEX_FILTER_CONDITION, name: NEW_INDEX_NAME)
+ remove_concurrent_index_by_name(TABLE_NAME, OLD_INDEX_NAME)
+ end
+
+ def down
+ add_concurrent_index(TABLE_NAME, COLUMNS, where: OLD_INDEX_FILTER_CONDITION, name: OLD_INDEX_NAME)
+ remove_concurrent_index_by_name(TABLE_NAME, NEW_INDEX_NAME)
+ end
+end
diff --git a/db/post_migrate/20221212103743_add_index_id_partition_id_to_ci_build.rb b/db/post_migrate/20221212103743_add_index_id_partition_id_to_ci_build.rb
new file mode 100644
index 00000000000..aab67272a77
--- /dev/null
+++ b/db/post_migrate/20221212103743_add_index_id_partition_id_to_ci_build.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddIndexIdPartitionIdToCiBuild < Gitlab::Database::Migration[2.1]
+ disable_ddl_transaction!
+
+ TABLE_NAME = :ci_builds
+ INDEX_NAME = :index_ci_builds_on_id_partition_id_unique
+ COLUMNS = %i[id partition_id].freeze
+
+ def up
+ add_concurrent_index(TABLE_NAME, COLUMNS, unique: true, name: INDEX_NAME)
+ end
+
+ def down
+ remove_concurrent_index_by_name(TABLE_NAME, INDEX_NAME)
+ end
+end
diff --git a/db/post_migrate/20221213064717_change_default_partition_id_on_ci_resources.rb b/db/post_migrate/20221213064717_change_default_partition_id_on_ci_resources.rb
new file mode 100644
index 00000000000..889659cdc2c
--- /dev/null
+++ b/db/post_migrate/20221213064717_change_default_partition_id_on_ci_resources.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class ChangeDefaultPartitionIdOnCiResources < Gitlab::Database::Migration[2.1]
+ enable_lock_retries!
+
+ def change
+ change_column_default :ci_resources, :partition_id, from: 100, to: nil
+ end
+end
diff --git a/db/schema_migrations/20220824082427 b/db/schema_migrations/20220824082427
new file mode 100644
index 00000000000..1805c956991
--- /dev/null
+++ b/db/schema_migrations/20220824082427
@@ -0,0 +1 @@
+80d083f58cc9b225542c1198c7d9d80fd8202c959c70957400d63d22435999aa \ No newline at end of file
diff --git a/db/schema_migrations/20220908150054 b/db/schema_migrations/20220908150054
new file mode 100644
index 00000000000..125498c3e63
--- /dev/null
+++ b/db/schema_migrations/20220908150054
@@ -0,0 +1 @@
+820ab42535cf8291960e41f26395d4f820c0a464b6b1bbf51955d79a16e900ab \ No newline at end of file
diff --git a/db/schema_migrations/20220920180451 b/db/schema_migrations/20220920180451
new file mode 100644
index 00000000000..a1121731e9d
--- /dev/null
+++ b/db/schema_migrations/20220920180451
@@ -0,0 +1 @@
+3e15307d975890ba62f9617aee32009eac5b66eb02fdd129bb0fcfa8ff4c1ac6 \ No newline at end of file
diff --git a/db/schema_migrations/20221018095434 b/db/schema_migrations/20221018095434
new file mode 100644
index 00000000000..f924caf4553
--- /dev/null
+++ b/db/schema_migrations/20221018095434
@@ -0,0 +1 @@
+0cb708a3cb823676e473bf961aa6920d156598c3c5455b87c89cb1833dfb509c \ No newline at end of file
diff --git a/db/schema_migrations/20221026095133 b/db/schema_migrations/20221026095133
new file mode 100644
index 00000000000..bd5893ed226
--- /dev/null
+++ b/db/schema_migrations/20221026095133
@@ -0,0 +1 @@
+a2a0bc78f8f9012d294d42e90e144a209aa48c0160eedae09a748c1835132ab4 \ No newline at end of file
diff --git a/db/schema_migrations/20221101174816 b/db/schema_migrations/20221101174816
new file mode 100644
index 00000000000..ce1368622a4
--- /dev/null
+++ b/db/schema_migrations/20221101174816
@@ -0,0 +1 @@
+2bd5e8cadc82207b0540d8418e6312cc76868318e1e040fb64fa69dfe3e01cb8 \ No newline at end of file
diff --git a/db/schema_migrations/20221101194416 b/db/schema_migrations/20221101194416
new file mode 100644
index 00000000000..0051072650c
--- /dev/null
+++ b/db/schema_migrations/20221101194416
@@ -0,0 +1 @@
+c4fc7b3ca831b670c504a824cbe07d6c94ddaa5c432d37cb353807c5387ee4e8 \ No newline at end of file
diff --git a/db/schema_migrations/20221101195309 b/db/schema_migrations/20221101195309
new file mode 100644
index 00000000000..54fd0d397b6
--- /dev/null
+++ b/db/schema_migrations/20221101195309
@@ -0,0 +1 @@
+9033c025820c306db295ac4acacc8fa2d99aa78f3883e134829beb8c756eacb1 \ No newline at end of file
diff --git a/db/schema_migrations/20221101195543 b/db/schema_migrations/20221101195543
new file mode 100644
index 00000000000..a1b20ac6274
--- /dev/null
+++ b/db/schema_migrations/20221101195543
@@ -0,0 +1 @@
+18e1da4447efd3c77c6a4baf194eb0cfa787d5ce60e544c6fd8d4ed0818f9082 \ No newline at end of file
diff --git a/db/schema_migrations/20221102150737 b/db/schema_migrations/20221102150737
new file mode 100644
index 00000000000..83e3c1e77ed
--- /dev/null
+++ b/db/schema_migrations/20221102150737
@@ -0,0 +1 @@
+600e0c6bd79850846c38de38f175889cee731b5619dfbd084e1bd4438d13d387 \ No newline at end of file
diff --git a/db/schema_migrations/20221102195642 b/db/schema_migrations/20221102195642
new file mode 100644
index 00000000000..746c62e7f7e
--- /dev/null
+++ b/db/schema_migrations/20221102195642
@@ -0,0 +1 @@
+66a97a441e7be47db9d4dfd49bfe5b600cc2977e581ade98daa923778a142b85 \ No newline at end of file
diff --git a/db/schema_migrations/20221103205317 b/db/schema_migrations/20221103205317
new file mode 100644
index 00000000000..f205ff2db21
--- /dev/null
+++ b/db/schema_migrations/20221103205317
@@ -0,0 +1 @@
+d1d3c4281b79318902e3e26d9104971a4537fd6380ce5f53282073330ab173e6 \ No newline at end of file
diff --git a/db/schema_migrations/20221104115712 b/db/schema_migrations/20221104115712
new file mode 100644
index 00000000000..c3b87b343d9
--- /dev/null
+++ b/db/schema_migrations/20221104115712
@@ -0,0 +1 @@
+61322973112a2450036fbbd6e329105ff16d5dc5efac72c75c152bcf87a84aeb \ No newline at end of file
diff --git a/db/schema_migrations/20221104141647 b/db/schema_migrations/20221104141647
new file mode 100644
index 00000000000..e449f19b8ab
--- /dev/null
+++ b/db/schema_migrations/20221104141647
@@ -0,0 +1 @@
+913154d7bf3d7e663e680d08076da681e963758f0bb2c5b7419914a88df55701 \ No newline at end of file
diff --git a/db/schema_migrations/20221107013943 b/db/schema_migrations/20221107013943
new file mode 100644
index 00000000000..a447e6590c1
--- /dev/null
+++ b/db/schema_migrations/20221107013943
@@ -0,0 +1 @@
+5d3efc9c623a22768e2cbf7aa6282ff2f3fead17cad8537154e4e50485748fbd \ No newline at end of file
diff --git a/db/schema_migrations/20221109160052 b/db/schema_migrations/20221109160052
new file mode 100644
index 00000000000..33d71913115
--- /dev/null
+++ b/db/schema_migrations/20221109160052
@@ -0,0 +1 @@
+4567d064918a67787a8d08a18b2747f2e6c1ef43a4bc1471a4bb2a881c66f49d \ No newline at end of file
diff --git a/db/schema_migrations/20221110080508 b/db/schema_migrations/20221110080508
new file mode 100644
index 00000000000..b1c213d19c8
--- /dev/null
+++ b/db/schema_migrations/20221110080508
@@ -0,0 +1 @@
+9000b90fa232989de2210efd289d0e435d72c955c1a8ae055879a84b42e0bf2a \ No newline at end of file
diff --git a/db/schema_migrations/20221110080636 b/db/schema_migrations/20221110080636
new file mode 100644
index 00000000000..0e93b46f183
--- /dev/null
+++ b/db/schema_migrations/20221110080636
@@ -0,0 +1 @@
+0e3578ebbde1c61610e3bf043b6b841cbbc2e5ac555723d510956bc677d18830 \ No newline at end of file
diff --git a/db/schema_migrations/20221110080748 b/db/schema_migrations/20221110080748
new file mode 100644
index 00000000000..7dca70ba2d8
--- /dev/null
+++ b/db/schema_migrations/20221110080748
@@ -0,0 +1 @@
+9b6d530507f560cfcd4e6f7c9862fe337f83a2b11209c293c35930ae3a2a9337 \ No newline at end of file
diff --git a/db/schema_migrations/20221110080822 b/db/schema_migrations/20221110080822
new file mode 100644
index 00000000000..08cd9263a3a
--- /dev/null
+++ b/db/schema_migrations/20221110080822
@@ -0,0 +1 @@
+30445b0bb4c7e5a92607c94e783c375aa701ab7021f6cdd9a4e586f36f1c8c53 \ No newline at end of file
diff --git a/db/schema_migrations/20221110080913 b/db/schema_migrations/20221110080913
new file mode 100644
index 00000000000..71bb2246107
--- /dev/null
+++ b/db/schema_migrations/20221110080913
@@ -0,0 +1 @@
+1b35ffef693ef3fc468ea993080fcc1090fec43032cde06fd0560d47c806b86c \ No newline at end of file
diff --git a/db/schema_migrations/20221110080956 b/db/schema_migrations/20221110080956
new file mode 100644
index 00000000000..be455f79d03
--- /dev/null
+++ b/db/schema_migrations/20221110080956
@@ -0,0 +1 @@
+014856a7b2e713e5181c79ddc1e0dcaa4696c867224338768274ea0987bc8b7a \ No newline at end of file
diff --git a/db/schema_migrations/20221110081037 b/db/schema_migrations/20221110081037
new file mode 100644
index 00000000000..74b21d07ec0
--- /dev/null
+++ b/db/schema_migrations/20221110081037
@@ -0,0 +1 @@
+d22d5d4288369c275c193a6863174a67b16872fb41d17be63d7698302ee6cdb5 \ No newline at end of file
diff --git a/db/schema_migrations/20221110081115 b/db/schema_migrations/20221110081115
new file mode 100644
index 00000000000..9cf89be9ab7
--- /dev/null
+++ b/db/schema_migrations/20221110081115
@@ -0,0 +1 @@
+d189936c73331c868f31e7d332230b25b2f26aa2983f6b4e5b348816dc5e7050 \ No newline at end of file
diff --git a/db/schema_migrations/20221110081207 b/db/schema_migrations/20221110081207
new file mode 100644
index 00000000000..7347f2ad446
--- /dev/null
+++ b/db/schema_migrations/20221110081207
@@ -0,0 +1 @@
+9c4a57679d2bff30da1b88cca6e81b8d5aaa16adbbb748ae0bfdaba1ba2bbc9e \ No newline at end of file
diff --git a/db/schema_migrations/20221110081348 b/db/schema_migrations/20221110081348
new file mode 100644
index 00000000000..b15c561ea95
--- /dev/null
+++ b/db/schema_migrations/20221110081348
@@ -0,0 +1 @@
+0edc396d8a2c39abb4e49709359a2917703f967ae33258aa2f9dd59dec06b562 \ No newline at end of file
diff --git a/db/schema_migrations/20221110081448 b/db/schema_migrations/20221110081448
new file mode 100644
index 00000000000..5473ccd2098
--- /dev/null
+++ b/db/schema_migrations/20221110081448
@@ -0,0 +1 @@
+77b11688ef2d41d3aba6d7e730b6a50f8baf12eaf6e8d950f239d8c70f413196 \ No newline at end of file
diff --git a/db/schema_migrations/20221110152133 b/db/schema_migrations/20221110152133
new file mode 100644
index 00000000000..d50f57be2b6
--- /dev/null
+++ b/db/schema_migrations/20221110152133
@@ -0,0 +1 @@
+2fcf1b1e5395b89ebf2d9757f0d9f005cc2014946a957127545969ad8472f99b \ No newline at end of file
diff --git a/db/schema_migrations/20221110183103 b/db/schema_migrations/20221110183103
new file mode 100644
index 00000000000..08b3a8823df
--- /dev/null
+++ b/db/schema_migrations/20221110183103
@@ -0,0 +1 @@
+3a8b69f61d48ed02d1015cf63b1dd89fb7206a3d5ce9668126cfdc52048f1e61 \ No newline at end of file
diff --git a/db/schema_migrations/20221110190340 b/db/schema_migrations/20221110190340
new file mode 100644
index 00000000000..253cd2c23a8
--- /dev/null
+++ b/db/schema_migrations/20221110190340
@@ -0,0 +1 @@
+7cc74ddc58ed05ebc2fb2dcbf2a3f1b2c0327bb2e6109666167bcc89683bcd98 \ No newline at end of file
diff --git a/db/schema_migrations/20221111123146 b/db/schema_migrations/20221111123146
new file mode 100644
index 00000000000..176a6ac6bba
--- /dev/null
+++ b/db/schema_migrations/20221111123146
@@ -0,0 +1 @@
+9679ef7921014d7b6123bf33a3df6276ca3a187641487c11d1dad86aa58b59a6 \ No newline at end of file
diff --git a/db/schema_migrations/20221111123147 b/db/schema_migrations/20221111123147
new file mode 100644
index 00000000000..f5c17b7e08f
--- /dev/null
+++ b/db/schema_migrations/20221111123147
@@ -0,0 +1 @@
+43c86e9b4c78f5335a3288c4bd40fbcd5559cc175f3619f5e62e779f8aafa126 \ No newline at end of file
diff --git a/db/schema_migrations/20221111123148 b/db/schema_migrations/20221111123148
new file mode 100644
index 00000000000..d32b1627453
--- /dev/null
+++ b/db/schema_migrations/20221111123148
@@ -0,0 +1 @@
+777d3e757eeec38ee9a29ed2e9f72631d3928d9d449db4327781ad8240ab7922 \ No newline at end of file
diff --git a/db/schema_migrations/20221111135238 b/db/schema_migrations/20221111135238
new file mode 100644
index 00000000000..5a01cca7871
--- /dev/null
+++ b/db/schema_migrations/20221111135238
@@ -0,0 +1 @@
+baf4a11c802eccd1d45bc210c981f0ee2552d7347252caa5558e223271f8a92f \ No newline at end of file
diff --git a/db/schema_migrations/20221111142921 b/db/schema_migrations/20221111142921
new file mode 100644
index 00000000000..269979c1f86
--- /dev/null
+++ b/db/schema_migrations/20221111142921
@@ -0,0 +1 @@
+5d31ed73f99f6f36cba7466ccb999337206a0eca9c29e2ad2f6c28f2154572b4 \ No newline at end of file
diff --git a/db/schema_migrations/20221114131943 b/db/schema_migrations/20221114131943
new file mode 100644
index 00000000000..ce5aa4208b4
--- /dev/null
+++ b/db/schema_migrations/20221114131943
@@ -0,0 +1 @@
+f101fcfae81e560c141c571f1494d63821b28271bda74cc2697cea9895872f8f \ No newline at end of file
diff --git a/db/schema_migrations/20221114142044 b/db/schema_migrations/20221114142044
new file mode 100644
index 00000000000..cd0e0bd8abb
--- /dev/null
+++ b/db/schema_migrations/20221114142044
@@ -0,0 +1 @@
+5df7ccad8b87eb93db804886d93d5cab40ef988f8706bfe9b54c044ea49b78f9 \ No newline at end of file
diff --git a/db/schema_migrations/20221114142602 b/db/schema_migrations/20221114142602
new file mode 100644
index 00000000000..d59022a5ba7
--- /dev/null
+++ b/db/schema_migrations/20221114142602
@@ -0,0 +1 @@
+0ce9bc1eb8164103c13be54e5b94b5d78e64c9a61a0d4c29ea7cbac6655c3d02 \ No newline at end of file
diff --git a/db/schema_migrations/20221114142616 b/db/schema_migrations/20221114142616
new file mode 100644
index 00000000000..ad8e685cb85
--- /dev/null
+++ b/db/schema_migrations/20221114142616
@@ -0,0 +1 @@
+6532501a17c42d41dab53d277624992e8be1dd8597b8c9eda08e3d62d6e1c33a \ No newline at end of file
diff --git a/db/schema_migrations/20221114145103 b/db/schema_migrations/20221114145103
new file mode 100644
index 00000000000..da49d8f76b1
--- /dev/null
+++ b/db/schema_migrations/20221114145103
@@ -0,0 +1 @@
+1621f0ac141f24c15beef34f5f411158c1eb8a89f5022dd426533d705aa859fe \ No newline at end of file
diff --git a/db/schema_migrations/20221114212908 b/db/schema_migrations/20221114212908
new file mode 100644
index 00000000000..cbd453b2cc9
--- /dev/null
+++ b/db/schema_migrations/20221114212908
@@ -0,0 +1 @@
+0a939e4568d4edcdee322a9a4f69dac51e7604a30e79d2eced9e131a7e06937a \ No newline at end of file
diff --git a/db/schema_migrations/20221115085813 b/db/schema_migrations/20221115085813
new file mode 100644
index 00000000000..c2f7c8a7c51
--- /dev/null
+++ b/db/schema_migrations/20221115085813
@@ -0,0 +1 @@
+b6538475a9c8a48e640ae367523b9843573e271e508e3f8fe575abef0a4b64f3 \ No newline at end of file
diff --git a/db/schema_migrations/20221115120602 b/db/schema_migrations/20221115120602
new file mode 100644
index 00000000000..e7d0bfac37b
--- /dev/null
+++ b/db/schema_migrations/20221115120602
@@ -0,0 +1 @@
+793a1e1c80385cf7fe8f2d27af9acc64f46298790c6dc353f5355047500eebb9 \ No newline at end of file
diff --git a/db/schema_migrations/20221115173607 b/db/schema_migrations/20221115173607
new file mode 100644
index 00000000000..1de7aaf5da6
--- /dev/null
+++ b/db/schema_migrations/20221115173607
@@ -0,0 +1 @@
+c3e763e7c801b308cf44cd494104e8c3b37e61fa00b30d777ef97ca310f4823b \ No newline at end of file
diff --git a/db/schema_migrations/20221115184525 b/db/schema_migrations/20221115184525
new file mode 100644
index 00000000000..da6620d281c
--- /dev/null
+++ b/db/schema_migrations/20221115184525
@@ -0,0 +1 @@
+7e181636d6fd40eb13a40f596ab442ea7b795748546b58a33b1475b2d5fcd264 \ No newline at end of file
diff --git a/db/schema_migrations/20221116100056 b/db/schema_migrations/20221116100056
new file mode 100644
index 00000000000..8909a1d9bf2
--- /dev/null
+++ b/db/schema_migrations/20221116100056
@@ -0,0 +1 @@
+20fd10e525180e73a642809143c4e3caf3a58defc1c475389bc2a9b386bad253 \ No newline at end of file
diff --git a/db/schema_migrations/20221116105434 b/db/schema_migrations/20221116105434
new file mode 100644
index 00000000000..105f7e99618
--- /dev/null
+++ b/db/schema_migrations/20221116105434
@@ -0,0 +1 @@
+c354ac7501cc534a0deff46dc9f0bce27f05d9c08cf5fc0883a906c3dbd7c736 \ No newline at end of file
diff --git a/db/schema_migrations/20221116113323 b/db/schema_migrations/20221116113323
new file mode 100644
index 00000000000..1c852aa2ac9
--- /dev/null
+++ b/db/schema_migrations/20221116113323
@@ -0,0 +1 @@
+d8a541a683d7957ddc8446703bfa781609c4180a2c3cbb6098e748e71b6cc9d0 \ No newline at end of file
diff --git a/db/schema_migrations/20221116124821 b/db/schema_migrations/20221116124821
new file mode 100644
index 00000000000..8bea2d3564f
--- /dev/null
+++ b/db/schema_migrations/20221116124821
@@ -0,0 +1 @@
+775519b2a0881608fd6e446b4c4aaff65ed45889b87a6522d0ea314980e5f66c \ No newline at end of file
diff --git a/db/schema_migrations/20221116143854 b/db/schema_migrations/20221116143854
new file mode 100644
index 00000000000..9f0b0815c79
--- /dev/null
+++ b/db/schema_migrations/20221116143854
@@ -0,0 +1 @@
+a6caf06dd18f096219d5ce0752c956ef099a92df71899c1b9164d3a16f6ef0ba \ No newline at end of file
diff --git a/db/schema_migrations/20221116160204 b/db/schema_migrations/20221116160204
new file mode 100644
index 00000000000..3b697bb9108
--- /dev/null
+++ b/db/schema_migrations/20221116160204
@@ -0,0 +1 @@
+09e6935b54925d65dfe11c5aaf7c2b711fee204b817cdaddd6fb4066206721d6 \ No newline at end of file
diff --git a/db/schema_migrations/20221116161126 b/db/schema_migrations/20221116161126
new file mode 100644
index 00000000000..5d65ed55915
--- /dev/null
+++ b/db/schema_migrations/20221116161126
@@ -0,0 +1 @@
+93286f75aec167041985c2cde8ef1fc32447eae4f520c87131b89c28c402675c \ No newline at end of file
diff --git a/db/schema_migrations/20221117103015 b/db/schema_migrations/20221117103015
new file mode 100644
index 00000000000..27244eb22e7
--- /dev/null
+++ b/db/schema_migrations/20221117103015
@@ -0,0 +1 @@
+3e8cb08fd67a748a5ba77b495fb9700ff968af6e45d6fd024a4d2b09ba0c4d39 \ No newline at end of file
diff --git a/db/schema_migrations/20221117135032 b/db/schema_migrations/20221117135032
new file mode 100644
index 00000000000..d9dd4606e4a
--- /dev/null
+++ b/db/schema_migrations/20221117135032
@@ -0,0 +1 @@
+bb15453aa03df0d579ed2c2d38806cc30362e642c5cd8f58ccca29c70f97ea8d \ No newline at end of file
diff --git a/db/schema_migrations/20221117153015 b/db/schema_migrations/20221117153015
new file mode 100644
index 00000000000..438ddfdcfbf
--- /dev/null
+++ b/db/schema_migrations/20221117153015
@@ -0,0 +1 @@
+ce905f8497f63b909fee18cb20f2bfc95c33f09d01df09798ca30cdcd72280dc \ No newline at end of file
diff --git a/db/schema_migrations/20221118103152 b/db/schema_migrations/20221118103152
new file mode 100644
index 00000000000..2a5ae81a7e2
--- /dev/null
+++ b/db/schema_migrations/20221118103152
@@ -0,0 +1 @@
+e7aa8bf64fde9ebc2c027c3aac7ea2b317b9a96fcb3514481b0f27070d335d74 \ No newline at end of file
diff --git a/db/schema_migrations/20221118103352 b/db/schema_migrations/20221118103352
new file mode 100644
index 00000000000..d50fb4354ad
--- /dev/null
+++ b/db/schema_migrations/20221118103352
@@ -0,0 +1 @@
+577d345895cde08e41512266a72aadea953386e0fa57773ef428b03d052c0f63 \ No newline at end of file
diff --git a/db/schema_migrations/20221118103752 b/db/schema_migrations/20221118103752
new file mode 100644
index 00000000000..a6de9bf7a55
--- /dev/null
+++ b/db/schema_migrations/20221118103752
@@ -0,0 +1 @@
+2caac7002aa56d0cd8fb157171a0dd5e0630d06334370154aa574433446220a4 \ No newline at end of file
diff --git a/db/schema_migrations/20221118104752 b/db/schema_migrations/20221118104752
new file mode 100644
index 00000000000..f507d02477a
--- /dev/null
+++ b/db/schema_migrations/20221118104752
@@ -0,0 +1 @@
+2e8e796f4477a027c53ad97b5a582222541f7919bf2ed2f5179fa5bc6a65ec60 \ No newline at end of file
diff --git a/db/schema_migrations/20221121000127 b/db/schema_migrations/20221121000127
new file mode 100644
index 00000000000..de209f0e721
--- /dev/null
+++ b/db/schema_migrations/20221121000127
@@ -0,0 +1 @@
+2b45437b2ec1ed0f1481808fcc9dfb6827d6b46122a8b4b120318399d4e622c0 \ No newline at end of file
diff --git a/db/schema_migrations/20221121000451 b/db/schema_migrations/20221121000451
new file mode 100644
index 00000000000..08a9ebf2248
--- /dev/null
+++ b/db/schema_migrations/20221121000451
@@ -0,0 +1 @@
+93da760ac1c16403bb83255a20f4ff1ff68e0279b4c4aa53a1705e792369f543 \ No newline at end of file
diff --git a/db/schema_migrations/20221121091238 b/db/schema_migrations/20221121091238
new file mode 100644
index 00000000000..d042656a9c2
--- /dev/null
+++ b/db/schema_migrations/20221121091238
@@ -0,0 +1 @@
+065c3eb12275fda5806d5c5674ae95ef99a78752c0417dd97534b6f4e2337c06 \ No newline at end of file
diff --git a/db/schema_migrations/20221121100431 b/db/schema_migrations/20221121100431
new file mode 100644
index 00000000000..c89e74a5c09
--- /dev/null
+++ b/db/schema_migrations/20221121100431
@@ -0,0 +1 @@
+e4d54fe2976b8f38053126a7e25fc26d8c84aca36f219435a7cdf57948d36b94 \ No newline at end of file
diff --git a/db/schema_migrations/20221121152048 b/db/schema_migrations/20221121152048
new file mode 100644
index 00000000000..8d19b1ff54e
--- /dev/null
+++ b/db/schema_migrations/20221121152048
@@ -0,0 +1 @@
+daf3e3b4d3b7b6487542f5cc418b0308bc22da13c0ac6f189ab3fb9352e23898 \ No newline at end of file
diff --git a/db/schema_migrations/20221121152515 b/db/schema_migrations/20221121152515
new file mode 100644
index 00000000000..cb105448807
--- /dev/null
+++ b/db/schema_migrations/20221121152515
@@ -0,0 +1 @@
+23e3d67029b004c63e4c0843ca58556e259c5795075a772043418181335e3349 \ No newline at end of file
diff --git a/db/schema_migrations/20221121155850 b/db/schema_migrations/20221121155850
new file mode 100644
index 00000000000..33c41d1b35e
--- /dev/null
+++ b/db/schema_migrations/20221121155850
@@ -0,0 +1 @@
+f73bd76a9ad54932b1f4b880af225a49089fc6ea782d213a9fc608b3029cddab \ No newline at end of file
diff --git a/db/schema_migrations/20221121180138 b/db/schema_migrations/20221121180138
new file mode 100644
index 00000000000..be8f86feea6
--- /dev/null
+++ b/db/schema_migrations/20221121180138
@@ -0,0 +1 @@
+85eb5cd27485934054a5ee8449b58282b1602e8054941ebebf5c33a169809389 \ No newline at end of file
diff --git a/db/schema_migrations/20221121181627 b/db/schema_migrations/20221121181627
new file mode 100644
index 00000000000..2be29d4fcec
--- /dev/null
+++ b/db/schema_migrations/20221121181627
@@ -0,0 +1 @@
+91c8b8327b502611b47400f229204f3093b87f6dd555c7471a2a827c0ee2d7fe \ No newline at end of file
diff --git a/db/schema_migrations/20221121184931 b/db/schema_migrations/20221121184931
new file mode 100644
index 00000000000..3d90e696941
--- /dev/null
+++ b/db/schema_migrations/20221121184931
@@ -0,0 +1 @@
+1700ebce94f46e086d2f5f4ec3d00d5bf2f212009c8115f1a7851471912c829a \ No newline at end of file
diff --git a/db/schema_migrations/20221122063922 b/db/schema_migrations/20221122063922
new file mode 100644
index 00000000000..1ea4f70aa99
--- /dev/null
+++ b/db/schema_migrations/20221122063922
@@ -0,0 +1 @@
+2c9002eb1c43ecaa8a6d023e1637f061c308d623f2c541e02e1d979f7ff2b5ba \ No newline at end of file
diff --git a/db/schema_migrations/20221122064537 b/db/schema_migrations/20221122064537
new file mode 100644
index 00000000000..40e1b0c0cfb
--- /dev/null
+++ b/db/schema_migrations/20221122064537
@@ -0,0 +1 @@
+735a85cf6adcf9de1949d0c3d4edbc9415ce62649a078c254d2e5699ce69864a \ No newline at end of file
diff --git a/db/schema_migrations/20221122132812 b/db/schema_migrations/20221122132812
new file mode 100644
index 00000000000..d7534c717fd
--- /dev/null
+++ b/db/schema_migrations/20221122132812
@@ -0,0 +1 @@
+dfc5d0f35c41cde817bdb747bbbceaddc9fa77bec0219f7027ffc66191895f1b \ No newline at end of file
diff --git a/db/schema_migrations/20221122141046 b/db/schema_migrations/20221122141046
new file mode 100644
index 00000000000..4baebb0dda6
--- /dev/null
+++ b/db/schema_migrations/20221122141046
@@ -0,0 +1 @@
+64b59128c42f55725a268b051c2f9fc656b2a49a2e721af995e3e25fc7c7e85d \ No newline at end of file
diff --git a/db/schema_migrations/20221122155149 b/db/schema_migrations/20221122155149
new file mode 100644
index 00000000000..46a4270e5ed
--- /dev/null
+++ b/db/schema_migrations/20221122155149
@@ -0,0 +1 @@
+3c9b8f6191297e95c47a0ae2e3da7725ce33daa2a702407e0256393774935b0b \ No newline at end of file
diff --git a/db/schema_migrations/20221122225925 b/db/schema_migrations/20221122225925
new file mode 100644
index 00000000000..81da88065a2
--- /dev/null
+++ b/db/schema_migrations/20221122225925
@@ -0,0 +1 @@
+223aa6d68c159847c8a50889a270c32b10c4efbf6c1445870f156896d0a34559 \ No newline at end of file
diff --git a/db/schema_migrations/20221123133054 b/db/schema_migrations/20221123133054
new file mode 100644
index 00000000000..3a7a382ee74
--- /dev/null
+++ b/db/schema_migrations/20221123133054
@@ -0,0 +1 @@
+1a0a090433dd422b1bd9efdb56f82c02af8bab45b1a651b51a6ed224d823964c \ No newline at end of file
diff --git a/db/schema_migrations/20221124113925 b/db/schema_migrations/20221124113925
new file mode 100644
index 00000000000..60ae3f4c551
--- /dev/null
+++ b/db/schema_migrations/20221124113925
@@ -0,0 +1 @@
+72063c052e88d9351dbf7aedc373dadedb685f63cfbbadc992ddf322c546579b \ No newline at end of file
diff --git a/db/schema_migrations/20221124153602 b/db/schema_migrations/20221124153602
new file mode 100644
index 00000000000..0c6055b4561
--- /dev/null
+++ b/db/schema_migrations/20221124153602
@@ -0,0 +1 @@
+688db679fa547cd07e8c9ac11cb80afd475bb529a462eba1b899391ca721a611 \ No newline at end of file
diff --git a/db/schema_migrations/20221125222221 b/db/schema_migrations/20221125222221
new file mode 100644
index 00000000000..9235ef557b7
--- /dev/null
+++ b/db/schema_migrations/20221125222221
@@ -0,0 +1 @@
+c1974d6763a85469f3d12fe4e51b1bc3b986cc335b7fe79b3875332d34a1b548 \ No newline at end of file
diff --git a/db/schema_migrations/20221125222341 b/db/schema_migrations/20221125222341
new file mode 100644
index 00000000000..5f4a29202e1
--- /dev/null
+++ b/db/schema_migrations/20221125222341
@@ -0,0 +1 @@
+401b563cf9f92627082bbc9850ab2fbe1d9806ced094fda99783c5d51e00fe1c \ No newline at end of file
diff --git a/db/schema_migrations/20221128120634 b/db/schema_migrations/20221128120634
new file mode 100644
index 00000000000..4a2fa52d675
--- /dev/null
+++ b/db/schema_migrations/20221128120634
@@ -0,0 +1 @@
+011a7add2949c39e642da2f9d7908f6e2a118c91f2e334e0eee623711576c3cb \ No newline at end of file
diff --git a/db/schema_migrations/20221128123514 b/db/schema_migrations/20221128123514
new file mode 100644
index 00000000000..a10dff5ab42
--- /dev/null
+++ b/db/schema_migrations/20221128123514
@@ -0,0 +1 @@
+2b763fd1fe9aee5631f9a8f3bdf699a19003e56f5c857efe4410ec21e5dad8f7 \ No newline at end of file
diff --git a/db/schema_migrations/20221128220043 b/db/schema_migrations/20221128220043
new file mode 100644
index 00000000000..0768b098ba1
--- /dev/null
+++ b/db/schema_migrations/20221128220043
@@ -0,0 +1 @@
+6c2e0ae4cbfabd7d303103a75b76746265e273dc0154618c1dc182621a44ae5a \ No newline at end of file
diff --git a/db/schema_migrations/20221128222417 b/db/schema_migrations/20221128222417
new file mode 100644
index 00000000000..a71c9c84fd1
--- /dev/null
+++ b/db/schema_migrations/20221128222417
@@ -0,0 +1 @@
+fc5a253aabc821a371b6755183cc1d785a37881213dd019b522f074fc884bb73 \ No newline at end of file
diff --git a/db/schema_migrations/20221129124240 b/db/schema_migrations/20221129124240
new file mode 100644
index 00000000000..9b0199dc748
--- /dev/null
+++ b/db/schema_migrations/20221129124240
@@ -0,0 +1 @@
+ae20537326115d37db8beb3432ffd3ace447b39a75906535d319da4db1fcb1b2 \ No newline at end of file
diff --git a/db/schema_migrations/20221129192619 b/db/schema_migrations/20221129192619
new file mode 100644
index 00000000000..4097014aca7
--- /dev/null
+++ b/db/schema_migrations/20221129192619
@@ -0,0 +1 @@
+b452251587b4b1f738300cc2c729642c91470b9233ac2db9f3f0061aeff1dd4a \ No newline at end of file
diff --git a/db/schema_migrations/20221130170433 b/db/schema_migrations/20221130170433
new file mode 100644
index 00000000000..e4c75f719e0
--- /dev/null
+++ b/db/schema_migrations/20221130170433
@@ -0,0 +1 @@
+2c744b68accac8be53240dfa46f09e5dae90e8b14541d57ae8e4c1823eded397 \ No newline at end of file
diff --git a/db/schema_migrations/20221130182056 b/db/schema_migrations/20221130182056
new file mode 100644
index 00000000000..5cadd5084e5
--- /dev/null
+++ b/db/schema_migrations/20221130182056
@@ -0,0 +1 @@
+8a6a12d28ddca01863d39e21461daace89aa9d0940bc13a1747712f699c07600 \ No newline at end of file
diff --git a/db/schema_migrations/20221130192239 b/db/schema_migrations/20221130192239
new file mode 100644
index 00000000000..02edafb2710
--- /dev/null
+++ b/db/schema_migrations/20221130192239
@@ -0,0 +1 @@
+dba113bc64ddabf2059a7aea8ac0a830a237957f1ce50e1a3662c7ed18a645eb \ No newline at end of file
diff --git a/db/schema_migrations/20221202031332 b/db/schema_migrations/20221202031332
new file mode 100644
index 00000000000..10dd1ac1b36
--- /dev/null
+++ b/db/schema_migrations/20221202031332
@@ -0,0 +1 @@
+b07f7fdc85af4cdf85ea3f4add62896fea2fc1fa6fcc973ba615f8a0ed84746e \ No newline at end of file
diff --git a/db/schema_migrations/20221202031417 b/db/schema_migrations/20221202031417
new file mode 100644
index 00000000000..324807b8421
--- /dev/null
+++ b/db/schema_migrations/20221202031417
@@ -0,0 +1 @@
+0c422bc0ef354437302cda84dae77d883ab28775e6008c669075b447828ba914 \ No newline at end of file
diff --git a/db/schema_migrations/20221202144210 b/db/schema_migrations/20221202144210
new file mode 100644
index 00000000000..3b37793b1a9
--- /dev/null
+++ b/db/schema_migrations/20221202144210
@@ -0,0 +1 @@
+5e29c2ebe99ef811cac0f894b3a77d2d158ba43070fb924c663db4622b8e79d7 \ No newline at end of file
diff --git a/db/schema_migrations/20221202154128 b/db/schema_migrations/20221202154128
new file mode 100644
index 00000000000..328f13d3d96
--- /dev/null
+++ b/db/schema_migrations/20221202154128
@@ -0,0 +1 @@
+99f7f14d12f9d213016e0c183cfe6a0e8384db04952128299299a5f83d144a41 \ No newline at end of file
diff --git a/db/schema_migrations/20221202154151 b/db/schema_migrations/20221202154151
new file mode 100644
index 00000000000..23f7349048a
--- /dev/null
+++ b/db/schema_migrations/20221202154151
@@ -0,0 +1 @@
+5c64c1072e6b7c05a7cd23a7c50b5cfce9aba7eca6f29169590be9e115acc87d \ No newline at end of file
diff --git a/db/schema_migrations/20221202202351 b/db/schema_migrations/20221202202351
new file mode 100644
index 00000000000..942bc0577d6
--- /dev/null
+++ b/db/schema_migrations/20221202202351
@@ -0,0 +1 @@
+8e9641a603bd9540d0004fb76b407a5cb4392c8cc41c084cd746f354b9a8d417 \ No newline at end of file
diff --git a/db/schema_migrations/20221205061134 b/db/schema_migrations/20221205061134
new file mode 100644
index 00000000000..e6b4b38a902
--- /dev/null
+++ b/db/schema_migrations/20221205061134
@@ -0,0 +1 @@
+dbb03459b96d7b5165ce093d31bbeb253a972e7d54345f2e171fb487447cdb0b \ No newline at end of file
diff --git a/db/schema_migrations/20221205134448 b/db/schema_migrations/20221205134448
new file mode 100644
index 00000000000..13a6fd7c8fd
--- /dev/null
+++ b/db/schema_migrations/20221205134448
@@ -0,0 +1 @@
+95adff6092ae61752ee817560e2ba98bf697660a38ae78e07317e1634436c778 \ No newline at end of file
diff --git a/db/schema_migrations/20221205151917 b/db/schema_migrations/20221205151917
new file mode 100644
index 00000000000..6ae6787c2a9
--- /dev/null
+++ b/db/schema_migrations/20221205151917
@@ -0,0 +1 @@
+64c4d48759a28b2dbac035d290724ee82b8af4af2bef75e1d7e07eefe10e6d17 \ No newline at end of file
diff --git a/db/schema_migrations/20221205170310 b/db/schema_migrations/20221205170310
new file mode 100644
index 00000000000..08365068b43
--- /dev/null
+++ b/db/schema_migrations/20221205170310
@@ -0,0 +1 @@
+6501b62569b96e2be3afc2c79fe438fffc6b45485b04f6b2989ae35f0cf9a4b9 \ No newline at end of file
diff --git a/db/schema_migrations/20221206012013 b/db/schema_migrations/20221206012013
new file mode 100644
index 00000000000..a7cfcc43f7c
--- /dev/null
+++ b/db/schema_migrations/20221206012013
@@ -0,0 +1 @@
+52294ac9fd807fdff49d918d6b49c071b53e683a479af6beef9449302080e44f \ No newline at end of file
diff --git a/db/schema_migrations/20221206075631 b/db/schema_migrations/20221206075631
new file mode 100644
index 00000000000..d8c7332528c
--- /dev/null
+++ b/db/schema_migrations/20221206075631
@@ -0,0 +1 @@
+35879808e9dd8f4436a1fd09c68e28114f8cd448f039eaff000075226d0a80f9 \ No newline at end of file
diff --git a/db/schema_migrations/20221206132610 b/db/schema_migrations/20221206132610
new file mode 100644
index 00000000000..1df21d68a0c
--- /dev/null
+++ b/db/schema_migrations/20221206132610
@@ -0,0 +1 @@
+52d5d6dd9d762da8885fae101ff8014ffaac7ade5c6aa8b306595320997d4e58 \ No newline at end of file
diff --git a/db/schema_migrations/20221206163420 b/db/schema_migrations/20221206163420
new file mode 100644
index 00000000000..f61bb680fd2
--- /dev/null
+++ b/db/schema_migrations/20221206163420
@@ -0,0 +1 @@
+8f22266821405e2931ca80baf4b6760cb340f6207b00e2ffbedb9c62419a3af4 \ No newline at end of file
diff --git a/db/schema_migrations/20221206173132 b/db/schema_migrations/20221206173132
new file mode 100644
index 00000000000..7f34421d270
--- /dev/null
+++ b/db/schema_migrations/20221206173132
@@ -0,0 +1 @@
+c2e7a2c25e281419e2e401e3bff661c706386900faffc784efcfbf7aca169ed8 \ No newline at end of file
diff --git a/db/schema_migrations/20221206211814 b/db/schema_migrations/20221206211814
new file mode 100644
index 00000000000..fb9c93fce39
--- /dev/null
+++ b/db/schema_migrations/20221206211814
@@ -0,0 +1 @@
+9294a13506b4e7f50ffa49674aff45f9223830f6247509029d533cdfea4d9d6f \ No newline at end of file
diff --git a/db/schema_migrations/20221206222032 b/db/schema_migrations/20221206222032
new file mode 100644
index 00000000000..16c8b6ea72b
--- /dev/null
+++ b/db/schema_migrations/20221206222032
@@ -0,0 +1 @@
+9e3f3c09100e3c26de7280bf30dc836a66d9fefb0894c86c80a3c5ee8e36235b \ No newline at end of file
diff --git a/db/schema_migrations/20221206235208 b/db/schema_migrations/20221206235208
new file mode 100644
index 00000000000..7a1a82545ae
--- /dev/null
+++ b/db/schema_migrations/20221206235208
@@ -0,0 +1 @@
+4af9700e48540da55c783900a9156eca04a5e580ca106d94b6e51fa15f3a6547 \ No newline at end of file
diff --git a/db/schema_migrations/20221207140259 b/db/schema_migrations/20221207140259
new file mode 100644
index 00000000000..d0f4a627129
--- /dev/null
+++ b/db/schema_migrations/20221207140259
@@ -0,0 +1 @@
+4ec6d2cd2a497c7416c08fa31618f34474c868fdf0060692b8815492bace3a0d \ No newline at end of file
diff --git a/db/schema_migrations/20221207220120 b/db/schema_migrations/20221207220120
new file mode 100644
index 00000000000..3ff084a13ac
--- /dev/null
+++ b/db/schema_migrations/20221207220120
@@ -0,0 +1 @@
+caa6f87b639b62ea25c9f7adc81bd64bba4084b8987bfc5df84f507b63faab4a \ No newline at end of file
diff --git a/db/schema_migrations/20221208122921 b/db/schema_migrations/20221208122921
new file mode 100644
index 00000000000..1245bbc2bc3
--- /dev/null
+++ b/db/schema_migrations/20221208122921
@@ -0,0 +1 @@
+e205d116057a4e6770b8e8b7e49a87a180fb470087a4394d1a4e529ff1dba631 \ No newline at end of file
diff --git a/db/schema_migrations/20221209110934 b/db/schema_migrations/20221209110934
new file mode 100644
index 00000000000..43951756ce2
--- /dev/null
+++ b/db/schema_migrations/20221209110934
@@ -0,0 +1 @@
+73b704bee30bf90476bcb913d56949cdd59f9c5f4b19a38025c9b02af9cb26a7 \ No newline at end of file
diff --git a/db/schema_migrations/20221209110935 b/db/schema_migrations/20221209110935
new file mode 100644
index 00000000000..6e39531220d
--- /dev/null
+++ b/db/schema_migrations/20221209110935
@@ -0,0 +1 @@
+6a25429104daf2b735f0a22e48dc631ded1aebe7d6f5f9d61520af184f6b5075 \ No newline at end of file
diff --git a/db/schema_migrations/20221210154044 b/db/schema_migrations/20221210154044
new file mode 100644
index 00000000000..44dd561a449
--- /dev/null
+++ b/db/schema_migrations/20221210154044
@@ -0,0 +1 @@
+6349918b178fb0b110f16f4cff6f64c862b3763c5a401238732f6ac507b7c79d \ No newline at end of file
diff --git a/db/schema_migrations/20221212103743 b/db/schema_migrations/20221212103743
new file mode 100644
index 00000000000..7f225c9516f
--- /dev/null
+++ b/db/schema_migrations/20221212103743
@@ -0,0 +1 @@
+a961cf4e53556fe7899fbabc7bc686d5edaf061abe5a008eb7a6304f64f2f22f \ No newline at end of file
diff --git a/db/schema_migrations/20221213064717 b/db/schema_migrations/20221213064717
new file mode 100644
index 00000000000..1da000d50c5
--- /dev/null
+++ b/db/schema_migrations/20221213064717
@@ -0,0 +1 @@
+0677f23100c5a4b010c2601d64c29116150b51735c7b920fa2c87a95de293176 \ No newline at end of file
diff --git a/db/schema_migrations/20221213184314 b/db/schema_migrations/20221213184314
new file mode 100644
index 00000000000..2d297ebe7ee
--- /dev/null
+++ b/db/schema_migrations/20221213184314
@@ -0,0 +1 @@
+b14a060e05fc73c9d76d7c8bec3f9e1fa99b33eae6ec0057b4a398b28414a02a \ No newline at end of file
diff --git a/db/structure.sql b/db/structure.sql
index 350ac2ad454..72d9c94be49 100644
--- a/db/structure.sql
+++ b/db/structure.sql
@@ -10614,6 +10614,29 @@ CREATE SEQUENCE abuse_reports_id_seq
ALTER SEQUENCE abuse_reports_id_seq OWNED BY abuse_reports.id;
+CREATE TABLE achievements (
+ id bigint NOT NULL,
+ namespace_id bigint NOT NULL,
+ created_at timestamp with time zone NOT NULL,
+ updated_at timestamp with time zone NOT NULL,
+ name text NOT NULL,
+ avatar text,
+ description text,
+ revokeable boolean DEFAULT false NOT NULL,
+ CONSTRAINT check_5171b03f22 CHECK ((char_length(name) <= 255)),
+ CONSTRAINT check_a7a7b84a80 CHECK ((char_length(description) <= 1024)),
+ CONSTRAINT check_e174e93a9e CHECK ((char_length(avatar) <= 255))
+);
+
+CREATE SEQUENCE achievements_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE achievements_id_seq OWNED BY achievements.id;
+
CREATE TABLE agent_activity_events (
id bigint NOT NULL,
agent_id bigint NOT NULL,
@@ -11040,7 +11063,9 @@ CREATE TABLE appearances (
email_header_and_footer_enabled boolean DEFAULT false NOT NULL,
profile_image_guidelines text,
profile_image_guidelines_html text,
- CONSTRAINT appearances_profile_image_guidelines CHECK ((char_length(profile_image_guidelines) <= 4096))
+ short_title text,
+ CONSTRAINT appearances_profile_image_guidelines CHECK ((char_length(profile_image_guidelines) <= 4096)),
+ CONSTRAINT check_fdf3064682 CHECK ((char_length(short_title) <= 255))
);
CREATE SEQUENCE appearances_id_seq
@@ -11081,7 +11106,7 @@ CREATE TABLE application_settings (
help_text text,
restricted_visibility_levels text,
version_check_enabled boolean DEFAULT true,
- max_attachment_size integer DEFAULT 10 NOT NULL,
+ max_attachment_size integer DEFAULT 100 NOT NULL,
default_project_visibility integer DEFAULT 0 NOT NULL,
default_snippet_visibility integer DEFAULT 0 NOT NULL,
user_oauth_applications boolean DEFAULT true,
@@ -11529,12 +11554,16 @@ CREATE TABLE application_settings (
encrypted_telesign_customer_xid_iv bytea,
encrypted_telesign_api_key bytea,
encrypted_telesign_api_key_iv bytea,
+ disable_personal_access_tokens boolean DEFAULT false NOT NULL,
+ max_terraform_state_size_bytes integer DEFAULT 0 NOT NULL,
+ bulk_import_enabled boolean DEFAULT false NOT NULL,
CONSTRAINT app_settings_container_reg_cleanup_tags_max_list_size_positive CHECK ((container_registry_cleanup_tags_service_max_list_size >= 0)),
CONSTRAINT app_settings_container_registry_pre_import_tags_rate_positive CHECK ((container_registry_pre_import_tags_rate >= (0)::numeric)),
CONSTRAINT app_settings_dep_proxy_ttl_policies_worker_capacity_positive CHECK ((dependency_proxy_ttl_group_policy_worker_capacity >= 0)),
CONSTRAINT app_settings_ext_pipeline_validation_service_url_text_limit CHECK ((char_length(external_pipeline_validation_service_url) <= 255)),
CONSTRAINT app_settings_git_rate_limit_users_allowlist_max_usernames CHECK ((cardinality(git_rate_limit_users_allowlist) <= 100)),
CONSTRAINT app_settings_max_pages_custom_domains_per_project_check CHECK ((max_pages_custom_domains_per_project >= 0)),
+ CONSTRAINT app_settings_max_terraform_state_size_bytes_check CHECK ((max_terraform_state_size_bytes >= 0)),
CONSTRAINT app_settings_p_cleanup_package_file_worker_capacity_positive CHECK ((packages_cleanup_package_file_worker_capacity >= 0)),
CONSTRAINT app_settings_pkg_registry_cleanup_pol_worker_capacity_gte_zero CHECK ((package_registry_cleanup_policies_worker_capacity >= 0)),
CONSTRAINT app_settings_registry_exp_policies_worker_capacity_positive CHECK ((container_registry_expiration_policies_worker_capacity >= 0)),
@@ -11727,7 +11756,7 @@ CREATE TABLE approval_project_rules (
approvals_required smallint DEFAULT 0 NOT NULL,
name character varying NOT NULL,
rule_type smallint DEFAULT 0 NOT NULL,
- scanners text[],
+ scanners text[] DEFAULT '{}'::text[],
vulnerabilities_allowed smallint DEFAULT 0 NOT NULL,
severity_levels text[] DEFAULT '{}'::text[] NOT NULL,
report_type smallint,
@@ -12524,6 +12553,7 @@ CREATE TABLE bulk_imports (
created_at timestamp with time zone NOT NULL,
updated_at timestamp with time zone NOT NULL,
source_version text,
+ source_enterprise boolean DEFAULT true NOT NULL,
CONSTRAINT check_ea4e58775a CHECK ((char_length(source_version) <= 63))
);
@@ -12582,7 +12612,8 @@ CREATE TABLE ci_build_needs (
name text NOT NULL,
artifacts boolean DEFAULT true NOT NULL,
optional boolean DEFAULT false NOT NULL,
- build_id bigint NOT NULL
+ build_id bigint NOT NULL,
+ partition_id bigint DEFAULT 100 NOT NULL
);
CREATE SEQUENCE ci_build_needs_id_seq
@@ -12602,7 +12633,8 @@ CREATE TABLE ci_build_pending_states (
state smallint,
failure_reason smallint,
trace_checksum bytea,
- trace_bytesize bigint
+ trace_bytesize bigint,
+ partition_id bigint DEFAULT 100 NOT NULL
);
CREATE SEQUENCE ci_build_pending_states_id_seq
@@ -12617,7 +12649,8 @@ ALTER SEQUENCE ci_build_pending_states_id_seq OWNED BY ci_build_pending_states.i
CREATE TABLE ci_build_report_results (
build_id bigint NOT NULL,
project_id bigint NOT NULL,
- data jsonb DEFAULT '{}'::jsonb NOT NULL
+ data jsonb DEFAULT '{}'::jsonb NOT NULL,
+ partition_id bigint DEFAULT 100 NOT NULL
);
CREATE TABLE ci_build_trace_chunks (
@@ -12627,7 +12660,8 @@ CREATE TABLE ci_build_trace_chunks (
raw_data bytea,
checksum bytea,
lock_version integer DEFAULT 0 NOT NULL,
- build_id bigint NOT NULL
+ build_id bigint NOT NULL,
+ partition_id bigint DEFAULT 100 NOT NULL
);
CREATE SEQUENCE ci_build_trace_chunks_id_seq
@@ -12646,7 +12680,8 @@ CREATE TABLE ci_build_trace_metadata (
checksum bytea,
remote_checksum bytea,
last_archival_attempt_at timestamp with time zone,
- archived_at timestamp with time zone
+ archived_at timestamp with time zone,
+ partition_id bigint DEFAULT 100 NOT NULL
);
CREATE TABLE ci_builds (
@@ -12721,7 +12756,8 @@ CREATE TABLE p_ci_builds_metadata (
id bigint NOT NULL,
runtime_runner_features jsonb DEFAULT '{}'::jsonb NOT NULL,
id_tokens jsonb DEFAULT '{}'::jsonb NOT NULL,
- partition_id bigint DEFAULT 100 NOT NULL
+ partition_id bigint DEFAULT 100 NOT NULL,
+ debug_trace_enabled boolean DEFAULT false NOT NULL
)
PARTITION BY LIST (partition_id);
@@ -12749,7 +12785,8 @@ CREATE TABLE ci_builds_metadata (
id bigint DEFAULT nextval('ci_builds_metadata_id_seq'::regclass) NOT NULL,
runtime_runner_features jsonb DEFAULT '{}'::jsonb NOT NULL,
id_tokens jsonb DEFAULT '{}'::jsonb NOT NULL,
- partition_id bigint DEFAULT 100 NOT NULL
+ partition_id bigint DEFAULT 100 NOT NULL,
+ debug_trace_enabled boolean DEFAULT false NOT NULL
);
ALTER TABLE ONLY p_ci_builds_metadata ATTACH PARTITION ci_builds_metadata FOR VALUES IN ('100');
@@ -12758,7 +12795,8 @@ CREATE TABLE ci_builds_runner_session (
url character varying NOT NULL,
certificate character varying,
"authorization" character varying,
- build_id bigint NOT NULL
+ build_id bigint NOT NULL,
+ partition_id bigint DEFAULT 100 NOT NULL
);
CREATE SEQUENCE ci_builds_runner_session_id_seq
@@ -12946,7 +12984,8 @@ CREATE TABLE ci_job_variables (
job_id bigint NOT NULL,
variable_type smallint DEFAULT 1 NOT NULL,
source smallint DEFAULT 0 NOT NULL,
- raw boolean DEFAULT false NOT NULL
+ raw boolean DEFAULT false NOT NULL,
+ partition_id bigint DEFAULT 100 NOT NULL
);
CREATE SEQUENCE ci_job_variables_id_seq
@@ -13039,7 +13078,8 @@ CREATE TABLE ci_pending_builds (
namespace_id bigint,
minutes_exceeded boolean DEFAULT false NOT NULL,
tag_ids integer[] DEFAULT '{}'::integer[],
- namespace_traversal_ids integer[] DEFAULT '{}'::integer[]
+ namespace_traversal_ids integer[] DEFAULT '{}'::integer[],
+ partition_id bigint DEFAULT 100 NOT NULL
);
CREATE SEQUENCE ci_pending_builds_id_seq
@@ -13335,7 +13375,8 @@ CREATE TABLE ci_resources (
created_at timestamp with time zone NOT NULL,
updated_at timestamp with time zone NOT NULL,
resource_group_id bigint NOT NULL,
- build_id bigint
+ build_id bigint,
+ partition_id bigint
);
CREATE SEQUENCE ci_resources_id_seq
@@ -13430,7 +13471,8 @@ CREATE TABLE ci_running_builds (
project_id bigint NOT NULL,
runner_id bigint NOT NULL,
created_at timestamp with time zone DEFAULT now() NOT NULL,
- runner_type smallint NOT NULL
+ runner_type smallint NOT NULL,
+ partition_id bigint DEFAULT 100 NOT NULL
);
CREATE SEQUENCE ci_running_builds_id_seq
@@ -13495,7 +13537,9 @@ CREATE TABLE ci_sources_pipelines (
pipeline_id integer,
source_project_id integer,
source_pipeline_id integer,
- source_job_id bigint
+ source_job_id bigint,
+ partition_id bigint DEFAULT 100 NOT NULL,
+ source_partition_id bigint DEFAULT 100 NOT NULL
);
CREATE SEQUENCE ci_sources_pipelines_id_seq
@@ -13603,7 +13647,8 @@ CREATE TABLE ci_unit_test_failures (
id bigint NOT NULL,
failed_at timestamp with time zone NOT NULL,
unit_test_id bigint NOT NULL,
- build_id bigint NOT NULL
+ build_id bigint NOT NULL,
+ partition_id bigint DEFAULT 100 NOT NULL
);
CREATE SEQUENCE ci_unit_test_failures_id_seq
@@ -14168,6 +14213,7 @@ CREATE TABLE container_repositories (
migration_plan text,
last_cleanup_deleted_tags_count integer,
delete_started_at timestamp with time zone,
+ status_updated_at timestamp with time zone,
CONSTRAINT check_05e9012f36 CHECK ((char_length(migration_plan) <= 255)),
CONSTRAINT check_13c58fe73a CHECK ((char_length(migration_state) <= 255)),
CONSTRAINT check_97f0249439 CHECK ((char_length(migration_aborted_in_state) <= 255))
@@ -14358,6 +14404,43 @@ CREATE SEQUENCE customer_relations_organizations_id_seq
ALTER SEQUENCE customer_relations_organizations_id_seq OWNED BY customer_relations_organizations.id;
+CREATE TABLE dast_pre_scan_verification_steps (
+ id bigint NOT NULL,
+ dast_pre_scan_verification_id bigint NOT NULL,
+ created_at timestamp with time zone NOT NULL,
+ updated_at timestamp with time zone NOT NULL,
+ name text,
+ verification_errors text[] DEFAULT '{}'::text[] NOT NULL,
+ CONSTRAINT check_cd216b95e4 CHECK ((char_length(name) <= 255))
+);
+
+CREATE SEQUENCE dast_pre_scan_verification_steps_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE dast_pre_scan_verification_steps_id_seq OWNED BY dast_pre_scan_verification_steps.id;
+
+CREATE TABLE dast_pre_scan_verifications (
+ id bigint NOT NULL,
+ dast_profile_id bigint NOT NULL,
+ ci_pipeline_id bigint NOT NULL,
+ created_at timestamp with time zone NOT NULL,
+ updated_at timestamp with time zone NOT NULL,
+ status smallint DEFAULT 0 NOT NULL
+);
+
+CREATE SEQUENCE dast_pre_scan_verifications_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE dast_pre_scan_verifications_id_seq OWNED BY dast_pre_scan_verifications.id;
+
CREATE TABLE dast_profile_schedules (
id bigint NOT NULL,
project_id bigint NOT NULL,
@@ -14449,6 +14532,21 @@ CREATE SEQUENCE dast_scanner_profiles_id_seq
ALTER SEQUENCE dast_scanner_profiles_id_seq OWNED BY dast_scanner_profiles.id;
+CREATE TABLE dast_scanner_profiles_tags (
+ id bigint NOT NULL,
+ dast_scanner_profile_id bigint NOT NULL,
+ tag_id bigint NOT NULL
+);
+
+CREATE SEQUENCE dast_scanner_profiles_tags_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE dast_scanner_profiles_tags_id_seq OWNED BY dast_scanner_profiles_tags.id;
+
CREATE TABLE dast_site_profile_secret_variables (
id bigint NOT NULL,
dast_site_profile_id bigint NOT NULL,
@@ -14590,6 +14688,27 @@ CREATE SEQUENCE dast_sites_id_seq
ALTER SEQUENCE dast_sites_id_seq OWNED BY dast_sites.id;
+CREATE TABLE dependency_list_exports (
+ id bigint NOT NULL,
+ created_at timestamp with time zone NOT NULL,
+ updated_at timestamp with time zone NOT NULL,
+ project_id bigint NOT NULL,
+ user_id bigint,
+ file_store integer,
+ status smallint DEFAULT 0 NOT NULL,
+ file text,
+ CONSTRAINT check_fff6fc9b2f CHECK ((char_length(file) <= 255))
+);
+
+CREATE SEQUENCE dependency_list_exports_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE dependency_list_exports_id_seq OWNED BY dependency_list_exports.id;
+
CREATE TABLE dependency_proxy_blob_states (
verification_started_at timestamp with time zone,
verification_retry_at timestamp with time zone,
@@ -14631,7 +14750,7 @@ CREATE TABLE dependency_proxy_group_settings (
group_id integer NOT NULL,
created_at timestamp with time zone NOT NULL,
updated_at timestamp with time zone NOT NULL,
- enabled boolean DEFAULT false NOT NULL
+ enabled boolean DEFAULT true NOT NULL
);
CREATE SEQUENCE dependency_proxy_group_settings_id_seq
@@ -14651,6 +14770,18 @@ CREATE TABLE dependency_proxy_image_ttl_group_policies (
enabled boolean DEFAULT false NOT NULL
);
+CREATE TABLE dependency_proxy_manifest_states (
+ verification_started_at timestamp with time zone,
+ verification_retry_at timestamp with time zone,
+ verified_at timestamp with time zone,
+ dependency_proxy_manifest_id bigint NOT NULL,
+ verification_state smallint DEFAULT 0 NOT NULL,
+ verification_retry_count smallint DEFAULT 0 NOT NULL,
+ verification_checksum bytea,
+ verification_failure text,
+ CONSTRAINT check_fdd5d9791b CHECK ((char_length(verification_failure) <= 255))
+);
+
CREATE TABLE dependency_proxy_manifests (
id bigint NOT NULL,
created_at timestamp with time zone NOT NULL,
@@ -15363,44 +15494,6 @@ CREATE SEQUENCE evidences_id_seq
ALTER SEQUENCE evidences_id_seq OWNED BY evidences.id;
-CREATE TABLE experiment_subjects (
- id bigint NOT NULL,
- experiment_id bigint NOT NULL,
- user_id bigint,
- project_id bigint,
- variant smallint DEFAULT 0 NOT NULL,
- created_at timestamp with time zone NOT NULL,
- updated_at timestamp with time zone NOT NULL,
- converted_at timestamp with time zone,
- context jsonb DEFAULT '{}'::jsonb NOT NULL,
- namespace_id bigint,
- CONSTRAINT check_f6411bc4b5 CHECK ((num_nonnulls(user_id, namespace_id, project_id) = 1))
-);
-
-CREATE SEQUENCE experiment_subjects_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-ALTER SEQUENCE experiment_subjects_id_seq OWNED BY experiment_subjects.id;
-
-CREATE TABLE experiments (
- id bigint NOT NULL,
- name text NOT NULL,
- CONSTRAINT check_e2dda25ed0 CHECK ((char_length(name) <= 255))
-);
-
-CREATE SEQUENCE experiments_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-ALTER SEQUENCE experiments_id_seq OWNED BY experiments.id;
-
CREATE TABLE external_approval_rules (
id bigint NOT NULL,
project_id bigint NOT NULL,
@@ -15953,6 +16046,7 @@ CREATE TABLE gitlab_subscriptions (
seats_owed integer DEFAULT 0 NOT NULL,
trial_extension_type smallint,
max_seats_used_changed_at timestamp with time zone,
+ last_seat_refresh_at timestamp with time zone,
CONSTRAINT check_77fea3f0e7 CHECK ((namespace_id IS NOT NULL))
);
@@ -16913,6 +17007,8 @@ CREATE TABLE issues (
work_item_type_id bigint,
namespace_id bigint,
start_date date,
+ CONSTRAINT check_2addf801cd CHECK ((work_item_type_id IS NOT NULL)),
+ CONSTRAINT check_c33362cd43 CHECK ((namespace_id IS NOT NULL)),
CONSTRAINT check_fba63f706d CHECK ((lock_version IS NOT NULL))
);
@@ -17080,7 +17176,8 @@ CREATE TABLE keys (
fingerprint_sha256 bytea,
expires_at timestamp with time zone,
expiry_notification_delivered_at timestamp with time zone,
- before_expiry_notification_delivered_at timestamp with time zone
+ before_expiry_notification_delivered_at timestamp with time zone,
+ usage_type smallint DEFAULT 0 NOT NULL
);
CREATE SEQUENCE keys_id_seq
@@ -17324,7 +17421,8 @@ CREATE TABLE member_roles (
created_at timestamp with time zone NOT NULL,
updated_at timestamp with time zone NOT NULL,
base_access_level integer NOT NULL,
- download_code boolean DEFAULT false
+ download_code boolean DEFAULT false,
+ read_code boolean DEFAULT false
);
CREATE SEQUENCE member_roles_id_seq
@@ -17617,7 +17715,8 @@ CREATE TABLE merge_request_predictions (
merge_request_id bigint NOT NULL,
created_at timestamp with time zone NOT NULL,
updated_at timestamp with time zone NOT NULL,
- suggested_reviewers jsonb DEFAULT '{}'::jsonb NOT NULL
+ suggested_reviewers jsonb DEFAULT '{}'::jsonb NOT NULL,
+ accepted_reviewers jsonb DEFAULT '{}'::jsonb NOT NULL
);
CREATE SEQUENCE merge_request_predictions_merge_request_id_seq
@@ -17846,6 +17945,26 @@ CREATE SEQUENCE milestones_id_seq
ALTER SEQUENCE milestones_id_seq OWNED BY milestones.id;
+CREATE TABLE ml_candidate_metadata (
+ id bigint NOT NULL,
+ created_at timestamp with time zone NOT NULL,
+ updated_at timestamp with time zone NOT NULL,
+ candidate_id bigint NOT NULL,
+ name text NOT NULL,
+ value text NOT NULL,
+ CONSTRAINT check_6b38a286a5 CHECK ((char_length(name) <= 255)),
+ CONSTRAINT check_9453f4a8e9 CHECK ((char_length(value) <= 5000))
+);
+
+CREATE SEQUENCE ml_candidate_metadata_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE ml_candidate_metadata_id_seq OWNED BY ml_candidate_metadata.id;
+
CREATE TABLE ml_candidate_metrics (
id bigint NOT NULL,
created_at timestamp with time zone NOT NULL,
@@ -17909,6 +18028,26 @@ CREATE SEQUENCE ml_candidates_id_seq
ALTER SEQUENCE ml_candidates_id_seq OWNED BY ml_candidates.id;
+CREATE TABLE ml_experiment_metadata (
+ id bigint NOT NULL,
+ created_at timestamp with time zone NOT NULL,
+ updated_at timestamp with time zone NOT NULL,
+ experiment_id bigint NOT NULL,
+ name text NOT NULL,
+ value text NOT NULL,
+ CONSTRAINT check_112fe5002d CHECK ((char_length(name) <= 255)),
+ CONSTRAINT check_a91c633d68 CHECK ((char_length(value) <= 5000))
+);
+
+CREATE SEQUENCE ml_experiment_metadata_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE ml_experiment_metadata_id_seq OWNED BY ml_experiment_metadata.id;
+
CREATE TABLE ml_experiments (
id bigint NOT NULL,
created_at timestamp with time zone NOT NULL,
@@ -18000,7 +18139,9 @@ CREATE TABLE namespace_details (
description text,
description_html text,
free_user_cap_over_limt_notified_at timestamp with time zone,
- free_user_cap_over_limit_notified_at timestamp with time zone
+ free_user_cap_over_limit_notified_at timestamp with time zone,
+ dashboard_notification_at timestamp with time zone,
+ dashboard_enforcement_at timestamp with time zone
);
CREATE TABLE namespace_limits (
@@ -18072,6 +18213,7 @@ CREATE TABLE namespace_settings (
allow_merge_on_skipped_pipeline boolean DEFAULT false NOT NULL,
only_allow_merge_if_all_discussions_are_resolved boolean DEFAULT false NOT NULL,
default_compliance_framework_id bigint,
+ runner_registration_enabled boolean DEFAULT true,
CONSTRAINT check_0ba93c78c7 CHECK ((char_length(default_branch_name) <= 255)),
CONSTRAINT namespace_settings_unique_project_download_limit_allowlist_size CHECK ((cardinality(unique_project_download_limit_allowlist) <= 100))
);
@@ -18143,8 +18285,7 @@ CREATE TABLE namespaces (
push_rule_id bigint,
shared_runners_enabled boolean DEFAULT true NOT NULL,
allow_descendants_override_disabled_shared_runners boolean DEFAULT false NOT NULL,
- traversal_ids integer[] DEFAULT '{}'::integer[] NOT NULL,
- tmp_project_id integer
+ traversal_ids integer[] DEFAULT '{}'::integer[] NOT NULL
);
CREATE SEQUENCE namespaces_id_seq
@@ -19408,7 +19549,9 @@ CREATE TABLE plan_limits (
project_ci_variables integer DEFAULT 200 NOT NULL,
group_ci_variables integer DEFAULT 200 NOT NULL,
ci_max_artifact_size_cyclonedx integer DEFAULT 1 NOT NULL,
- rpm_max_file_size bigint DEFAULT '5368709120'::bigint NOT NULL
+ rpm_max_file_size bigint DEFAULT '5368709120'::bigint NOT NULL,
+ ci_max_artifact_size_requirements_v2 integer DEFAULT 0 NOT NULL,
+ pipeline_hierarchy_size integer DEFAULT 1000 NOT NULL
);
CREATE SEQUENCE plan_limits_id_seq
@@ -19437,6 +19580,58 @@ CREATE SEQUENCE plans_id_seq
ALTER SEQUENCE plans_id_seq OWNED BY plans.id;
+CREATE TABLE pm_licenses (
+ id bigint NOT NULL,
+ spdx_identifier text NOT NULL,
+ CONSTRAINT check_c1eb81d1ba CHECK ((char_length(spdx_identifier) <= 50))
+);
+
+CREATE SEQUENCE pm_licenses_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE pm_licenses_id_seq OWNED BY pm_licenses.id;
+
+CREATE TABLE pm_package_version_licenses (
+ pm_package_version_id bigint NOT NULL,
+ pm_license_id bigint NOT NULL
+);
+
+CREATE TABLE pm_package_versions (
+ id bigint NOT NULL,
+ pm_package_id bigint,
+ version text NOT NULL,
+ CONSTRAINT check_2d8a88cfcc CHECK ((char_length(version) <= 255))
+);
+
+CREATE SEQUENCE pm_package_versions_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE pm_package_versions_id_seq OWNED BY pm_package_versions.id;
+
+CREATE TABLE pm_packages (
+ id bigint NOT NULL,
+ purl_type smallint NOT NULL,
+ name text NOT NULL,
+ CONSTRAINT check_3a3aedb8ba CHECK ((char_length(name) <= 255))
+);
+
+CREATE SEQUENCE pm_packages_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE pm_packages_id_seq OWNED BY pm_packages.id;
+
CREATE TABLE pool_repositories (
id bigint NOT NULL,
shard_id integer NOT NULL,
@@ -20251,6 +20446,7 @@ CREATE TABLE project_settings (
suggested_reviewers_enabled boolean DEFAULT false NOT NULL,
only_allow_merge_if_all_status_checks_passed boolean DEFAULT false NOT NULL,
mirror_branch_regex text,
+ allow_pipeline_trigger_approve_deployment boolean DEFAULT false NOT NULL,
CONSTRAINT check_2981f15877 CHECK ((char_length(jitsu_key) <= 100)),
CONSTRAINT check_3a03e7557a CHECK ((char_length(previous_default_branch) <= 4096)),
CONSTRAINT check_3ca5cbffe6 CHECK ((char_length(issue_branch_template) <= 255)),
@@ -21479,6 +21675,21 @@ CREATE SEQUENCE shards_id_seq
ALTER SEQUENCE shards_id_seq OWNED BY shards.id;
+CREATE TABLE slack_api_scopes (
+ id bigint NOT NULL,
+ name text NOT NULL,
+ CONSTRAINT check_738678187a CHECK ((char_length(name) <= 100))
+);
+
+CREATE SEQUENCE slack_api_scopes_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE slack_api_scopes_id_seq OWNED BY slack_api_scopes.id;
+
CREATE TABLE slack_integrations (
id integer NOT NULL,
team_id character varying NOT NULL,
@@ -21504,6 +21715,21 @@ CREATE SEQUENCE slack_integrations_id_seq
ALTER SEQUENCE slack_integrations_id_seq OWNED BY slack_integrations.id;
+CREATE TABLE slack_integrations_scopes (
+ id bigint NOT NULL,
+ slack_api_scope_id bigint NOT NULL,
+ slack_integration_id bigint NOT NULL
+);
+
+CREATE SEQUENCE slack_integrations_scopes_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE slack_integrations_scopes_id_seq OWNED BY slack_integrations_scopes.id;
+
CREATE TABLE smartcard_identities (
id bigint NOT NULL,
user_id integer NOT NULL,
@@ -22255,9 +22481,11 @@ CREATE TABLE user_details (
location text DEFAULT ''::text NOT NULL,
organization text DEFAULT ''::text NOT NULL,
password_last_changed_at timestamp with time zone DEFAULT now() NOT NULL,
+ onboarding_step_url text,
CONSTRAINT check_245664af82 CHECK ((char_length(webauthn_xid) <= 100)),
CONSTRAINT check_444573ee52 CHECK ((char_length(skype) <= 500)),
CONSTRAINT check_466a25be35 CHECK ((char_length(twitter) <= 500)),
+ CONSTRAINT check_4f51129940 CHECK ((char_length(onboarding_step_url) <= 2000)),
CONSTRAINT check_7b246dad73 CHECK ((char_length(organization) <= 500)),
CONSTRAINT check_7d6489f8f3 CHECK ((char_length(linkedin) <= 500)),
CONSTRAINT check_7fe2044093 CHECK ((char_length(website_url) <= 500)),
@@ -22396,6 +22624,7 @@ CREATE TABLE user_preferences (
diffs_addition_color text,
markdown_automatic_lists boolean DEFAULT true NOT NULL,
use_legacy_web_ide boolean DEFAULT false NOT NULL,
+ use_new_navigation boolean,
CONSTRAINT check_89bf269f41 CHECK ((char_length(diffs_deletion_color) <= 7)),
CONSTRAINT check_d07ccd35f7 CHECK ((char_length(diffs_addition_color) <= 7))
);
@@ -22548,6 +22777,7 @@ CREATE TABLE users (
user_type smallint,
static_object_token_encrypted text,
otp_secret_expires_at timestamp with time zone,
+ onboarding_in_progress boolean DEFAULT false NOT NULL,
CONSTRAINT check_7bde697e8e CHECK ((char_length(static_object_token_encrypted) <= 255))
);
@@ -23113,7 +23343,7 @@ CREATE TABLE vulnerability_state_transitions (
comment text,
dismissal_reason smallint,
CONSTRAINT check_d1ca8ec043 CHECK ((from_state <> to_state)),
- CONSTRAINT check_fca4a7ca39 CHECK ((char_length(comment) <= 255))
+ CONSTRAINT check_fe2eb6a0f3 CHECK ((char_length(comment) <= 50000))
);
CREATE SEQUENCE vulnerability_state_transitions_id_seq
@@ -23282,6 +23512,22 @@ CREATE SEQUENCE wiki_page_slugs_id_seq
ALTER SEQUENCE wiki_page_slugs_id_seq OWNED BY wiki_page_slugs.id;
+CREATE TABLE work_item_hierarchy_restrictions (
+ id bigint NOT NULL,
+ parent_type_id bigint NOT NULL,
+ child_type_id bigint NOT NULL,
+ maximum_depth smallint
+);
+
+CREATE SEQUENCE work_item_hierarchy_restrictions_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1;
+
+ALTER SEQUENCE work_item_hierarchy_restrictions_id_seq OWNED BY work_item_hierarchy_restrictions.id;
+
CREATE TABLE work_item_parent_links (
id bigint NOT NULL,
work_item_id bigint NOT NULL,
@@ -23300,6 +23546,13 @@ CREATE SEQUENCE work_item_parent_links_id_seq
ALTER SEQUENCE work_item_parent_links_id_seq OWNED BY work_item_parent_links.id;
+CREATE TABLE work_item_progresses (
+ created_at timestamp with time zone NOT NULL,
+ updated_at timestamp with time zone NOT NULL,
+ issue_id bigint NOT NULL,
+ progress smallint DEFAULT 0 NOT NULL
+);
+
CREATE TABLE work_item_types (
id bigint NOT NULL,
base_type smallint DEFAULT 0 NOT NULL,
@@ -23427,6 +23680,8 @@ ALTER SEQUENCE zoom_meetings_id_seq OWNED BY zoom_meetings.id;
ALTER TABLE ONLY abuse_reports ALTER COLUMN id SET DEFAULT nextval('abuse_reports_id_seq'::regclass);
+ALTER TABLE ONLY achievements ALTER COLUMN id SET DEFAULT nextval('achievements_id_seq'::regclass);
+
ALTER TABLE ONLY agent_activity_events ALTER COLUMN id SET DEFAULT nextval('agent_activity_events_id_seq'::regclass);
ALTER TABLE ONLY agent_group_authorizations ALTER COLUMN id SET DEFAULT nextval('agent_group_authorizations_id_seq'::regclass);
@@ -23709,12 +23964,18 @@ ALTER TABLE ONLY customer_relations_contacts ALTER COLUMN id SET DEFAULT nextval
ALTER TABLE ONLY customer_relations_organizations ALTER COLUMN id SET DEFAULT nextval('customer_relations_organizations_id_seq'::regclass);
+ALTER TABLE ONLY dast_pre_scan_verification_steps ALTER COLUMN id SET DEFAULT nextval('dast_pre_scan_verification_steps_id_seq'::regclass);
+
+ALTER TABLE ONLY dast_pre_scan_verifications ALTER COLUMN id SET DEFAULT nextval('dast_pre_scan_verifications_id_seq'::regclass);
+
ALTER TABLE ONLY dast_profile_schedules ALTER COLUMN id SET DEFAULT nextval('dast_profile_schedules_id_seq'::regclass);
ALTER TABLE ONLY dast_profiles ALTER COLUMN id SET DEFAULT nextval('dast_profiles_id_seq'::regclass);
ALTER TABLE ONLY dast_scanner_profiles ALTER COLUMN id SET DEFAULT nextval('dast_scanner_profiles_id_seq'::regclass);
+ALTER TABLE ONLY dast_scanner_profiles_tags ALTER COLUMN id SET DEFAULT nextval('dast_scanner_profiles_tags_id_seq'::regclass);
+
ALTER TABLE ONLY dast_site_profile_secret_variables ALTER COLUMN id SET DEFAULT nextval('dast_site_profile_secret_variables_id_seq'::regclass);
ALTER TABLE ONLY dast_site_profiles ALTER COLUMN id SET DEFAULT nextval('dast_site_profiles_id_seq'::regclass);
@@ -23725,6 +23986,8 @@ ALTER TABLE ONLY dast_site_validations ALTER COLUMN id SET DEFAULT nextval('dast
ALTER TABLE ONLY dast_sites ALTER COLUMN id SET DEFAULT nextval('dast_sites_id_seq'::regclass);
+ALTER TABLE ONLY dependency_list_exports ALTER COLUMN id SET DEFAULT nextval('dependency_list_exports_id_seq'::regclass);
+
ALTER TABLE ONLY dependency_proxy_blobs ALTER COLUMN id SET DEFAULT nextval('dependency_proxy_blobs_id_seq'::regclass);
ALTER TABLE ONLY dependency_proxy_group_settings ALTER COLUMN id SET DEFAULT nextval('dependency_proxy_group_settings_id_seq'::regclass);
@@ -23791,10 +24054,6 @@ ALTER TABLE ONLY events ALTER COLUMN id SET DEFAULT nextval('events_id_seq'::reg
ALTER TABLE ONLY evidences ALTER COLUMN id SET DEFAULT nextval('evidences_id_seq'::regclass);
-ALTER TABLE ONLY experiment_subjects ALTER COLUMN id SET DEFAULT nextval('experiment_subjects_id_seq'::regclass);
-
-ALTER TABLE ONLY experiments ALTER COLUMN id SET DEFAULT nextval('experiments_id_seq'::regclass);
-
ALTER TABLE ONLY external_approval_rules ALTER COLUMN id SET DEFAULT nextval('external_approval_rules_id_seq'::regclass);
ALTER TABLE ONLY external_approval_rules_protected_branches ALTER COLUMN id SET DEFAULT nextval('external_approval_rules_protected_branches_id_seq'::regclass);
@@ -24019,12 +24278,16 @@ ALTER TABLE ONLY metrics_users_starred_dashboards ALTER COLUMN id SET DEFAULT ne
ALTER TABLE ONLY milestones ALTER COLUMN id SET DEFAULT nextval('milestones_id_seq'::regclass);
+ALTER TABLE ONLY ml_candidate_metadata ALTER COLUMN id SET DEFAULT nextval('ml_candidate_metadata_id_seq'::regclass);
+
ALTER TABLE ONLY ml_candidate_metrics ALTER COLUMN id SET DEFAULT nextval('ml_candidate_metrics_id_seq'::regclass);
ALTER TABLE ONLY ml_candidate_params ALTER COLUMN id SET DEFAULT nextval('ml_candidate_params_id_seq'::regclass);
ALTER TABLE ONLY ml_candidates ALTER COLUMN id SET DEFAULT nextval('ml_candidates_id_seq'::regclass);
+ALTER TABLE ONLY ml_experiment_metadata ALTER COLUMN id SET DEFAULT nextval('ml_experiment_metadata_id_seq'::regclass);
+
ALTER TABLE ONLY ml_experiments ALTER COLUMN id SET DEFAULT nextval('ml_experiments_id_seq'::regclass);
ALTER TABLE ONLY namespace_admin_notes ALTER COLUMN id SET DEFAULT nextval('namespace_admin_notes_id_seq'::regclass);
@@ -24137,6 +24400,12 @@ ALTER TABLE ONLY plan_limits ALTER COLUMN id SET DEFAULT nextval('plan_limits_id
ALTER TABLE ONLY plans ALTER COLUMN id SET DEFAULT nextval('plans_id_seq'::regclass);
+ALTER TABLE ONLY pm_licenses ALTER COLUMN id SET DEFAULT nextval('pm_licenses_id_seq'::regclass);
+
+ALTER TABLE ONLY pm_package_versions ALTER COLUMN id SET DEFAULT nextval('pm_package_versions_id_seq'::regclass);
+
+ALTER TABLE ONLY pm_packages ALTER COLUMN id SET DEFAULT nextval('pm_packages_id_seq'::regclass);
+
ALTER TABLE ONLY pool_repositories ALTER COLUMN id SET DEFAULT nextval('pool_repositories_id_seq'::regclass);
ALTER TABLE ONLY postgres_async_indexes ALTER COLUMN id SET DEFAULT nextval('postgres_async_indexes_id_seq'::regclass);
@@ -24299,8 +24568,12 @@ ALTER TABLE ONLY sentry_issues ALTER COLUMN id SET DEFAULT nextval('sentry_issue
ALTER TABLE ONLY shards ALTER COLUMN id SET DEFAULT nextval('shards_id_seq'::regclass);
+ALTER TABLE ONLY slack_api_scopes ALTER COLUMN id SET DEFAULT nextval('slack_api_scopes_id_seq'::regclass);
+
ALTER TABLE ONLY slack_integrations ALTER COLUMN id SET DEFAULT nextval('slack_integrations_id_seq'::regclass);
+ALTER TABLE ONLY slack_integrations_scopes ALTER COLUMN id SET DEFAULT nextval('slack_integrations_scopes_id_seq'::regclass);
+
ALTER TABLE ONLY smartcard_identities ALTER COLUMN id SET DEFAULT nextval('smartcard_identities_id_seq'::regclass);
ALTER TABLE ONLY snippet_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('snippet_repository_storage_moves_id_seq'::regclass);
@@ -24449,6 +24722,8 @@ ALTER TABLE ONLY wiki_page_meta ALTER COLUMN id SET DEFAULT nextval('wiki_page_m
ALTER TABLE ONLY wiki_page_slugs ALTER COLUMN id SET DEFAULT nextval('wiki_page_slugs_id_seq'::regclass);
+ALTER TABLE ONLY work_item_hierarchy_restrictions ALTER COLUMN id SET DEFAULT nextval('work_item_hierarchy_restrictions_id_seq'::regclass);
+
ALTER TABLE ONLY work_item_parent_links ALTER COLUMN id SET DEFAULT nextval('work_item_parent_links_id_seq'::regclass);
ALTER TABLE ONLY work_item_types ALTER COLUMN id SET DEFAULT nextval('work_item_types_id_seq'::regclass);
@@ -25054,6 +25329,9 @@ ALTER TABLE ONLY gitlab_partitions_static.product_analytics_events_experimental_
ALTER TABLE ONLY abuse_reports
ADD CONSTRAINT abuse_reports_pkey PRIMARY KEY (id);
+ALTER TABLE ONLY achievements
+ ADD CONSTRAINT achievements_pkey PRIMARY KEY (id);
+
ALTER TABLE ONLY agent_activity_events
ADD CONSTRAINT agent_activity_events_pkey PRIMARY KEY (id);
@@ -25540,6 +25818,12 @@ ALTER TABLE ONLY customer_relations_contacts
ALTER TABLE ONLY customer_relations_organizations
ADD CONSTRAINT customer_relations_organizations_pkey PRIMARY KEY (id);
+ALTER TABLE ONLY dast_pre_scan_verification_steps
+ ADD CONSTRAINT dast_pre_scan_verification_steps_pkey PRIMARY KEY (id);
+
+ALTER TABLE ONLY dast_pre_scan_verifications
+ ADD CONSTRAINT dast_pre_scan_verifications_pkey PRIMARY KEY (id);
+
ALTER TABLE ONLY dast_profile_schedules
ADD CONSTRAINT dast_profile_schedules_pkey PRIMARY KEY (id);
@@ -25555,6 +25839,9 @@ ALTER TABLE ONLY dast_scanner_profiles_builds
ALTER TABLE ONLY dast_scanner_profiles
ADD CONSTRAINT dast_scanner_profiles_pkey PRIMARY KEY (id);
+ALTER TABLE ONLY dast_scanner_profiles_tags
+ ADD CONSTRAINT dast_scanner_profiles_tags_pkey PRIMARY KEY (id);
+
ALTER TABLE ONLY dast_site_profile_secret_variables
ADD CONSTRAINT dast_site_profile_secret_variables_pkey PRIMARY KEY (id);
@@ -25576,6 +25863,9 @@ ALTER TABLE ONLY dast_site_validations
ALTER TABLE ONLY dast_sites
ADD CONSTRAINT dast_sites_pkey PRIMARY KEY (id);
+ALTER TABLE ONLY dependency_list_exports
+ ADD CONSTRAINT dependency_list_exports_pkey PRIMARY KEY (id);
+
ALTER TABLE ONLY dependency_proxy_blob_states
ADD CONSTRAINT dependency_proxy_blob_states_pkey PRIMARY KEY (dependency_proxy_blob_id);
@@ -25588,6 +25878,9 @@ ALTER TABLE ONLY dependency_proxy_group_settings
ALTER TABLE ONLY dependency_proxy_image_ttl_group_policies
ADD CONSTRAINT dependency_proxy_image_ttl_group_policies_pkey PRIMARY KEY (group_id);
+ALTER TABLE ONLY dependency_proxy_manifest_states
+ ADD CONSTRAINT dependency_proxy_manifest_states_pkey PRIMARY KEY (dependency_proxy_manifest_id);
+
ALTER TABLE ONLY dependency_proxy_manifests
ADD CONSTRAINT dependency_proxy_manifests_pkey PRIMARY KEY (id);
@@ -25693,12 +25986,6 @@ ALTER TABLE ONLY events
ALTER TABLE ONLY evidences
ADD CONSTRAINT evidences_pkey PRIMARY KEY (id);
-ALTER TABLE ONLY experiment_subjects
- ADD CONSTRAINT experiment_subjects_pkey PRIMARY KEY (id);
-
-ALTER TABLE ONLY experiments
- ADD CONSTRAINT experiments_pkey PRIMARY KEY (id);
-
ALTER TABLE ONLY external_approval_rules
ADD CONSTRAINT external_approval_rules_pkey PRIMARY KEY (id);
@@ -26074,6 +26361,9 @@ ALTER TABLE ONLY milestone_releases
ALTER TABLE ONLY milestones
ADD CONSTRAINT milestones_pkey PRIMARY KEY (id);
+ALTER TABLE ONLY ml_candidate_metadata
+ ADD CONSTRAINT ml_candidate_metadata_pkey PRIMARY KEY (id);
+
ALTER TABLE ONLY ml_candidate_metrics
ADD CONSTRAINT ml_candidate_metrics_pkey PRIMARY KEY (id);
@@ -26083,6 +26373,9 @@ ALTER TABLE ONLY ml_candidate_params
ALTER TABLE ONLY ml_candidates
ADD CONSTRAINT ml_candidates_pkey PRIMARY KEY (id);
+ALTER TABLE ONLY ml_experiment_metadata
+ ADD CONSTRAINT ml_experiment_metadata_pkey PRIMARY KEY (id);
+
ALTER TABLE ONLY ml_experiments
ADD CONSTRAINT ml_experiments_pkey PRIMARY KEY (id);
@@ -26299,6 +26592,18 @@ ALTER TABLE ONLY plan_limits
ALTER TABLE ONLY plans
ADD CONSTRAINT plans_pkey PRIMARY KEY (id);
+ALTER TABLE ONLY pm_licenses
+ ADD CONSTRAINT pm_licenses_pkey PRIMARY KEY (id);
+
+ALTER TABLE ONLY pm_package_version_licenses
+ ADD CONSTRAINT pm_package_version_licenses_pkey PRIMARY KEY (pm_package_version_id, pm_license_id);
+
+ALTER TABLE ONLY pm_package_versions
+ ADD CONSTRAINT pm_package_versions_pkey PRIMARY KEY (id);
+
+ALTER TABLE ONLY pm_packages
+ ADD CONSTRAINT pm_packages_pkey PRIMARY KEY (id);
+
ALTER TABLE ONLY pool_repositories
ADD CONSTRAINT pool_repositories_pkey PRIMARY KEY (id);
@@ -26587,9 +26892,15 @@ ALTER TABLE ONLY service_desk_settings
ALTER TABLE ONLY shards
ADD CONSTRAINT shards_pkey PRIMARY KEY (id);
+ALTER TABLE ONLY slack_api_scopes
+ ADD CONSTRAINT slack_api_scopes_pkey PRIMARY KEY (id);
+
ALTER TABLE ONLY slack_integrations
ADD CONSTRAINT slack_integrations_pkey PRIMARY KEY (id);
+ALTER TABLE ONLY slack_integrations_scopes
+ ADD CONSTRAINT slack_integrations_scopes_pkey PRIMARY KEY (id);
+
ALTER TABLE ONLY smartcard_identities
ADD CONSTRAINT smartcard_identities_pkey PRIMARY KEY (id);
@@ -26839,9 +27150,15 @@ ALTER TABLE ONLY wiki_page_meta
ALTER TABLE ONLY wiki_page_slugs
ADD CONSTRAINT wiki_page_slugs_pkey PRIMARY KEY (id);
+ALTER TABLE ONLY work_item_hierarchy_restrictions
+ ADD CONSTRAINT work_item_hierarchy_restrictions_pkey PRIMARY KEY (id);
+
ALTER TABLE ONLY work_item_parent_links
ADD CONSTRAINT work_item_parent_links_pkey PRIMARY KEY (id);
+ALTER TABLE ONLY work_item_progresses
+ ADD CONSTRAINT work_item_progresses_pkey PRIMARY KEY (issue_id);
+
ALTER TABLE ONLY work_item_types
ADD CONSTRAINT work_item_types_pkey PRIMARY KEY (id);
@@ -27778,8 +28095,6 @@ CREATE INDEX product_analytics_events_exper_project_id_collector_tstamp_idx9 ON
CREATE INDEX product_analytics_events_experi_project_id_collector_tstamp_idx ON gitlab_partitions_static.product_analytics_events_experimental_00 USING btree (project_id, collector_tstamp);
-CREATE INDEX active_billable_users ON users USING btree (id) WHERE (((state)::text = 'active'::text) AND ((user_type IS NULL) OR (user_type = ANY (ARRAY[NULL::integer, 6, 4]))) AND ((user_type IS NULL) OR (user_type <> ALL ('{2,6,1,3,7,8}'::smallint[]))));
-
CREATE INDEX analytics_index_audit_events_part_on_created_at_and_author_id ON ONLY audit_events USING btree (created_at, author_id);
CREATE INDEX analytics_index_events_on_created_at_and_author_id ON events USING btree (created_at, author_id);
@@ -27802,6 +28117,8 @@ CREATE INDEX ca_aggregations_last_incremental_run_at ON analytics_cycle_analytic
CREATE INDEX ci_builds_gitlab_monitor_metrics ON ci_builds USING btree (status, created_at, project_id) WHERE ((type)::text = 'Ci::Build'::text);
+CREATE UNIQUE INDEX ci_job_token_scope_links_source_and_target_project_direction ON ci_job_token_project_scope_links USING btree (source_project_id, target_project_id, direction);
+
CREATE INDEX ci_pipeline_artifacts_on_expire_at_for_removal ON ci_pipeline_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (expire_at IS NOT NULL));
CREATE INDEX code_owner_approval_required ON protected_branches USING btree (project_id, code_owner_approval_required) WHERE (code_owner_approval_required = true);
@@ -27832,10 +28149,18 @@ CREATE INDEX finding_links_on_vulnerability_occurrence_id ON vulnerability_findi
CREATE INDEX i_batched_background_migration_job_transition_logs_on_job_id ON ONLY batched_background_migration_job_transition_logs USING btree (batched_background_migration_job_id);
-CREATE UNIQUE INDEX i_ci_job_token_project_scope_links_on_source_and_target_project ON ci_job_token_project_scope_links USING btree (source_project_id, target_project_id);
-
CREATE INDEX i_compliance_frameworks_on_id_and_created_at ON compliance_management_frameworks USING btree (id, created_at, pipeline_configuration_full_path);
+CREATE INDEX i_dast_pre_scan_verification_steps_on_pre_scan_verification_id ON dast_pre_scan_verification_steps USING btree (dast_pre_scan_verification_id);
+
+CREATE INDEX i_dast_scanner_profiles_tags_on_scanner_profiles_id ON dast_scanner_profiles_tags USING btree (dast_scanner_profile_id);
+
+CREATE UNIQUE INDEX i_pm_licenses_on_spdx_identifier ON pm_licenses USING btree (spdx_identifier);
+
+CREATE UNIQUE INDEX i_pm_package_versions_on_package_id_and_version ON pm_package_versions USING btree (pm_package_id, version);
+
+CREATE UNIQUE INDEX i_pm_packages_purl_type_and_name ON pm_packages USING btree (purl_type, name);
+
CREATE INDEX idx_analytics_devops_adoption_segments_on_namespace_id ON analytics_devops_adoption_segments USING btree (namespace_id);
CREATE INDEX idx_analytics_devops_adoption_snapshots_finalized ON analytics_devops_adoption_snapshots USING btree (namespace_id, end_time) WHERE (recorded_at >= end_time);
@@ -28030,6 +28355,8 @@ CREATE UNIQUE INDEX idx_work_item_types_on_namespace_id_and_name_null_namespace
CREATE INDEX index_abuse_reports_on_user_id ON abuse_reports USING btree (user_id);
+CREATE UNIQUE INDEX "index_achievements_on_namespace_id_LOWER_name" ON achievements USING btree (namespace_id, lower(name));
+
CREATE INDEX index_agent_activity_events_on_agent_id_and_recorded_at_and_id ON agent_activity_events USING btree (agent_id, recorded_at, id);
CREATE INDEX index_agent_activity_events_on_agent_token_id ON agent_activity_events USING btree (agent_token_id) WHERE (agent_token_id IS NOT NULL);
@@ -28178,8 +28505,6 @@ CREATE UNIQUE INDEX index_audit_events_external_audit_on_verification_token ON a
CREATE INDEX index_authentication_events_on_provider ON authentication_events USING btree (provider);
-CREATE INDEX index_authentication_events_on_provider_user_id_created_at ON authentication_events USING btree (provider, user_id, created_at) WHERE (result = 1);
-
CREATE INDEX index_authentication_events_on_user_and_ip_address_and_result ON authentication_events USING btree (user_id, ip_address, result);
CREATE INDEX index_award_emoji_on_awardable_type_and_awardable_id ON award_emoji USING btree (awardable_type, awardable_id);
@@ -28308,6 +28633,8 @@ CREATE INDEX index_bulk_imports_on_user_id ON bulk_imports USING btree (user_id)
CREATE UNIQUE INDEX index_chat_names_on_integration_id_and_team_id_and_chat_id ON chat_names USING btree (integration_id, team_id, chat_id);
+CREATE INDEX index_chat_names_on_team_id_and_chat_id ON chat_names USING btree (team_id, chat_id);
+
CREATE UNIQUE INDEX index_chat_names_on_user_id_and_integration_id ON chat_names USING btree (user_id, integration_id);
CREATE UNIQUE INDEX index_chat_teams_on_namespace_id ON chat_teams USING btree (namespace_id);
@@ -28354,6 +28681,8 @@ CREATE INDEX index_ci_builds_on_commit_id_and_type_and_ref ON ci_builds USING bt
CREATE INDEX index_ci_builds_on_commit_id_artifacts_expired_at_and_id ON ci_builds USING btree (commit_id, artifacts_expire_at, id) WHERE (((type)::text = 'Ci::Build'::text) AND ((retried = false) OR (retried IS NULL)) AND ((name)::text = ANY (ARRAY[('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('dependency_scanning'::character varying)::text, ('container_scanning'::character varying)::text, ('dast'::character varying)::text])));
+CREATE UNIQUE INDEX index_ci_builds_on_id_partition_id_unique ON ci_builds USING btree (id, partition_id);
+
CREATE INDEX index_ci_builds_on_project_id_and_id ON ci_builds USING btree (project_id, id);
CREATE INDEX index_ci_builds_on_project_id_and_name_and_ref ON ci_builds USING btree (project_id, name, ref) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = 'success'::text) AND ((retried = false) OR (retried IS NULL)));
@@ -28470,8 +28799,6 @@ CREATE UNIQUE INDEX index_ci_pipeline_chat_data_on_pipeline_id ON ci_pipeline_ch
CREATE INDEX index_ci_pipeline_messages_on_pipeline_id ON ci_pipeline_messages USING btree (pipeline_id);
-CREATE INDEX index_ci_pipeline_metadata_on_pipeline_id_name ON ci_pipeline_metadata USING btree (pipeline_id, name);
-
CREATE INDEX index_ci_pipeline_metadata_on_project_id ON ci_pipeline_metadata USING btree (project_id);
CREATE UNIQUE INDEX index_ci_pipeline_schedule_variables_on_schedule_id_and_key ON ci_pipeline_schedule_variables USING btree (pipeline_schedule_id, key);
@@ -28766,6 +29093,10 @@ CREATE UNIQUE INDEX index_cycle_analytics_stage_event_hashes_on_hash_sha_256 ON
CREATE UNIQUE INDEX index_daily_build_group_report_results_unique_columns ON ci_daily_build_group_report_results USING btree (project_id, ref_path, date, group_name);
+CREATE UNIQUE INDEX index_dast_pre_scan_verifications_on_ci_pipeline_id ON dast_pre_scan_verifications USING btree (ci_pipeline_id);
+
+CREATE INDEX index_dast_pre_scan_verifications_on_dast_profile_id ON dast_pre_scan_verifications USING btree (dast_profile_id);
+
CREATE INDEX index_dast_profile_schedules_active_next_run_at ON dast_profile_schedules USING btree (active, next_run_at);
CREATE UNIQUE INDEX index_dast_profile_schedules_on_dast_profile_id ON dast_profile_schedules USING btree (dast_profile_id);
@@ -28784,6 +29115,8 @@ CREATE UNIQUE INDEX index_dast_profiles_pipelines_on_ci_pipeline_id ON dast_prof
CREATE UNIQUE INDEX index_dast_scanner_profiles_on_project_id_and_name ON dast_scanner_profiles USING btree (project_id, name);
+CREATE INDEX index_dast_scanner_profiles_tags_on_tag_id ON dast_scanner_profiles_tags USING btree (tag_id);
+
CREATE INDEX index_dast_site_profiles_on_dast_site_id ON dast_site_profiles USING btree (dast_site_id);
CREATE UNIQUE INDEX index_dast_site_profiles_on_project_id_and_name ON dast_site_profiles USING btree (project_id, name);
@@ -28806,6 +29139,10 @@ CREATE UNIQUE INDEX index_dast_sites_on_project_id_and_url ON dast_sites USING b
CREATE UNIQUE INDEX index_dep_prox_manifests_on_group_id_file_name_and_status ON dependency_proxy_manifests USING btree (group_id, file_name, status);
+CREATE INDEX index_dependency_list_exports_on_project_id ON dependency_list_exports USING btree (project_id);
+
+CREATE INDEX index_dependency_list_exports_on_user_id ON dependency_list_exports USING btree (user_id);
+
CREATE INDEX index_dependency_proxy_blob_states_failed_verification ON dependency_proxy_blob_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3);
CREATE INDEX index_dependency_proxy_blob_states_needs_verification ON dependency_proxy_blob_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3));
@@ -28956,6 +29293,8 @@ CREATE INDEX index_emails_on_user_id ON emails USING btree (user_id);
CREATE INDEX index_enabled_clusters_on_id ON clusters USING btree (id) WHERE (enabled = true);
+CREATE INDEX index_environments_for_name_search_within_folder ON environments USING btree (project_id, lower(ltrim((name)::text, ((environment_type)::text || '/'::text))) varchar_pattern_ops, state);
+
CREATE INDEX index_environments_on_merge_request_id ON environments USING btree (merge_request_id);
CREATE INDEX index_environments_on_name_varchar_pattern_ops ON environments USING btree (name varchar_pattern_ops);
@@ -29066,16 +29405,6 @@ CREATE UNIQUE INDEX index_events_on_target_type_and_target_id_and_fingerprint ON
CREATE INDEX index_evidences_on_release_id ON evidences USING btree (release_id);
-CREATE INDEX index_experiment_subjects_on_experiment_id ON experiment_subjects USING btree (experiment_id);
-
-CREATE INDEX index_experiment_subjects_on_namespace_id ON experiment_subjects USING btree (namespace_id);
-
-CREATE INDEX index_experiment_subjects_on_project_id ON experiment_subjects USING btree (project_id);
-
-CREATE INDEX index_experiment_subjects_on_user_id ON experiment_subjects USING btree (user_id);
-
-CREATE UNIQUE INDEX index_experiments_on_name ON experiments USING btree (name);
-
CREATE INDEX index_expired_and_not_notified_personal_access_tokens ON personal_access_tokens USING btree (id, expires_at) WHERE ((impersonation = false) AND (revoked = false) AND (expire_notification_delivered = false));
CREATE UNIQUE INDEX index_external_audit_event_destinations_on_namespace_id ON audit_events_external_audit_event_destinations USING btree (namespace_id, destination_url);
@@ -29364,7 +29693,7 @@ CREATE INDEX index_issuable_slas_on_due_at_id_label_applied_issuable_closed ON i
CREATE UNIQUE INDEX index_issuable_slas_on_issue_id ON issuable_slas USING btree (issue_id);
-CREATE INDEX index_issue_assignees_on_user_id ON issue_assignees USING btree (user_id);
+CREATE INDEX index_issue_assignees_on_user_id_and_issue_id ON issue_assignees USING btree (user_id, issue_id);
CREATE UNIQUE INDEX index_issue_crm_contacts_on_issue_id_and_contact_id ON issue_customer_relations_contacts USING btree (issue_id, contact_id);
@@ -29398,8 +29727,6 @@ CREATE INDEX index_issues_on_closed_by_id ON issues USING btree (closed_by_id);
CREATE INDEX index_issues_on_confidential ON issues USING btree (confidential);
-CREATE INDEX index_issues_on_description_trigram ON issues USING gin (description gin_trgm_ops) WITH (fastupdate='false');
-
CREATE INDEX index_issues_on_description_trigram_non_latin ON issues USING gin (description gin_trgm_ops) WHERE (((title)::text !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)) OR (description !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)));
CREATE INDEX index_issues_on_duplicated_to_id ON issues USING btree (duplicated_to_id) WHERE (duplicated_to_id IS NOT NULL);
@@ -29436,14 +29763,14 @@ CREATE INDEX index_issues_on_promoted_to_epic_id ON issues USING btree (promoted
CREATE INDEX index_issues_on_sprint_id ON issues USING btree (sprint_id);
-CREATE INDEX index_issues_on_title_trigram ON issues USING gin (title gin_trgm_ops) WITH (fastupdate='false');
-
CREATE INDEX index_issues_on_title_trigram_non_latin ON issues USING gin (title gin_trgm_ops) WHERE (((title)::text !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)) OR (description !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)));
CREATE INDEX index_issues_on_updated_at ON issues USING btree (updated_at);
CREATE INDEX index_issues_on_updated_by_id ON issues USING btree (updated_by_id) WHERE (updated_by_id IS NOT NULL);
+CREATE INDEX index_issues_on_work_item_type_id ON issues USING btree (work_item_type_id);
+
CREATE INDEX index_iterations_cadences_on_group_id ON iterations_cadences USING btree (group_id);
CREATE UNIQUE INDEX index_jira_connect_installations_on_client_key ON jira_connect_installations USING btree (client_key);
@@ -29550,6 +29877,16 @@ CREATE INDEX index_lists_on_user_id ON lists USING btree (user_id);
CREATE INDEX index_loose_foreign_keys_deleted_records_for_partitioned_query ON ONLY loose_foreign_keys_deleted_records USING btree (partition, fully_qualified_table_name, consume_after, id) WHERE (status = 1);
+CREATE INDEX index_manifest_states_failed_verification ON dependency_proxy_manifest_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3);
+
+CREATE INDEX index_manifest_states_needs_verification ON dependency_proxy_manifest_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3));
+
+CREATE INDEX index_manifest_states_on_dependency_proxy_manifest_id ON dependency_proxy_manifest_states USING btree (dependency_proxy_manifest_id);
+
+CREATE INDEX index_manifest_states_on_verification_state ON dependency_proxy_manifest_states USING btree (verification_state);
+
+CREATE INDEX index_manifest_states_pending_verification ON dependency_proxy_manifest_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0);
+
CREATE INDEX index_member_roles_on_namespace_id ON member_roles USING btree (namespace_id);
CREATE INDEX index_member_tasks_on_member_id ON member_tasks USING btree (member_id);
@@ -29574,6 +29911,8 @@ CREATE INDEX index_members_on_requested_at ON members USING btree (requested_at)
CREATE INDEX index_members_on_source_id_and_source_type ON members USING btree (source_id, source_type);
+CREATE INDEX index_members_on_source_state_type_access_level_and_user_id ON members USING btree (source_id, source_type, state, type, access_level, user_id) WHERE ((requested_at IS NULL) AND (invite_token IS NULL));
+
CREATE INDEX index_members_on_user_id_and_access_level_requested_at_is_null ON members USING btree (user_id, access_level) WHERE (requested_at IS NULL);
CREATE INDEX index_members_on_user_id_created_at ON members USING btree (user_id, created_at) WHERE ((ldap = true) AND ((type)::text = 'GroupMember'::text) AND ((source_type)::text = 'Namespace'::text));
@@ -29648,6 +29987,8 @@ CREATE INDEX index_merge_requests_on_assignee_id ON merge_requests USING btree (
CREATE INDEX index_merge_requests_on_author_id ON merge_requests USING btree (author_id);
+CREATE INDEX index_merge_requests_on_author_id_and_created_at ON merge_requests USING btree (author_id, created_at);
+
CREATE INDEX index_merge_requests_on_author_id_and_id ON merge_requests USING btree (author_id, id);
CREATE INDEX index_merge_requests_on_author_id_and_target_project_id ON merge_requests USING btree (author_id, target_project_id);
@@ -29730,6 +30071,10 @@ CREATE INDEX index_milestones_on_title_trigram ON milestones USING gin (title gi
CREATE INDEX index_mirror_data_non_scheduled_or_started ON project_mirror_data USING btree (next_execution_timestamp, retry_count) WHERE ((status)::text <> ALL ('{scheduled,started}'::text[]));
+CREATE UNIQUE INDEX index_ml_candidate_metadata_on_candidate_id_and_name ON ml_candidate_metadata USING btree (candidate_id, name);
+
+CREATE INDEX index_ml_candidate_metadata_on_name ON ml_candidate_metadata USING btree (name);
+
CREATE INDEX index_ml_candidate_metrics_on_candidate_id ON ml_candidate_metrics USING btree (candidate_id);
CREATE INDEX index_ml_candidate_params_on_candidate_id ON ml_candidate_params USING btree (candidate_id);
@@ -29740,6 +30085,8 @@ CREATE UNIQUE INDEX index_ml_candidates_on_experiment_id_and_iid ON ml_candidate
CREATE INDEX index_ml_candidates_on_user_id ON ml_candidates USING btree (user_id);
+CREATE UNIQUE INDEX index_ml_experiment_metadata_on_experiment_id_and_name ON ml_experiment_metadata USING btree (experiment_id, name);
+
CREATE UNIQUE INDEX index_ml_experiments_on_project_id_and_iid ON ml_experiments USING btree (project_id, iid);
CREATE UNIQUE INDEX index_ml_experiments_on_project_id_and_name ON ml_experiments USING btree (project_id, name);
@@ -29814,6 +30161,8 @@ CREATE INDEX index_namespaces_on_traversal_ids_for_groups_btree ON namespaces US
CREATE INDEX index_namespaces_on_type_and_id ON namespaces USING btree (type, id);
+CREATE INDEX index_namespaces_on_type_and_visibility_and_parent_id ON namespaces USING btree (id) WHERE (((type)::text = 'Group'::text) AND (parent_id IS NULL) AND (visibility_level <> 20));
+
CREATE INDEX index_namespaces_public_groups_name_id ON namespaces USING btree (name, id) WHERE (((type)::text = 'Group'::text) AND (visibility_level = 20));
CREATE INDEX index_namespaces_sync_events_on_namespace_id ON namespaces_sync_events USING btree (namespace_id);
@@ -29884,6 +30233,10 @@ CREATE UNIQUE INDEX index_on_instance_statistics_recorded_at_and_identifier ON a
CREATE INDEX index_on_issues_closed_incidents_by_project_id_and_closed_at ON issues USING btree (project_id, closed_at) WHERE ((issue_type = 1) AND (state_id = 2));
+CREATE INDEX index_on_issues_health_status_asc_order ON issues USING btree (project_id, health_status, id DESC, state_id, issue_type);
+
+CREATE INDEX index_on_issues_health_status_desc_order ON issues USING btree (project_id, health_status DESC NULLS LAST, id DESC, state_id, issue_type);
+
CREATE INDEX index_on_label_links_all_columns ON label_links USING btree (target_id, label_id, target_type);
CREATE INDEX index_on_merge_request_reviewers_user_id_and_state ON merge_request_reviewers USING btree (user_id, state) WHERE (state = 2);
@@ -30102,10 +30455,18 @@ CREATE UNIQUE INDEX index_personal_access_tokens_on_token_digest ON personal_acc
CREATE INDEX index_personal_access_tokens_on_user_id ON personal_access_tokens USING btree (user_id);
+CREATE INDEX index_pipeline_metadata_on_pipeline_id_name_lower_text_pattern ON ci_pipeline_metadata USING btree (pipeline_id, lower(name) text_pattern_ops);
+
CREATE UNIQUE INDEX index_plan_limits_on_plan_id ON plan_limits USING btree (plan_id);
CREATE UNIQUE INDEX index_plans_on_name ON plans USING btree (name);
+CREATE INDEX index_pm_package_version_licenses_on_pm_license_id ON pm_package_version_licenses USING btree (pm_license_id);
+
+CREATE INDEX index_pm_package_version_licenses_on_pm_package_version_id ON pm_package_version_licenses USING btree (pm_package_version_id);
+
+CREATE INDEX index_pm_package_versions_on_pm_package_id ON pm_package_versions USING btree (pm_package_id);
+
CREATE UNIQUE INDEX index_pool_repositories_on_disk_path ON pool_repositories USING btree (disk_path);
CREATE INDEX index_pool_repositories_on_shard_id ON pool_repositories USING btree (shard_id);
@@ -30208,7 +30569,7 @@ CREATE UNIQUE INDEX index_project_repository_states_on_project_id ON project_rep
CREATE INDEX index_project_repository_storage_moves_on_project_id ON project_repository_storage_moves USING btree (project_id);
-CREATE INDEX index_project_settings_on_legacy_open_source_license_available ON project_settings USING btree (legacy_open_source_license_available) WHERE (legacy_open_source_license_available = true);
+CREATE INDEX index_project_settings_on_legacy_os_license_project_id ON project_settings USING btree (project_id) WHERE (legacy_open_source_license_available = true);
CREATE INDEX index_project_settings_on_project_id_partially ON project_settings USING btree (project_id) WHERE (has_vulnerabilities IS TRUE);
@@ -30568,12 +30929,12 @@ CREATE INDEX index_secure_ci_builds_on_user_id_name_created_at ON ci_builds USIN
CREATE INDEX index_security_ci_builds_on_name_and_id_parser_features ON ci_builds USING btree (name, id) WHERE (((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('license_scanning'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text])) AND ((type)::text = 'Ci::Build'::text));
+CREATE INDEX index_security_scans_for_non_purged_records ON security_scans USING btree (created_at, id) WHERE (status <> 6);
+
CREATE INDEX index_security_scans_on_created_at ON security_scans USING btree (created_at);
CREATE INDEX index_security_scans_on_date_created_at_and_id ON security_scans USING btree (date(timezone('UTC'::text, created_at)), id);
-CREATE INDEX index_security_scans_on_id_for_non_purged_records ON security_scans USING btree (id) WHERE (status <> 6);
-
CREATE INDEX index_security_scans_on_length_of_errors ON security_scans USING btree (pipeline_id, jsonb_array_length(COALESCE((info -> 'errors'::text), '[]'::jsonb)));
CREATE INDEX index_security_scans_on_length_of_warnings ON security_scans USING btree (pipeline_id, jsonb_array_length(COALESCE((info -> 'warnings'::text), '[]'::jsonb)));
@@ -30612,6 +30973,10 @@ CREATE UNIQUE INDEX index_shards_on_name ON shards USING btree (name);
CREATE UNIQUE INDEX index_site_profile_secret_variables_on_site_profile_id_and_key ON dast_site_profile_secret_variables USING btree (dast_site_profile_id, key);
+CREATE UNIQUE INDEX index_slack_api_scopes_on_name ON slack_api_scopes USING btree (name);
+
+CREATE UNIQUE INDEX index_slack_api_scopes_on_name_and_integration ON slack_integrations_scopes USING btree (slack_integration_id, slack_api_scope_id);
+
CREATE INDEX index_slack_integrations_on_integration_id ON slack_integrations USING btree (integration_id);
CREATE UNIQUE INDEX index_slack_integrations_on_team_id_and_alias ON slack_integrations USING btree (team_id, alias);
@@ -30710,6 +31075,8 @@ CREATE INDEX index_subscriptions_on_project_id ON subscriptions USING btree (pro
CREATE UNIQUE INDEX index_subscriptions_on_subscribable_and_user_id_and_project_id ON subscriptions USING btree (subscribable_id, subscribable_type, user_id, project_id);
+CREATE INDEX index_successful_authentication_events_for_metrics ON authentication_events USING btree (user_id, provider, created_at) WHERE (result = 1);
+
CREATE INDEX index_successful_deployments_on_cluster_id_and_environment_id ON deployments USING btree (cluster_id, environment_id) WHERE (status = 2);
CREATE UNIQUE INDEX index_suggestions_on_note_id_and_relative_order ON suggestions USING btree (note_id, relative_order);
@@ -30900,6 +31267,8 @@ CREATE INDEX index_user_statuses_on_user_id ON user_statuses USING btree (user_i
CREATE UNIQUE INDEX index_user_synced_attributes_metadata_on_user_id ON user_synced_attributes_metadata USING btree (user_id);
+CREATE INDEX index_users_for_active_billable ON users USING btree (id) WHERE (((state)::text = 'active'::text) AND ((user_type IS NULL) OR (user_type = ANY (ARRAY[NULL::integer, 6, 4]))) AND ((user_type IS NULL) OR (user_type <> ALL ('{1,2,3,4,5,6,7,8,9,11}'::smallint[]))));
+
CREATE INDEX index_users_on_accepted_term_id ON users USING btree (accepted_term_id);
CREATE INDEX index_users_on_admin ON users USING btree (admin);
@@ -30998,10 +31367,6 @@ CREATE INDEX index_vulnerabilities_on_resolved_by_id ON vulnerabilities USING bt
CREATE INDEX index_vulnerabilities_on_start_date_sourcing_milestone_id ON vulnerabilities USING btree (start_date_sourcing_milestone_id);
-CREATE INDEX index_vulnerabilities_on_state_case_id ON vulnerabilities USING btree (array_position(ARRAY[(1)::smallint, (4)::smallint, (3)::smallint, (2)::smallint], state), id DESC);
-
-CREATE INDEX index_vulnerabilities_on_state_case_id_desc ON vulnerabilities USING btree (array_position(ARRAY[(1)::smallint, (4)::smallint, (3)::smallint, (2)::smallint], state) DESC, id DESC);
-
CREATE INDEX index_vulnerabilities_on_updated_by_id ON vulnerabilities USING btree (updated_by_id);
CREATE INDEX index_vulnerabilities_project_id_and_id_on_default_branch ON vulnerabilities USING btree (project_id, id) WHERE (present_on_default_branch IS TRUE);
@@ -31152,6 +31517,12 @@ CREATE UNIQUE INDEX index_wiki_page_slugs_on_slug_and_wiki_page_meta_id ON wiki_
CREATE INDEX index_wiki_page_slugs_on_wiki_page_meta_id ON wiki_page_slugs USING btree (wiki_page_meta_id);
+CREATE INDEX index_work_item_hierarchy_restrictions_on_child_type_id ON work_item_hierarchy_restrictions USING btree (child_type_id);
+
+CREATE UNIQUE INDEX index_work_item_hierarchy_restrictions_on_parent_and_child ON work_item_hierarchy_restrictions USING btree (parent_type_id, child_type_id);
+
+CREATE INDEX index_work_item_hierarchy_restrictions_on_parent_type_id ON work_item_hierarchy_restrictions USING btree (parent_type_id);
+
CREATE UNIQUE INDEX index_work_item_parent_links_on_work_item_id ON work_item_parent_links USING btree (work_item_id);
CREATE INDEX index_work_item_parent_links_on_work_item_parent_id ON work_item_parent_links USING btree (work_item_parent_id);
@@ -31230,6 +31601,8 @@ CREATE INDEX scan_finding_approval_mr_rule_index_id ON approval_merge_request_ru
CREATE INDEX scan_finding_approval_mr_rule_index_merge_request_id ON approval_merge_request_rules USING btree (merge_request_id) WHERE (report_type = 4);
+CREATE INDEX scan_finding_approval_mr_rule_index_mr_id_and_created_at ON approval_merge_request_rules USING btree (merge_request_id, created_at) WHERE (report_type = 4);
+
CREATE INDEX scan_finding_approval_project_rule_index_created_at_project_id ON approval_project_rules USING btree (created_at, project_id) WHERE (report_type = 4);
CREATE INDEX scan_finding_approval_project_rule_index_project_id ON approval_project_rules USING btree (project_id) WHERE (report_type = 4);
@@ -31256,7 +31629,9 @@ CREATE UNIQUE INDEX taggings_idx ON taggings USING btree (tag_id, taggable_id, t
CREATE UNIQUE INDEX term_agreements_unique_index ON term_agreements USING btree (user_id, term_id);
-CREATE INDEX tmp_idx_for_vulnerability_feedback_migration ON vulnerability_feedback USING btree (migrated_to_state_transition, feedback_type) WHERE ((migrated_to_state_transition = false) AND (feedback_type = 0));
+CREATE INDEX tmp_idx_for_feedback_comment_processing ON vulnerability_feedback USING btree (id) WHERE (char_length(comment) > 50000);
+
+CREATE INDEX tmp_idx_for_vulnerability_feedback_migration ON vulnerability_feedback USING btree (id) WHERE ((migrated_to_state_transition = false) AND (feedback_type = 0));
CREATE INDEX tmp_idx_vulnerabilities_on_id_where_report_type_7_99 ON vulnerabilities USING btree (id) WHERE (report_type = ANY (ARRAY[7, 99]));
@@ -31276,22 +31651,16 @@ CREATE INDEX tmp_index_for_null_member_namespace_id ON members USING btree (memb
CREATE INDEX tmp_index_for_project_namespace_id_migration_on_routes ON routes USING btree (id) WHERE ((namespace_id IS NULL) AND ((source_type)::text = 'Project'::text));
-CREATE INDEX tmp_index_issues_on_issue_type_and_id ON issues USING btree (issue_type, id);
-
CREATE INDEX tmp_index_members_on_state ON members USING btree (state) WHERE (state = 2);
CREATE INDEX tmp_index_migrated_container_registries ON container_repositories USING btree (project_id) WHERE ((migration_state = 'import_done'::text) OR (created_at >= '2022-01-23 00:00:00'::timestamp without time zone));
-CREATE UNIQUE INDEX tmp_index_on_tmp_project_id_on_namespaces ON namespaces USING btree (tmp_project_id);
-
CREATE INDEX tmp_index_on_vulnerabilities_non_dismissed ON vulnerabilities USING btree (id) WHERE (state <> 2);
CREATE INDEX tmp_index_project_statistics_cont_registry_size ON project_statistics USING btree (project_id) WHERE (container_registry_size = 0);
CREATE INDEX tmp_index_project_statistics_uploads_size ON project_statistics USING btree (project_id) WHERE (uploads_size <> 0);
-CREATE INDEX tmp_index_vulnerability_occurrences_on_id_and_scanner_id ON vulnerability_occurrences USING btree (id, scanner_id) WHERE (report_type = ANY (ARRAY[7, 99]));
-
CREATE UNIQUE INDEX uniq_pkgs_deb_grp_architectures_on_distribution_id_and_name ON packages_debian_group_architectures USING btree (distribution_id, name);
CREATE UNIQUE INDEX uniq_pkgs_deb_grp_components_on_distribution_id_and_name ON packages_debian_group_components USING btree (distribution_id, name);
@@ -32990,6 +33359,9 @@ ALTER TABLE ONLY approval_merge_request_rules
ALTER TABLE ONLY deploy_keys_projects
ADD CONSTRAINT fk_58a901ca7e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
+ALTER TABLE ONLY dependency_list_exports
+ ADD CONSTRAINT fk_5b3d11e1ef FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL;
+
ALTER TABLE ONLY dast_scanner_profiles_builds
ADD CONSTRAINT fk_5d46286ad3 FOREIGN KEY (dast_scanner_profile_id) REFERENCES dast_scanner_profiles(id) ON DELETE CASCADE;
@@ -33035,9 +33407,6 @@ ALTER TABLE ONLY project_wiki_repository_states
ALTER TABLE ONLY merge_requests
ADD CONSTRAINT fk_6a5165a692 FOREIGN KEY (milestone_id) REFERENCES milestones(id) ON DELETE SET NULL;
-ALTER TABLE ONLY namespaces
- ADD CONSTRAINT fk_6a77f66919 FOREIGN KEY (tmp_project_id) REFERENCES projects(id) ON DELETE CASCADE;
-
ALTER TABLE ONLY geo_event_log
ADD CONSTRAINT fk_6ada82d42a FOREIGN KEY (container_repository_updated_event_id) REFERENCES geo_container_repository_updated_events(id) ON DELETE CASCADE;
@@ -33050,9 +33419,6 @@ ALTER TABLE ONLY dast_profile_schedules
ALTER TABLE ONLY vulnerability_merge_request_links
ADD CONSTRAINT fk_6d7aa8796e FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE;
-ALTER TABLE ONLY issues
- ADD CONSTRAINT fk_6e10d4d38a FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE SET NULL;
-
ALTER TABLE ONLY projects
ADD CONSTRAINT fk_6e5c14658a FOREIGN KEY (pool_repository_id) REFERENCES pool_repositories(id) ON DELETE SET NULL;
@@ -33140,9 +33506,6 @@ ALTER TABLE ONLY import_export_uploads
ALTER TABLE ONLY push_rules
ADD CONSTRAINT fk_83b29894de FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
-ALTER TABLE ONLY experiment_subjects
- ADD CONSTRAINT fk_842649f2f5 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE;
-
ALTER TABLE ONLY merge_request_diffs
ADD CONSTRAINT fk_8483f3258f FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE;
@@ -33401,6 +33764,9 @@ ALTER TABLE ONLY geo_event_log
ALTER TABLE ONLY issues
ADD CONSTRAINT fk_c63cbf6c25 FOREIGN KEY (closed_by_id) REFERENCES users(id) ON DELETE SET NULL;
+ALTER TABLE ONLY issues
+ ADD CONSTRAINT fk_c78fbacd64 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY agent_activity_events
ADD CONSTRAINT fk_c815368376 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE;
@@ -33428,9 +33794,6 @@ ALTER TABLE ONLY external_status_checks_protected_branches
ALTER TABLE ONLY dast_profiles_pipelines
ADD CONSTRAINT fk_cc206a8c13 FOREIGN KEY (dast_profile_id) REFERENCES dast_profiles(id) ON DELETE CASCADE;
-ALTER TABLE ONLY experiment_subjects
- ADD CONSTRAINT fk_ccc28f8ceb FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
-
ALTER TABLE ONLY todos
ADD CONSTRAINT fk_ccf0373936 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE;
@@ -33482,6 +33845,9 @@ ALTER TABLE ONLY system_note_metadata
ALTER TABLE ONLY sbom_occurrences
ADD CONSTRAINT fk_d857c6edc1 FOREIGN KEY (component_id) REFERENCES sbom_components(id) ON DELETE CASCADE;
+ALTER TABLE ONLY dependency_list_exports
+ ADD CONSTRAINT fk_d871d74675 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY todos
ADD CONSTRAINT fk_d94154aa95 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE;
@@ -33509,9 +33875,6 @@ ALTER TABLE ONLY protected_branches
ALTER TABLE ONLY issues
ADD CONSTRAINT fk_df75a7c8b8 FOREIGN KEY (promoted_to_epic_id) REFERENCES epics(id) ON DELETE SET NULL;
-ALTER TABLE ONLY experiment_subjects
- ADD CONSTRAINT fk_dfc3e211d4 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE;
-
ALTER TABLE ONLY ci_resources
ADD CONSTRAINT fk_e169a8e3d5 FOREIGN KEY (build_id) REFERENCES ci_builds(id) ON DELETE SET NULL;
@@ -33674,6 +34037,9 @@ ALTER TABLE ONLY ip_restrictions
ALTER TABLE ONLY terraform_state_versions
ADD CONSTRAINT fk_rails_04f176e239 FOREIGN KEY (terraform_state_id) REFERENCES terraform_states(id) ON DELETE CASCADE;
+ALTER TABLE ONLY work_item_hierarchy_restrictions
+ ADD CONSTRAINT fk_rails_08cd7fef58 FOREIGN KEY (child_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY trending_projects
ADD CONSTRAINT fk_rails_09feecd872 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
@@ -33899,6 +34265,9 @@ ALTER TABLE ONLY lfs_file_locks
ALTER TABLE ONLY project_alerting_settings
ADD CONSTRAINT fk_rails_27a84b407d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
+ALTER TABLE ONLY work_item_hierarchy_restrictions
+ ADD CONSTRAINT fk_rails_27bb3a10ba FOREIGN KEY (parent_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY user_credit_card_validations
ADD CONSTRAINT fk_rails_27ebc03cbf FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE;
@@ -33950,6 +34319,9 @@ ALTER TABLE ONLY issuable_severities
ALTER TABLE ONLY saml_providers
ADD CONSTRAINT fk_rails_306d459be7 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE;
+ALTER TABLE ONLY pm_package_version_licenses
+ ADD CONSTRAINT fk_rails_30ddb7f837 FOREIGN KEY (pm_package_version_id) REFERENCES pm_package_versions(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY resource_state_events
ADD CONSTRAINT fk_rails_3112bba7dc FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE;
@@ -34166,6 +34538,9 @@ ALTER TABLE ONLY ci_pipeline_metadata
ALTER TABLE ONLY project_repository_storage_moves
ADD CONSTRAINT fk_rails_5106dbd44a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
+ALTER TABLE ONLY ml_candidate_metadata
+ ADD CONSTRAINT fk_rails_5117dddf22 FOREIGN KEY (candidate_id) REFERENCES ml_candidates(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY bulk_import_configurations
ADD CONSTRAINT fk_rails_536b96bff1 FOREIGN KEY (bulk_import_id) REFERENCES bulk_imports(id) ON DELETE CASCADE;
@@ -34343,6 +34718,9 @@ ALTER TABLE ONLY plan_limits
ALTER TABLE ONLY operations_feature_flags_issues
ADD CONSTRAINT fk_rails_6a8856ca4f FOREIGN KEY (feature_flag_id) REFERENCES operations_feature_flags(id) ON DELETE CASCADE;
+ALTER TABLE ONLY ml_experiment_metadata
+ ADD CONSTRAINT fk_rails_6b39844d44 FOREIGN KEY (experiment_id) REFERENCES ml_experiments(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY error_tracking_errors
ADD CONSTRAINT fk_rails_6b41f837ba FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
@@ -34397,6 +34775,9 @@ ALTER TABLE ONLY merge_request_context_commit_diff_files
ALTER TABLE ONLY group_crm_settings
ADD CONSTRAINT fk_rails_74fdf2f13d FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE;
+ALTER TABLE ONLY pm_package_version_licenses
+ ADD CONSTRAINT fk_rails_7520ea026d FOREIGN KEY (pm_license_id) REFERENCES pm_licenses(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY clusters_applications_ingress
ADD CONSTRAINT fk_rails_753a7b41c1 FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE;
@@ -34457,6 +34838,9 @@ ALTER TABLE ONLY application_settings
ALTER TABLE ONLY clusters_kubernetes_namespaces
ADD CONSTRAINT fk_rails_7e7688ecaf FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE;
+ALTER TABLE ONLY dependency_proxy_manifest_states
+ ADD CONSTRAINT fk_rails_806cf07a3c FOREIGN KEY (dependency_proxy_manifest_id) REFERENCES dependency_proxy_manifests(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY ci_job_artifact_states
ADD CONSTRAINT fk_rails_80a9cba3b2 FOREIGN KEY (job_artifact_id) REFERENCES ci_job_artifacts(id) ON DELETE CASCADE;
@@ -34505,6 +34889,9 @@ ALTER TABLE ONLY ci_runner_namespaces
ALTER TABLE ONLY software_license_policies
ADD CONSTRAINT fk_rails_87b2247ce5 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
+ALTER TABLE ONLY achievements
+ ADD CONSTRAINT fk_rails_87e990f752 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY protected_environment_deploy_access_levels
ADD CONSTRAINT fk_rails_898a13b650 FOREIGN KEY (protected_environment_id) REFERENCES protected_environments(id) ON DELETE CASCADE;
@@ -34526,6 +34913,9 @@ ALTER TABLE ONLY cluster_projects
ALTER TABLE ONLY project_pages_metadata
ADD CONSTRAINT fk_rails_8c28a61485 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
+ALTER TABLE ONLY work_item_progresses
+ ADD CONSTRAINT fk_rails_8c584bfb37 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY packages_conan_metadata
ADD CONSTRAINT fk_rails_8c68cfec8b FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE;
@@ -34622,6 +35012,9 @@ ALTER TABLE ONLY error_tracking_client_keys
ALTER TABLE ONLY pages_deployments
ADD CONSTRAINT fk_rails_993b88f59a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
+ALTER TABLE ONLY dast_pre_scan_verification_steps
+ ADD CONSTRAINT fk_rails_9990fc2adf FOREIGN KEY (dast_pre_scan_verification_id) REFERENCES dast_pre_scan_verifications(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY vulnerability_exports
ADD CONSTRAINT fk_rails_9aff2c3b45 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
@@ -34868,6 +35261,9 @@ ALTER TABLE ONLY atlassian_identities
ALTER TABLE ONLY serverless_domain_cluster
ADD CONSTRAINT fk_rails_c09009dee1 FOREIGN KEY (pages_domain_id) REFERENCES pages_domains(id) ON DELETE CASCADE;
+ALTER TABLE ONLY slack_integrations_scopes
+ ADD CONSTRAINT fk_rails_c0e018a6fe FOREIGN KEY (slack_api_scope_id) REFERENCES slack_api_scopes(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY packages_npm_metadata
ADD CONSTRAINT fk_rails_c0e5fce6f3 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE;
@@ -34961,6 +35357,9 @@ ALTER TABLE ONLY resource_iteration_events
ALTER TABLE ONLY member_roles
ADD CONSTRAINT fk_rails_cf0ee35814 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE;
+ALTER TABLE ONLY pm_package_versions
+ ADD CONSTRAINT fk_rails_cf94c3e601 FOREIGN KEY (pm_package_id) REFERENCES pm_packages(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY upload_states
ADD CONSTRAINT fk_rails_d00f153613 FOREIGN KEY (upload_id) REFERENCES uploads(id) ON DELETE CASCADE;
@@ -35039,6 +35438,9 @@ ALTER TABLE ONLY incident_management_timeline_event_tags
ALTER TABLE ONLY user_callouts
ADD CONSTRAINT fk_rails_ddfdd80f3d FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE;
+ALTER TABLE ONLY dast_scanner_profiles_tags
+ ADD CONSTRAINT fk_rails_deb79b7f19 FOREIGN KEY (dast_scanner_profile_id) REFERENCES dast_scanner_profiles(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY vulnerability_feedback
ADD CONSTRAINT fk_rails_debd54e456 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;
@@ -35135,6 +35537,9 @@ ALTER TABLE ONLY alert_management_alert_user_mentions
ALTER TABLE ONLY snippet_statistics
ADD CONSTRAINT fk_rails_ebc283ccf1 FOREIGN KEY (snippet_id) REFERENCES snippets(id) ON DELETE CASCADE;
+ALTER TABLE ONLY slack_integrations_scopes
+ ADD CONSTRAINT fk_rails_ece1eb6772 FOREIGN KEY (slack_integration_id) REFERENCES slack_integrations(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY iterations_cadences
ADD CONSTRAINT fk_rails_ece400c55a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE;
@@ -35147,9 +35552,6 @@ ALTER TABLE ONLY project_security_settings
ALTER TABLE ONLY packages_debian_group_distributions
ADD CONSTRAINT fk_rails_ede0bb937f FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE SET NULL;
-ALTER TABLE ONLY experiment_subjects
- ADD CONSTRAINT fk_rails_ede5754774 FOREIGN KEY (experiment_id) REFERENCES experiments(id) ON DELETE CASCADE;
-
ALTER TABLE ONLY ci_daily_build_group_report_results
ADD CONSTRAINT fk_rails_ee072d13b3 FOREIGN KEY (last_pipeline_id) REFERENCES ci_pipelines(id) ON DELETE CASCADE;
@@ -35171,6 +35573,9 @@ ALTER TABLE ONLY fork_network_members
ALTER TABLE ONLY security_orchestration_policy_rule_schedules
ADD CONSTRAINT fk_rails_efe1d9b133 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE;
+ALTER TABLE ONLY dast_pre_scan_verifications
+ ADD CONSTRAINT fk_rails_f08d9312a8 FOREIGN KEY (dast_profile_id) REFERENCES dast_profiles(id) ON DELETE CASCADE;
+
ALTER TABLE ONLY prometheus_alerts
ADD CONSTRAINT fk_rails_f0e8db86aa FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE;