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
ab607752
Commit
ab607752
authored
Aug 28, 2019
by
Arun Kumar Mohan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add not null constraints to prometheus_metrics table columns
parent
4e4fcf79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
db/migrate/20190828110802_add_not_null_constraints_to_prometheus_metrics_y_label_and_unit.rb
...ull_constraints_to_prometheus_metrics_y_label_and_unit.rb
+8
-0
db/schema.rb
db/schema.rb
+2
-2
No files found.
db/migrate/20190828110802_add_not_null_constraints_to_prometheus_metrics_y_label_and_unit.rb
0 → 100644
View file @
ab607752
class
AddNotNullConstraintsToPrometheusMetricsYLabelAndUnit
<
ActiveRecord
::
Migration
[
5.2
]
DOWNTIME
=
false
def
change
change_column_null
(
:prometheus_metrics
,
:y_label
,
false
)
change_column_null
(
:prometheus_metrics
,
:unit
,
false
)
end
end
db/schema.rb
View file @
ab607752
...
...
@@ -2869,8 +2869,8 @@ ActiveRecord::Schema.define(version: 2019_09_02_131045) do
t
.
integer
"project_id"
t
.
string
"title"
,
null:
false
t
.
string
"query"
,
null:
false
t
.
string
"y_label"
t
.
string
"unit"
t
.
string
"y_label"
,
null:
false
t
.
string
"unit"
,
null:
false
t
.
string
"legend"
t
.
integer
"group"
,
null:
false
t
.
datetime_with_timezone
"created_at"
,
null:
false
...
...
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