Commit d9595a31 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'migration-add-trial-extension-type-to-gitlab-subscriptions' into 'master'

Migration: add trial extension type to gitlab_subscription

See merge request gitlab-org/gitlab!56460
parents 09601bb5 eaea614b
---
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
......@@ -13051,7 +13051,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
......@@ -13078,7 +13079,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