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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
40181bfc
Commit
40181bfc
authored
Sep 05, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix concurrent index problem
parent
bdb06db0
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
+18
-2
db/migrate/20180831164908_add_identifier_to_prometheus_metric.1.rb
...e/20180831164908_add_identifier_to_prometheus_metric.1.rb
+0
-1
db/migrate/20180831164909_add_index_for_identifier_to_prometheus_metric.rb
...31164909_add_index_for_identifier_to_prometheus_metric.rb
+17
-0
db/migrate/20180831164910_import_common_metrics.rb
db/migrate/20180831164910_import_common_metrics.rb
+0
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
db/migrate/20180831164908_add_identifier_to_prometheus_metric.rb
→
db/migrate/20180831164908_add_identifier_to_prometheus_metric.
1.
rb
View file @
40181bfc
...
@@ -7,6 +7,5 @@ class AddIdentifierToPrometheusMetric < ActiveRecord::Migration
...
@@ -7,6 +7,5 @@ class AddIdentifierToPrometheusMetric < ActiveRecord::Migration
def
change
def
change
add_column
:prometheus_metrics
,
:identifier
,
:string
add_column
:prometheus_metrics
,
:identifier
,
:string
add_index
:prometheus_metrics
,
:identifier
,
unique:
true
end
end
end
end
db/migrate/20180831164909_add_index_for_identifier_to_prometheus_metric.rb
0 → 100644
View file @
40181bfc
# frozen_string_literal: true
class
AddIdentifierToPrometheusMetric
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_index
:prometheus_metrics
,
:identifier
,
unique:
true
end
def
down
remove_concurrent_index
:prometheus_metrics
,
:identifier
,
unique:
true
end
end
db/migrate/201808311649
09
_import_common_metrics.rb
→
db/migrate/201808311649
10
_import_common_metrics.rb
View file @
40181bfc
File moved
db/schema.rb
View file @
40181bfc
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201808311649
09
)
do
ActiveRecord
::
Schema
.
define
(
version:
201808311649
10
)
do
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
enable_extension
"plpgsql"
...
...
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