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:
Diffstat (limited to 'db/migrate/20230104201524_add_zoekt_shards_and_indexed_namespaces.rb')
-rw-r--r--db/migrate/20230104201524_add_zoekt_shards_and_indexed_namespaces.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/db/migrate/20230104201524_add_zoekt_shards_and_indexed_namespaces.rb b/db/migrate/20230104201524_add_zoekt_shards_and_indexed_namespaces.rb
deleted file mode 100644
index c9d7bc51041..00000000000
--- a/db/migrate/20230104201524_add_zoekt_shards_and_indexed_namespaces.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# frozen_string_literal: true
-
-class AddZoektShardsAndIndexedNamespaces < Gitlab::Database::Migration[2.1]
- enable_lock_retries!
-
- def change
- create_table :zoekt_shards do |t|
- t.text :index_base_url, limit: 1024, index: { unique: true }, null: false
- t.text :search_base_url, limit: 1024, index: { unique: true }, null: false
- t.timestamps_with_timezone
- end
-
- create_table :zoekt_indexed_namespaces do |t|
- t.references :zoekt_shard, null: false, index: false, foreign_key: { on_delete: :cascade }
- t.bigint :namespace_id, null: false, index: true
- t.timestamps_with_timezone
- t.index [:zoekt_shard_id, :namespace_id], unique: true, name: 'index_zoekt_shard_and_namespace'
- end
- end
-end