Commit c2bb99a0 authored by Etienne Baqué's avatar Etienne Baqué

No-oped migration to add state to members

parent a6bfebb3
...@@ -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
...@@ -14708,8 +14708,7 @@ CREATE TABLE members ( ...@@ -14708,8 +14708,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