Skip to content
代码片段 群组 项目
提交 afc688f7 编辑于 作者: Gerardo's avatar Gerardo 提交者: Gerardo Navarro
浏览文件

refactor: Drop col 'package_name_pattern_ilike_query' Part 3

This MR includes:
- Dropping the column 'package_name_pattern_ilike_query'
  because it this column is not needed anymore
- Changes for the 2nd part for dropping a column based
  on the GitLab guide, see
    https://docs.gitlab.com/ee/development/database/avoiding_downtime_in_migrations.html#dropping-columns
- Changes relevant for protected packages

Changelog: removed
上级 3d467b95
No related branches found
No related tags found
无相关合并请求
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
module Packages module Packages
module Protection module Protection
class Rule < ApplicationRecord class Rule < ApplicationRecord
include IgnorableColumns
ignore_column :package_name_pattern_ilike_query, remove_with: '16.11', remove_after: '2024-03-22'
enum package_type: Packages::Package.package_types.slice(:npm) enum package_type: Packages::Package.package_types.slice(:npm)
enum push_protected_up_to_access_level: enum push_protected_up_to_access_level:
Gitlab::Access.sym_options_with_owner.slice(:developer, :maintainer, :owner), Gitlab::Access.sym_options_with_owner.slice(:developer, :maintainer, :owner),
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册