diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-27 06:11:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-27 06:11:24 +0300 |
commit | 729e66ee8e5790eefb3771040839155c499faab3 (patch) | |
tree | 19cd1fd73c2373c20d2888e857de022129a79eaa /doc/development/database | |
parent | 431b84710e87a649de02d398568804f820e3b0fe (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/database')
-rw-r--r-- | doc/development/database/table_partitioning.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/development/database/table_partitioning.md b/doc/development/database/table_partitioning.md index fe92ebc768a..0d5e3c233f6 100644 --- a/doc/development/database/table_partitioning.md +++ b/doc/development/database/table_partitioning.md @@ -381,6 +381,12 @@ result in a `Key is still referenced from table ...` error and updating the partition column on the source table would raise a `Key is not present in table ...` error. +This migration can be automatically generated using: + +```shell +./scripts/partitioning/generate-fk --source source_table_name --target target_table_name +``` + ### Step 5 - Swap primary key Swap the primary key including the partitioning key column. This can be done only after |