diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-08 21:08:40 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-08 21:08:40 +0000 |
commit | 79959cb5bc84ba8274ca3a6caa7ff88c86a80caa (patch) | |
tree | 93aae2860f63c661ac5718692d7804b84fb3a7d1 /db/post_migrate/20220706070804_drop_clusters_applications_elastic_stacks_table.rb | |
parent | b9664970c3f8ac8c80e26052af098b1c9b09616c (diff) | |
download | gitlab-ce-79959cb5bc84ba8274ca3a6caa7ff88c86a80caa.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/post_migrate/20220706070804_drop_clusters_applications_elastic_stacks_table.rb')
-rw-r--r-- | db/post_migrate/20220706070804_drop_clusters_applications_elastic_stacks_table.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/post_migrate/20220706070804_drop_clusters_applications_elastic_stacks_table.rb b/db/post_migrate/20220706070804_drop_clusters_applications_elastic_stacks_table.rb new file mode 100644 index 00000000000..cedf666e428 --- /dev/null +++ b/db/post_migrate/20220706070804_drop_clusters_applications_elastic_stacks_table.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class DropClustersApplicationsElasticStacksTable < Gitlab::Database::Migration[2.0] + def up + drop_table :clusters_applications_elastic_stacks + end + + def down + create_table :clusters_applications_elastic_stacks do |t| + t.timestamps_with_timezone null: false + t.references :cluster, type: :bigint, null: false, index: { unique: true } + t.integer :status, null: false + t.string :version, null: false, limit: 255 + t.text :status_reason + end + end +end |