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
cf0d71e1
Commit
cf0d71e1
authored
Sep 11, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ldap group links migrations
parent
3bd42168
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
db/migrate/20170911133813_drop_cn_constraint_to_ldap_group_links.rb
.../20170911133813_drop_cn_constraint_to_ldap_group_links.rb
+7
-0
db/migrate/20170911134018_add_filter_to_ldap_group_links.rb
db/migrate/20170911134018_add_filter_to_ldap_group_links.rb
+8
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
db/migrate/20170911133813_drop_cn_constraint_to_ldap_group_links.rb
0 → 100644
View file @
cf0d71e1
class
DropCnConstraintToLdapGroupLinks
<
ActiveRecord
::
Migration
DOWNTIME
=
false
def
change
change_column_null
:ldap_group_links
,
:cn
,
true
end
end
db/migrate/20170911134018_add_filter_to_ldap_group_links.rb
0 → 100644
View file @
cf0d71e1
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddFilterToLdapGroupLinks
<
ActiveRecord
::
Migration
def
change
add_column
(
:ldap_group_links
,
:filter
,
:string
)
end
end
db/schema.rb
View file @
cf0d71e1
...
...
@@ -941,12 +941,13 @@ ActiveRecord::Schema.define(version: 20170918223303) do
add_index
"labels"
,
[
"type"
,
"project_id"
],
name:
"index_labels_on_type_and_project_id"
,
using: :btree
create_table
"ldap_group_links"
,
force: :cascade
do
|
t
|
t
.
string
"cn"
,
null:
false
t
.
string
"cn"
t
.
integer
"group_access"
,
null:
false
t
.
integer
"group_id"
,
null:
false
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
t
.
string
"provider"
t
.
string
"filter"
end
create_table
"lfs_objects"
,
force: :cascade
do
|
t
|
...
...
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