diff --git a/db/migrate/20250529100339_add_report_data_to_vulnerability_exports.rb b/db/migrate/20250529100339_add_report_data_to_vulnerability_exports.rb new file mode 100644 index 0000000000000000000000000000000000000000..2bae826c44dafaaf7afebc6909b92c1e650f16f6 --- /dev/null +++ b/db/migrate/20250529100339_add_report_data_to_vulnerability_exports.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class AddReportDataToVulnerabilityExports < Gitlab::Database::Migration[2.3] + milestone '18.1' + + def change + add_column :vulnerability_exports, :report_data, :jsonb, default: {}, null: false + end +end diff --git a/db/schema_migrations/20250529100339 b/db/schema_migrations/20250529100339 new file mode 100644 index 0000000000000000000000000000000000000000..233190c2a6aadfdce066a0a593eeddfa89e5ab79 --- /dev/null +++ b/db/schema_migrations/20250529100339 @@ -0,0 +1 @@ +a17e6be3b77107307b0103590c8601025af0b404ccbacb388f3ef56c86e25cd7 \ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index 6588f1ca9bdf950f2c2df10e12bf3f68816c0082..9bedb85e12c32c2d2a6c2f875585b88342316137 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -24985,7 +24985,8 @@ CREATE TABLE vulnerability_exports ( group_id bigint, organization_id bigint NOT NULL, expires_at timestamp with time zone, - send_email boolean DEFAULT false NOT NULL + send_email boolean DEFAULT false NOT NULL, + report_data jsonb DEFAULT '{}'::jsonb NOT NULL ); CREATE SEQUENCE vulnerability_exports_id_seq