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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-31 18:07:53 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-31 18:07:53 +0300
commitd7a028e20d29b8c6d0e780ac168544dfbb712d3c (patch)
treef9fc9ea12e166aec6c4ffe476ba7a3566396b696 /db/migrate/20200326114443_create_jira_imports_table.rb
parent0d0cddc9ce20c5a7d8a2723d0aa620ca184a711a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20200326114443_create_jira_imports_table.rb')
-rw-r--r--db/migrate/20200326114443_create_jira_imports_table.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/db/migrate/20200326114443_create_jira_imports_table.rb b/db/migrate/20200326114443_create_jira_imports_table.rb
new file mode 100644
index 00000000000..e114bd513f4
--- /dev/null
+++ b/db/migrate/20200326114443_create_jira_imports_table.rb
@@ -0,0 +1,29 @@
+# frozen_string_literal: true
+
+class CreateJiraImportsTable < ActiveRecord::Migration[6.0]
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def change
+ create_table :jira_imports do |t|
+ t.integer :project_id, null: false, limit: 8
+ t.integer :user_id, limit: 8
+ t.integer :label_id, limit: 8
+ t.timestamps_with_timezone
+ t.datetime_with_timezone :finished_at
+ t.integer :jira_project_xid, null: false, limit: 8
+ t.integer :total_issue_count, null: false, default: 0, limit: 4
+ t.integer :imported_issues_count, null: false, default: 0, limit: 4
+ t.integer :failed_to_import_count, null: false, default: 0, limit: 4
+ t.integer :status, limit: 2, null: false, default: 0
+ t.string :jid, limit: 255
+ t.string :jira_project_key, null: false, limit: 255
+ t.string :jira_project_name, null: false, limit: 255
+ end
+
+ add_index :jira_imports, [:project_id, :jira_project_key], name: 'index_jira_imports_on_project_id_and_jira_project_key'
+ end
+end