summaryrefslogtreecommitdiff
path: root/lib/gitlab/database/gitlab_loose_foreign_keys.yml
blob: 0343c054f235b886e9032522bb556e8d9ee1adbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
ci_pipeline_chat_data:
  - table: chat_names
    column: chat_name_id
    on_delete: async_delete
dast_scanner_profiles_builds:
  - table: ci_builds
    column: ci_build_id
    on_delete: async_delete
dast_scanner_profiles_builds:
  - table: ci_builds
    column: ci_build_id
    on_delete: async_delete
dast_profiles_pipelines:
  - table: ci_pipelines
    column: ci_pipeline_id
    on_delete: async_delete
clusters_applications_runners:
  - table: ci_runners
    column: runner_id
    on_delete: async_nullify
ci_namespace_mirrors:
  - table: namespaces
    column: namespace_id
    on_delete: async_delete
ci_builds:
  - table: users
    column: user_id
    on_delete: async_nullify
ci_pipelines:
  - table: merge_requests
    column: merge_request_id
    on_delete: async_delete
  - table: external_pull_requests
    column: external_pull_request_id
    on_delete: async_nullify
  - table: users
    column: user_id
    on_delete: async_nullify
ci_project_mirrors:
  - table: projects
    column: project_id
    on_delete: async_delete
  - table: namespaces
    column: namespace_id
    on_delete: async_delete
packages_build_infos:
  - table: ci_pipelines
    column: pipeline_id
    on_delete: async_nullify
packages_package_file_build_infos:
  - table: ci_pipelines
    column: pipeline_id
    on_delete: async_nullify
pages_deployments:
  - table: ci_builds
    column: ci_build_id
    on_delete: async_nullify
terraform_state_versions:
  - table: ci_builds
    column: ci_build_id
    on_delete: async_nullify
merge_request_metrics:
  - table: ci_pipelines
    column: pipeline_id
    on_delete: async_delete
project_pages_metadata:
  - table: ci_job_artifacts
    column: artifacts_archive_id
    on_delete: async_nullify