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/20220513093615_add_ding_talk_tracker_data.rb')
-rw-r--r--db/migrate/20220513093615_add_ding_talk_tracker_data.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20220513093615_add_ding_talk_tracker_data.rb b/db/migrate/20220513093615_add_ding_talk_tracker_data.rb
new file mode 100644
index 00000000000..0a9c340fbf0
--- /dev/null
+++ b/db/migrate/20220513093615_add_ding_talk_tracker_data.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+class AddDingTalkTrackerData < Gitlab::Database::Migration[2.0]
+ INDEX_NAME = 'index_on_dingtalk_tracker_data_corpid'
+
+ def change
+ create_table :dingtalk_tracker_data, comment: 'JiHu-specific table' do |t|
+ t.references :integration, foreign_key: { on_delete: :cascade },
+ type: :bigint, index: true, null: false, comment: 'JiHu-specific column'
+ t.timestamps_with_timezone
+ t.text :corpid, comment: 'JiHu-specific column', limit: 255
+ t.index :corpid, where: "(corpid IS NOT NULL)", name: INDEX_NAME, comment: 'JiHu-specific index'
+ end
+ end
+end