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
834bd3d6
Commit
834bd3d6
authored
Jul 27, 2021
by
Etienne Baqué
Committed by
Adam Hegyi
Jul 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added state column to members table
Changelog: added
parent
d0c3ad98
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletion
+23
-1
db/migrate/20210721145029_add_state_to_members.rb
db/migrate/20210721145029_add_state_to_members.rb
+17
-0
db/schema_migrations/20210721145029
db/schema_migrations/20210721145029
+1
-0
db/structure.sql
db/structure.sql
+2
-1
lib/gitlab/import_export/project/import_export.yml
lib/gitlab/import_export/project/import_export.yml
+3
-0
No files found.
db/migrate/20210721145029_add_state_to_members.rb
0 → 100644
View file @
834bd3d6
# frozen_string_literal: true
class
AddStateToMembers
<
ActiveRecord
::
Migration
[
6.1
]
include
Gitlab
::
Database
::
MigrationHelpers
def
up
with_lock_retries
do
add_column
:members
,
:state
,
:integer
,
limit:
2
,
default:
0
end
end
def
down
with_lock_retries
do
remove_column
:members
,
:state
end
end
end
db/schema_migrations/20210721145029
0 → 100644
View file @
834bd3d6
1585d2912058ce3a9225233c23707a3679a3f8df2078c71b5cc48f28b7bb9392
\ No newline at end of file
db/structure.sql
View file @
834bd3d6
...
@@ -14707,7 +14707,8 @@ CREATE TABLE members (
...
@@ -14707,7 +14707,8 @@ CREATE TABLE members (
requested_at timestamp without time zone,
requested_at timestamp without time zone,
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,
state smallint DEFAULT 0
);
);
CREATE SEQUENCE members_id_seq
CREATE SEQUENCE members_id_seq
lib/gitlab/import_export/project/import_export.yml
View file @
834bd3d6
...
@@ -328,6 +328,9 @@ excluded_attributes:
...
@@ -328,6 +328,9 @@ 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