Rename pages_default_domain_redirect to pages_primary_domain
What does this MR do and why?
Rename ProjectSetting's pages_default_domain_redirect
to pages_primary_domain
.
Note: pages_default_domain_redirect
column is still not populated by any value (query result) and used by any UI component yet
Queries:
ALTER TABLE project_settings
RENAME COLUMN pages_default_domain_redirect TO pages_primary_domain;
ALTER TABLE project_settings
DROP CONSTRAINT check_999e5f0aaa;
ALTER TABLE project_settings
ADD CONSTRAINT check_999e5f0aaa
CHECK (char_length(pages_primary_domain) <= 255);
Update query:
UPDATE project_settings SET pages_primary_domain = 'example.com' WHERE project_id = 278964;
Query execution plan: https://console.postgres.ai/gitlab/gitlab-production-main/sessions/34786/commands/107644
Related: #481334 (comment 2276384325)
Changelog: changed
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.