summaryrefslogtreecommitdiff
path: root/db/migrate/20221221134116_create_elastic_group_index_statuses.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-18 19:00:14 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-18 19:00:14 +0000
commit05f0ebba3a2c8ddf39e436f412dc2ab5bf1353b2 (patch)
tree11d0f2a6ec31c7793c184106cedc2ded3d9a2cc5 /db/migrate/20221221134116_create_elastic_group_index_statuses.rb
parentec73467c23693d0db63a797d10194da9e72a74af (diff)
downloadgitlab-ce-05f0ebba3a2c8ddf39e436f412dc2ab5bf1353b2.tar.gz
Add latest changes from gitlab-org/gitlab@15-8-stable-eev15.8.0-rc42
Diffstat (limited to 'db/migrate/20221221134116_create_elastic_group_index_statuses.rb')
-rw-r--r--db/migrate/20221221134116_create_elastic_group_index_statuses.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20221221134116_create_elastic_group_index_statuses.rb b/db/migrate/20221221134116_create_elastic_group_index_statuses.rb
new file mode 100644
index 00000000000..6084b7e9557
--- /dev/null
+++ b/db/migrate/20221221134116_create_elastic_group_index_statuses.rb
@@ -0,0 +1,18 @@
+# frozen_string_literal: true
+
+class CreateElasticGroupIndexStatuses < Gitlab::Database::Migration[2.1]
+ def change
+ create_table :elastic_group_index_statuses, id: false do |t|
+ t.references :namespace,
+ primary_key: true,
+ foreign_key: { on_delete: :cascade },
+ index: false,
+ default: nil
+
+ t.timestamps_with_timezone null: false
+ t.datetime_with_timezone :wiki_indexed_at
+
+ t.binary :last_wiki_commit
+ end
+ end
+end