Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-17 19:05:49 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-17 19:05:49 +0300
commit43a25d93ebdabea52f99b05e15b06250cd8f07d7 (patch)
treedceebdc68925362117480a5d672bcff122fb625b /db/post_migrate/20230502193525_drop_clusters_applications_helm.rb
parent20c84b99005abd1c82101dfeff264ac50d2df211 (diff)
Add latest changes from gitlab-org/gitlab@16-0-stable-eev16.0.0-rc42
Diffstat (limited to 'db/post_migrate/20230502193525_drop_clusters_applications_helm.rb')
-rw-r--r--db/post_migrate/20230502193525_drop_clusters_applications_helm.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/db/post_migrate/20230502193525_drop_clusters_applications_helm.rb b/db/post_migrate/20230502193525_drop_clusters_applications_helm.rb
new file mode 100644
index 00000000000..21df851229c
--- /dev/null
+++ b/db/post_migrate/20230502193525_drop_clusters_applications_helm.rb
@@ -0,0 +1,31 @@
+# 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 DropClustersApplicationsHelm < Gitlab::Database::Migration[2.1]
+ def up
+ drop_table :clusters_applications_helm
+ end
+
+ # Based on init schema:
+ # https://gitlab.com/gitlab-org/gitlab/-/blob/b237f836df215a4ada92b9406733e6cd2483ca2d/db/migrate/20181228175414_init_schema.rb#L691-L702
+ # rubocop:disable Migration/SchemaAdditionMethodsNoPost
+ # rubocop:disable Migration/Datetime
+ def down
+ create_table "clusters_applications_helm", id: :serial, force: :cascade do |t|
+ t.integer "cluster_id", null: false
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ t.integer "status", null: false
+ t.string "version", null: false
+ t.text "status_reason"
+ t.text "encrypted_ca_key"
+ t.text "encrypted_ca_key_iv"
+ t.text "ca_cert"
+ t.index ["cluster_id"], name: "index_clusters_applications_helm_on_cluster_id", unique: true
+ end
+ end
+ # rubocop:enable Migration/SchemaAdditionMethodsNoPost
+ # rubocop:enable Migration/Datetime
+end