Commit de4e2dca authored by Andreas Brandl's avatar Andreas Brandl

Merge branch 'db/prometheus-metrics-not-null-constraints' into 'master'

Add not null constraints to prometheus_metrics table columns

Closes #66663

See merge request gitlab-org/gitlab-ce!32339
parents a8c45163 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
...@@ -2869,8 +2869,8 @@ ActiveRecord::Schema.define(version: 2019_09_02_131045) do ...@@ -2869,8 +2869,8 @@ ActiveRecord::Schema.define(version: 2019_09_02_131045) do
t.integer "project_id" t.integer "project_id"
t.string "title", null: false t.string "title", null: false
t.string "query", null: false t.string "query", null: false
t.string "y_label" t.string "y_label", null: false
t.string "unit" t.string "unit", null: false
t.string "legend" t.string "legend"
t.integer "group", null: false t.integer "group", null: false
t.datetime_with_timezone "created_at", null: false t.datetime_with_timezone "created_at", null: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment