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
e036502e
Commit
e036502e
authored
Jul 01, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
4c869257
7177f59f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
changelogs/unreleased/add-strategies-column-to-scopes-table.yml
...logs/unreleased/add-strategies-column-to-scopes-table.yml
+5
-0
db/migrate/20190628145246_add_strategies_to_operations_feature_flag_scopes.rb
...45246_add_strategies_to_operations_feature_flag_scopes.rb
+17
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
changelogs/unreleased/add-strategies-column-to-scopes-table.yml
0 → 100644
View file @
e036502e
---
title
:
Add strategies column to operations_feature_flag_scopes table
merge_request
:
29808
author
:
type
:
other
db/migrate/20190628145246_add_strategies_to_operations_feature_flag_scopes.rb
0 → 100644
View file @
e036502e
# frozen_string_literal: true
class
AddStrategiesToOperationsFeatureFlagScopes
<
ActiveRecord
::
Migration
[
5.1
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_column_with_default
:operations_feature_flag_scopes
,
:strategies
,
:jsonb
,
default:
[{
name:
"default"
,
parameters:
{}
}]
end
def
down
remove_column
(
:operations_feature_flag_scopes
,
:strategies
)
end
end
db/schema.rb
View file @
e036502e
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2019062
7051902
)
do
ActiveRecord
::
Schema
.
define
(
version:
2019062
8145246
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -2263,6 +2263,7 @@ ActiveRecord::Schema.define(version: 20190627051902) do
t
.
datetime_with_timezone
"updated_at"
,
null:
false
t
.
boolean
"active"
,
null:
false
t
.
string
"environment_scope"
,
default:
"*"
,
null:
false
t
.
jsonb
"strategies"
,
default:
[{
"name"
=>
"default"
,
"parameters"
=>
{}}],
null:
false
t
.
index
[
"feature_flag_id"
,
"environment_scope"
],
name:
"index_feature_flag_scopes_on_flag_id_and_environment_scope"
,
unique:
true
,
using: :btree
end
...
...
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