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
be103fc0
Commit
be103fc0
authored
Sep 08, 2020
by
Małgorzata Ksionek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create migration with new setting
parent
b050cbf8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
db/migrate/20200908094810_add_new_setting_to_namespace_setting.rb
...te/20200908094810_add_new_setting_to_namespace_setting.rb
+19
-0
db/schema_migrations/20200908094810
db/schema_migrations/20200908094810
+1
-0
db/structure.sql
db/structure.sql
+2
-1
No files found.
db/migrate/20200908094810_add_new_setting_to_namespace_setting.rb
0 → 100644
View file @
be103fc0
# frozen_string_literal: true
class
AddNewSettingToNamespaceSetting
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
with_lock_retries
do
add_column
:namespace_settings
,
:allow_mfa_for_subgroups
,
:boolean
,
default:
true
,
null:
false
end
end
def
down
with_lock_retries
do
remove_column
:namespace_settings
,
:allow_mfa_for_subgroups
,
:boolean
,
default:
true
,
null:
false
end
end
end
db/schema_migrations/20200908094810
0 → 100644
View file @
be103fc0
327cd19cd6c0f273aea61ffebf10046fb7229516bc4ed28f3c0290bb3ad04755
\ No newline at end of file
db/structure.sql
View file @
be103fc0
...
...
@@ -13445,7 +13445,8 @@ CREATE TABLE public.namespace_settings (
created_at
timestamp
with
time
zone
NOT
NULL
,
updated_at
timestamp
with
time
zone
NOT
NULL
,
namespace_id
integer
NOT
NULL
,
prevent_forking_outside_group
boolean
DEFAULT
false
NOT
NULL
prevent_forking_outside_group
boolean
DEFAULT
false
NOT
NULL
,
allow_mfa_for_subgroups
boolean
DEFAULT
true
NOT
NULL
);
CREATE
TABLE
public
.
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