Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
eaea614b
Commit
eaea614b
authored
Mar 16, 2021
by
Qingyu Zhao
Committed by
Mayra Cabrera
Mar 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migration: add trial extension type to gitlab_subscription
parent
9c471988
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
2 deletions
+41
-2
changelogs/unreleased/migration-add-trial-extension-type-to-gitlab-subscriptions.yml
...tion-add-trial-extension-type-to-gitlab-subscriptions.yml
+5
-0
db/migrate/20210316094047_add_trial_extension_type_to_gitlab_subscription_histories.rb
..._trial_extension_type_to_gitlab_subscription_histories.rb
+9
-0
db/migrate/20210316094323_add_trial_extension_type_to_gitlab_subscriptions.rb
...94323_add_trial_extension_type_to_gitlab_subscriptions.rb
+21
-0
db/schema_migrations/20210316094047
db/schema_migrations/20210316094047
+1
-0
db/schema_migrations/20210316094323
db/schema_migrations/20210316094323
+1
-0
db/structure.sql
db/structure.sql
+4
-2
No files found.
changelogs/unreleased/migration-add-trial-extension-type-to-gitlab-subscriptions.yml
0 → 100644
View file @
eaea614b
---
title
:
'
Migration:
add
trial
extension
type
to
gitlab_subscription'
merge_request
:
56460
author
:
type
:
added
db/migrate/20210316094047_add_trial_extension_type_to_gitlab_subscription_histories.rb
0 → 100644
View file @
eaea614b
# 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
db/migrate/20210316094323_add_trial_extension_type_to_gitlab_subscriptions.rb
0 → 100644
View file @
eaea614b
# 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
db/schema_migrations/20210316094047
0 → 100644
View file @
eaea614b
208df71aa7c2dc447ea8f63ca8cc02344a78bd739c7a0e9457c665bfb831a879
\ No newline at end of file
db/schema_migrations/20210316094323
0 → 100644
View file @
eaea614b
e1d83121dd3bd1a608626910a8238546816870f6f36840d96b2b4ac3415af985
\ No newline at end of file
db/structure.sql
View file @
eaea614b
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment