Commit 34206122 authored by Fabio Pitino's avatar Fabio Pitino Committed by Mayra Cabrera

Add shared_runners_duration column to CI minutes tracking

parent 15708400
# frozen_string_literal: true
class AddSharedRunnersDurationToCiNamespaceMonthlyUsages < Gitlab::Database::Migration[1.0]
enable_lock_retries!
def change
add_column :ci_namespace_monthly_usages, :shared_runners_duration, :integer, default: 0, null: false
end
end
# frozen_string_literal: true
class AddSharedRunnersDurationToCiProjectMonthlyUsages < Gitlab::Database::Migration[1.0]
enable_lock_retries!
def change
add_column :ci_project_monthly_usages, :shared_runners_duration, :integer, default: 0, null: false
end
end
b4104ebb3d99100ed5b6831174af563ea7cda46428007e30219198b910313b05
\ No newline at end of file
d16b96a960e03e50135802885f5b8c44168d2413f3db1f53ac15389a33dddc61
\ No newline at end of file
......@@ -11645,6 +11645,7 @@ CREATE TABLE ci_namespace_monthly_usages (
additional_amount_available integer DEFAULT 0 NOT NULL,
amount_used numeric(18,2) DEFAULT 0.0 NOT NULL,
notification_level smallint DEFAULT 100 NOT NULL,
shared_runners_duration integer DEFAULT 0 NOT NULL,
CONSTRAINT ci_namespace_monthly_usages_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone)))
);
......@@ -11889,6 +11890,7 @@ CREATE TABLE ci_project_monthly_usages (
project_id bigint NOT NULL,
date date NOT NULL,
amount_used numeric(18,2) DEFAULT 0.0 NOT NULL,
shared_runners_duration integer DEFAULT 0 NOT NULL,
CONSTRAINT ci_project_monthly_usages_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone)))
);
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