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
de91c91c
Commit
de91c91c
authored
Dec 04, 2019
by
Krasimir Angelov
Committed by
Mayra Cabrera
Dec 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove operations_feature_flags_clients.token column
Related to
https://gitlab.com/gitlab-org/gitlab/issues/35697
.
parent
9979f35f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
3 deletions
+29
-3
db/post_migrate/20191202031812_drop_operations_feature_flags_clients_token.rb
...1202031812_drop_operations_feature_flags_clients_token.rb
+23
-0
db/schema.rb
db/schema.rb
+1
-3
ee/changelogs/unreleased/35697-drop-operations-feature-flags-clients-token.yml
...sed/35697-drop-operations-feature-flags-clients-token.yml
+5
-0
No files found.
db/post_migrate/20191202031812_drop_operations_feature_flags_clients_token.rb
0 → 100644
View file @
de91c91c
# frozen_string_literal: true
class
DropOperationsFeatureFlagsClientsToken
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
# Ignored in 12.5 - https://gitlab.com/gitlab-org/gitlab/merge_requests/18923
remove_column
:operations_feature_flags_clients
,
:token
end
def
down
unless
column_exists?
(
:operations_feature_flags_clients
,
:token
)
add_column
:operations_feature_flags_clients
,
:token
,
:string
# rubocop:disable Migration/AddLimitToStringColumns
end
add_concurrent_index
:operations_feature_flags_clients
,
[
:project_id
,
:token
],
unique:
true
,
name:
'index_operations_feature_flags_clients_on_project_id_and_token'
end
end
db/schema.rb
View file @
de91c91c
...
...
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2019_1
1_25_140458
)
do
ActiveRecord
::
Schema
.
define
(
version:
2019_1
2_02_031812
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"pg_trgm"
...
...
@@ -2776,9 +2776,7 @@ ActiveRecord::Schema.define(version: 2019_11_25_140458) do
create_table
"operations_feature_flags_clients"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
,
null:
false
t
.
string
"token"
t
.
string
"token_encrypted"
t
.
index
[
"project_id"
,
"token"
],
name:
"index_operations_feature_flags_clients_on_project_id_and_token"
,
unique:
true
t
.
index
[
"project_id"
,
"token_encrypted"
],
name:
"index_feature_flags_clients_on_project_id_and_token_encrypted"
,
unique:
true
end
...
...
ee/changelogs/unreleased/35697-drop-operations-feature-flags-clients-token.yml
0 → 100644
View file @
de91c91c
---
title
:
Remove operations_feature_flags_clients.token column
merge_request
:
21016
author
:
type
:
other
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