diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 19:05:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-17 19:05:49 +0300 |
commit | 43a25d93ebdabea52f99b05e15b06250cd8f07d7 (patch) | |
tree | dceebdc68925362117480a5d672bcff122fb625b /db/post_migrate/20230502134532_drop_clusters_applications_cilium.rb | |
parent | 20c84b99005abd1c82101dfeff264ac50d2df211 (diff) |
Add latest changes from gitlab-org/gitlab@16-0-stable-eev16.0.0-rc42
Diffstat (limited to 'db/post_migrate/20230502134532_drop_clusters_applications_cilium.rb')
-rw-r--r-- | db/post_migrate/20230502134532_drop_clusters_applications_cilium.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/db/post_migrate/20230502134532_drop_clusters_applications_cilium.rb b/db/post_migrate/20230502134532_drop_clusters_applications_cilium.rb new file mode 100644 index 00000000000..8d80bae0a52 --- /dev/null +++ b/db/post_migrate/20230502134532_drop_clusters_applications_cilium.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +# See https://docs.gitlab.com/ee/development/migration_style_guide.html +# for more information on how to write migrations for GitLab. + +class DropClustersApplicationsCilium < Gitlab::Database::Migration[2.1] + def up + drop_table :clusters_applications_cilium + end + + # Based on original migration: + # https://gitlab.com/gitlab-org/gitlab/-/blob/b237f836df215a4ada92b9406733e6cd2483ca2d/db/migrate/20200615234047_create_clusters_applications_cilium.rb + # rubocop:disable Migration/SchemaAdditionMethodsNoPost + def down + create_table :clusters_applications_cilium do |t| + t.references :cluster, null: false, index: { unique: true } + t.timestamps_with_timezone null: false + t.integer :status, null: false + t.text :status_reason # rubocop:disable Migration/AddLimitToTextColumns + end + end + # rubocop:enable Migration/SchemaAdditionMethodsNoPost +end |