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
37c98e7e
Commit
37c98e7e
authored
Jun 29, 2020
by
Kerri Miller
Committed by
Mayra Cabrera
Jun 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `default_branch_name` to ApplicationSettings model
parent
7def0411
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
0 deletions
+38
-0
changelogs/unreleased/224447-add-default_branch_name-to-applicationsettings-model.yml
...-add-default_branch_name-to-applicationsettings-model.yml
+5
-0
db/migrate/20200624222443_add_default_branch_name_to_application_settings.rb
...222443_add_default_branch_name_to_application_settings.rb
+12
-0
db/migrate/20200625190458_add_limit_to_default_branch_name_to_application_settings.rb
...d_limit_to_default_branch_name_to_application_settings.rb
+17
-0
db/structure.sql
db/structure.sql
+4
-0
No files found.
changelogs/unreleased/224447-add-default_branch_name-to-applicationsettings-model.yml
0 → 100644
View file @
37c98e7e
---
title
:
Add default_branch_name to application_setteings
merge_request
:
35282
author
:
type
:
other
db/migrate/20200624222443_add_default_branch_name_to_application_settings.rb
0 → 100644
View file @
37c98e7e
# frozen_string_literal: true
class
AddDefaultBranchNameToApplicationSettings
<
ActiveRecord
::
Migration
[
6.0
]
DOWNTIME
=
false
# rubocop:disable Migration/AddLimitToTextColumns
# limit is added in db/migrate/20200625190458_add_limit_to_default_branch_name_to_application_settings
def
change
add_column
:application_settings
,
:default_branch_name
,
:text
end
# rubocop:enable Migration/AddLimitToTextColumns
end
db/migrate/20200625190458_add_limit_to_default_branch_name_to_application_settings.rb
0 → 100644
View file @
37c98e7e
# frozen_string_literal: true
class
AddLimitToDefaultBranchNameToApplicationSettings
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_text_limit
:application_settings
,
:default_branch_name
,
255
end
def
down
remove_text_limit
:application_settings
,
:default_branch_name
end
end
db/structure.sql
View file @
37c98e7e
...
...
@@ -9144,6 +9144,8 @@ CREATE TABLE public.application_settings (
enforce_pat_expiration
boolean
DEFAULT
true
NOT
NULL
,
compliance_frameworks
smallint
[]
DEFAULT
'{}'
::
smallint
[]
NOT
NULL
,
notify_on_unknown_sign_in
boolean
DEFAULT
true
NOT
NULL
,
default_branch_name
text
,
CONSTRAINT
check_51700b31b5
CHECK
((
char_length
(
default_branch_name
)
<=
255
)),
CONSTRAINT
check_d03919528d
CHECK
((
char_length
(
container_registry_vendor
)
<=
255
)),
CONSTRAINT
check_d820146492
CHECK
((
char_length
(
spam_check_endpoint_url
)
<=
255
)),
CONSTRAINT
check_e5aba18f02
CHECK
((
char_length
(
container_registry_version
)
<=
255
))
...
...
@@ -23452,7 +23454,9 @@ COPY "schema_migrations" (version) FROM STDIN;
20200623170000
20200623185440
20200624075411
20200624222443
20200625045442
20200625190458
20200626130220
\
.
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