Commit eaea614b authored by Qingyu Zhao's avatar Qingyu Zhao Committed by Mayra Cabrera

Migration: add trial extension type to gitlab_subscription

parent 9c471988
---
title: 'Migration: add trial extension type to gitlab_subscription'
merge_request: 56460
author:
type: added
# frozen_string_literal: true
class AddTrialExtensionTypeToGitlabSubscriptionHistories < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
add_column :gitlab_subscription_histories, :trial_extension_type, :smallint
end
end
# frozen_string_literal: true
class AddTrialExtensionTypeToGitlabSubscriptions < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
with_lock_retries do
add_column :gitlab_subscriptions, :trial_extension_type, :smallint
end
end
def down
with_lock_retries do
remove_column :gitlab_subscriptions, :trial_extension_type
end
end
end
208df71aa7c2dc447ea8f63ca8cc02344a78bd739c7a0e9457c665bfb831a879
\ No newline at end of file
e1d83121dd3bd1a608626910a8238546816870f6f36840d96b2b4ac3415af985
\ No newline at end of file
......@@ -13026,7 +13026,8 @@ CREATE TABLE gitlab_subscription_histories (
gitlab_subscription_id bigint NOT NULL,
created_at timestamp with time zone,
trial_starts_on date,
auto_renew boolean
auto_renew boolean,
trial_extension_type smallint
);
CREATE SEQUENCE gitlab_subscription_histories_id_seq
......@@ -13053,7 +13054,8 @@ CREATE TABLE gitlab_subscriptions (
trial_starts_on date,
auto_renew boolean,
seats_in_use integer DEFAULT 0 NOT NULL,
seats_owed integer DEFAULT 0 NOT NULL
seats_owed integer DEFAULT 0 NOT NULL,
trial_extension_type smallint
);
CREATE SEQUENCE gitlab_subscriptions_id_seq
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