Commit 36049ec3 authored by Maxime Orefice's avatar Maxime Orefice

Add expire_at to PipelineArtifact

This new column will be used to expire
artifact in order to limit the storage capacity.
parent 82678ecc
---
title: Add expire_at to PipelineArtifact
merge_request: 39114
author:
type: fixed
# frozen_string_literal: true
class AddExpireAtToCiPipelineArtifact < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
add_column :ci_pipeline_artifacts, :expire_at, :datetime_with_timezone
end
end
d459b160ae86f035509e382c12b76fdd441f58e0838a983471326a750a48e9fd
\ No newline at end of file
......@@ -10058,6 +10058,7 @@ CREATE TABLE public.ci_pipeline_artifacts (
file_type smallint NOT NULL,
file_format smallint NOT NULL,
file text,
expire_at timestamp with time zone,
CONSTRAINT check_191b5850ec CHECK ((char_length(file) <= 255))
);
......
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