Select Git revision
An error occurred while fetching branches. Retry the search.
20230830085501
Forked from
GitLab.org / GitLab
Source project has a limited visibility.
-
Vasilli Iakliushin authored
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/423445 **Problem** We have a discrepancy between GitLab database and `db/structure.sql`. GitLab database contains 255 character limit for regex fields. But this limit is missing for self-hosted instances and GDK. **Solution** Recently we added a Rails validation to prevent regex longer than 511 characters (https://gitlab.com/gitlab-org/gitlab/-/merge_requests/128153). We can migrate existing columns to match this limit. It's a three step migration: 1. Add NOT VALID CHECK to verify length of regex fields 2. Validate regex fields 3. Remove any char limits from regex fields Changelog: changed EE: true
Vasilli Iakliushin authoredContributes to https://gitlab.com/gitlab-org/gitlab/-/issues/423445 **Problem** We have a discrepancy between GitLab database and `db/structure.sql`. GitLab database contains 255 character limit for regex fields. But this limit is missing for self-hosted instances and GDK. **Solution** Recently we added a Rails validation to prevent regex longer than 511 characters (https://gitlab.com/gitlab-org/gitlab/-/merge_requests/128153). We can migrate existing columns to match this limit. It's a three step migration: 1. Add NOT VALID CHECK to verify length of regex fields 2. Validate regex fields 3. Remove any char limits from regex fields Changelog: changed EE: true