summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-21 12:08:46 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-21 12:08:46 +0000
commit7f521d27811b472c43203ed3d1bde4460a617f89 (patch)
tree47f1a10b776991e86c6db002bc6e03e83acc356a /db
parent83e3316a189d3b709b23af30647b5f9ea5377bac (diff)
downloadgitlab-ce-7f521d27811b472c43203ed3d1bde4460a617f89.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20230316093433_insert_daily_invites_trial_plan_limits.rb19
-rw-r--r--db/schema_migrations/202303160934331
2 files changed, 20 insertions, 0 deletions
diff --git a/db/migrate/20230316093433_insert_daily_invites_trial_plan_limits.rb b/db/migrate/20230316093433_insert_daily_invites_trial_plan_limits.rb
new file mode 100644
index 00000000000..f6254cad192
--- /dev/null
+++ b/db/migrate/20230316093433_insert_daily_invites_trial_plan_limits.rb
@@ -0,0 +1,19 @@
+# frozen_string_literal: true
+
+class InsertDailyInvitesTrialPlanLimits < Gitlab::Database::Migration[2.1]
+ restrict_gitlab_migration gitlab_schema: :gitlab_main
+
+ def up
+ return unless Gitlab.com?
+
+ create_or_update_plan_limit('daily_invites', 'premium_trial', 50)
+ create_or_update_plan_limit('daily_invites', 'ultimate_trial', 50)
+ end
+
+ def down
+ return unless Gitlab.com?
+
+ create_or_update_plan_limit('daily_invites', 'premium_trial', 0)
+ create_or_update_plan_limit('daily_invites', 'ultimate_trial', 0)
+ end
+end
diff --git a/db/schema_migrations/20230316093433 b/db/schema_migrations/20230316093433
new file mode 100644
index 00000000000..eaf1434bb2b
--- /dev/null
+++ b/db/schema_migrations/20230316093433
@@ -0,0 +1 @@
+5e3c28caac0cc43d28c7f279ad001234ec6f81e2522c087fc303a6e3355b5a33 \ No newline at end of file