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
6a8ce2a1
Commit
6a8ce2a1
authored
Oct 05, 2020
by
Kerri Miller
Committed by
Toon Claes
Oct 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add default_branch_name column to namespace_settings table
parent
deef6929
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
1 deletion
+44
-1
changelogs/unreleased/251935-add-default_branch_name-column-to-namespace_settings-table.yml
...efault_branch_name-column-to-namespace_settings-table.yml
+5
-0
db/migrate/20200919200318_add_default_branch_name_to_namespace_settings.rb
...19200318_add_default_branch_name_to_namespace_settings.rb
+15
-0
db/migrate/20200919204155_add_text_limit_to_namespace_settings_default_branch_name.rb
...d_text_limit_to_namespace_settings_default_branch_name.rb
+19
-0
db/schema_migrations/20200919200318
db/schema_migrations/20200919200318
+1
-0
db/schema_migrations/20200919204155
db/schema_migrations/20200919204155
+1
-0
db/structure.sql
db/structure.sql
+3
-1
No files found.
changelogs/unreleased/251935-add-default_branch_name-column-to-namespace_settings-table.yml
0 → 100644
View file @
6a8ce2a1
---
title
:
Add :default_branch_name column to namespace_settings
merge_request
:
42778
author
:
type
:
added
db/migrate/20200919200318_add_default_branch_name_to_namespace_settings.rb
0 → 100644
View file @
6a8ce2a1
# frozen_string_literal: true
class
AddDefaultBranchNameToNamespaceSettings
<
ActiveRecord
::
Migration
[
6.0
]
DOWNTIME
=
false
# rubocop:disable Migration/AddLimitToTextColumns
# limit is added in 20200919204155_add_text_limit_to_namespace_settings_default_branch_name
#
def
change
add_column
:namespace_settings
,
:default_branch_name
,
:text
end
# rubocop:enable Migration/AddLimitToTextColumns
end
db/migrate/20200919204155_add_text_limit_to_namespace_settings_default_branch_name.rb
0 → 100644
View file @
6a8ce2a1
# frozen_string_literal: true
class
AddTextLimitToNamespaceSettingsDefaultBranchName
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_text_limit
:namespace_settings
,
:default_branch_name
,
255
end
def
down
# Down is required as `add_text_limit` is not reversible
#
remove_text_limit
:namespace_settings
,
:default_branch_name
end
end
db/schema_migrations/20200919200318
0 → 100644
View file @
6a8ce2a1
f33c66297ca7848c576778dc275e42801f5f9d7cdcf8c4d2fb205d4eb9770937
\ No newline at end of file
db/schema_migrations/20200919204155
0 → 100644
View file @
6a8ce2a1
097cb7a36fdc831045f3a33a047f8bda6474b8165ef5fc95dbdeea45d0ac04a3
\ No newline at end of file
db/structure.sql
View file @
6a8ce2a1
...
...
@@ -13562,7 +13562,9 @@ CREATE TABLE namespace_settings (
updated_at
timestamp
with
time
zone
NOT
NULL
,
namespace_id
integer
NOT
NULL
,
prevent_forking_outside_group
boolean
DEFAULT
false
NOT
NULL
,
allow_mfa_for_subgroups
boolean
DEFAULT
true
NOT
NULL
allow_mfa_for_subgroups
boolean
DEFAULT
true
NOT
NULL
,
default_branch_name
text
,
CONSTRAINT
check_0ba93c78c7
CHECK
((
char_length
(
default_branch_name
)
<=
255
))
);
CREATE
TABLE
namespace_statistics
(
...
...
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