diff options
Diffstat (limited to 'db/post_migrate/20230501180958_drop_clusters_applications_cert_managers.rb')
-rw-r--r-- | db/post_migrate/20230501180958_drop_clusters_applications_cert_managers.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/db/post_migrate/20230501180958_drop_clusters_applications_cert_managers.rb b/db/post_migrate/20230501180958_drop_clusters_applications_cert_managers.rb new file mode 100644 index 00000000000..8949e37dcc3 --- /dev/null +++ b/db/post_migrate/20230501180958_drop_clusters_applications_cert_managers.rb @@ -0,0 +1,27 @@ +# 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 DropClustersApplicationsCertManagers < Gitlab::Database::Migration[2.1] + def up + drop_table :clusters_applications_cert_managers + end + + # Based on init migration: + # https://gitlab.com/gitlab-org/gitlab/-/blob/b237f836df215a4ada92b9406733e6cd2483ca2d/db/migrate/20181228175414_init_schema.rb#L680-L689 + # rubocop:disable Migration/SchemaAdditionMethodsNoPost + def down + create_table "clusters_applications_cert_managers", id: :serial, force: :cascade do |t| + t.integer "cluster_id", null: false + t.integer "status", null: false + t.string "version", null: false + t.string "email", null: false + t.datetime_with_timezone "created_at", null: false + t.datetime_with_timezone "updated_at", null: false + t.text "status_reason" + t.index ["cluster_id"], name: "index_clusters_applications_cert_managers_on_cluster_id", unique: true + end + end + # rubocop:enable Migration/SchemaAdditionMethodsNoPost +end |