Commit 336c4715 authored by Alper Akgun's avatar Alper Akgun

Merge branch '332592-revert-state-in-members' into 'master'

No-oped migration to add state to members

See merge request gitlab-org/gitlab!67046
parents 087f39c0 c2bb99a0
...@@ -4,14 +4,10 @@ class AddStateToMembers < ActiveRecord::Migration[6.1] ...@@ -4,14 +4,10 @@ class AddStateToMembers < ActiveRecord::Migration[6.1]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
def up def up
with_lock_retries do # no-op
add_column :members, :state, :integer, limit: 2, default: 0
end
end end
def down def down
with_lock_retries do # no-op
remove_column :members, :state
end
end end
end end
...@@ -14766,8 +14766,7 @@ CREATE TABLE members ( ...@@ -14766,8 +14766,7 @@ CREATE TABLE members (
expires_at date, expires_at date,
ldap boolean DEFAULT false NOT NULL, ldap boolean DEFAULT false NOT NULL,
override boolean DEFAULT false NOT NULL, override boolean DEFAULT false NOT NULL,
invite_email_success boolean DEFAULT true NOT NULL, invite_email_success boolean DEFAULT true NOT NULL
state smallint DEFAULT 0
); );
CREATE SEQUENCE members_id_seq CREATE SEQUENCE members_id_seq
...@@ -328,9 +328,6 @@ excluded_attributes: ...@@ -328,9 +328,6 @@ excluded_attributes:
- :release_id - :release_id
project_members: project_members:
- :source_id - :source_id
- :state
group_members:
- :state
metrics: metrics:
- :merge_request_id - :merge_request_id
- :pipeline_id - :pipeline_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment