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
3c8ef22d
Commit
3c8ef22d
authored
Sep 01, 2021
by
Etienne Baqué
Committed by
Stan Hu
Sep 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Readding state column for members table
Changelog: added
parent
bcfd7848
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
db/migrate/20210830140524_add_state_to_member.rb
db/migrate/20210830140524_add_state_to_member.rb
+21
-0
db/schema_migrations/20210830140524
db/schema_migrations/20210830140524
+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/20210830140524_add_state_to_member.rb
0 → 100644
View file @
3c8ef22d
# frozen_string_literal: true
class
AddStateToMember
<
ActiveRecord
::
Migration
[
6.1
]
include
Gitlab
::
Database
::
MigrationHelpers
def
up
unless
column_exists?
(
:members
,
:state
)
with_lock_retries
do
add_column
:members
,
:state
,
:integer
,
limit:
2
,
default:
0
end
end
end
def
down
if
column_exists?
(
:members
,
:state
)
with_lock_retries
do
remove_column
:members
,
:state
end
end
end
end
db/schema_migrations/20210830140524
0 → 100644
View file @
3c8ef22d
54f7c66eed745b62d0b53a407a96721f90392ab7f800db9c8a2607f22974ef3c
\ No newline at end of file
db/structure.sql
View file @
3c8ef22d
...
...
@@ -14873,7 +14873,8 @@ CREATE TABLE members (
requested_at timestamp without time zone,
expires_at date,
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
lib/gitlab/import_export/project/import_export.yml
View file @
3c8ef22d
...
...
@@ -333,6 +333,9 @@ excluded_attributes:
project_members
:
-
:source_id
-
:invite_email_success
-
:state
group_members
:
-
:state
metrics
:
-
:merge_request_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