Commit 407b029f authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab master

parents 1c3df8e8 babc2fe7
---
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
......@@ -15,7 +15,7 @@ source code quality using GitLab Code Quality.
Code Quality:
- Uses [Code Climate Engines](https://codeclimate.com), which are
- Uses [Engines](https://docs.codeclimate.com/docs/list-of-engines) supported by Code Climate, which are
free and open source. Code Quality does not require a Code Climate
subscription.
- Runs in [pipelines](../../../ci/pipelines/index.md) using a Docker image built in the
......
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