Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c2bb99a0
Commit
c2bb99a0
authored
Jul 28, 2021
by
Etienne Baqué
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No-oped migration to add state to members
parent
a6bfebb3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
11 deletions
+3
-11
db/migrate/20210721145029_add_state_to_members.rb
db/migrate/20210721145029_add_state_to_members.rb
+2
-6
db/structure.sql
db/structure.sql
+1
-2
lib/gitlab/import_export/project/import_export.yml
lib/gitlab/import_export/project/import_export.yml
+0
-3
No files found.
db/migrate/20210721145029_add_state_to_members.rb
View file @
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
db/structure.sql
View file @
c2bb99a0
...
@@ -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
lib/gitlab/import_export/project/import_export.yml
View file @
c2bb99a0
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment