summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-08-14 08:20:32 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-08-14 08:20:32 +0000
commit035edd39c422c9434147a1b0ac457cb9383c9b5b (patch)
tree4b25e158e04068c535e828c04f336c769ac9db9c /db
parent763d5dddde2c7dda03fe529c9dfe0d553669c277 (diff)
downloadredmine-035edd39c422c9434147a1b0ac457cb9383c9b5b.tar.gz
redmine-035edd39c422c9434147a1b0ac457cb9383c9b5b.zip
Import issues from CSV file (#950).
git-svn-id: http://svn.redmine.org/redmine/trunk@14493 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150730122707_create_imports.rb13
-rw-r--r--db/migrate/20150730122735_create_import_items.rb10
2 files changed, 23 insertions, 0 deletions
diff --git a/db/migrate/20150730122707_create_imports.rb b/db/migrate/20150730122707_create_imports.rb
new file mode 100644
index 000000000..8b58d06c8
--- /dev/null
+++ b/db/migrate/20150730122707_create_imports.rb
@@ -0,0 +1,13 @@
+class CreateImports < ActiveRecord::Migration
+ def change
+ create_table :imports do |t|
+ t.string :type
+ t.integer :user_id, :null => false
+ t.string :filename
+ t.text :settings
+ t.integer :total_items
+ t.boolean :finished, :null => false, :default => false
+ t.timestamps
+ end
+ end
+end
diff --git a/db/migrate/20150730122735_create_import_items.rb b/db/migrate/20150730122735_create_import_items.rb
new file mode 100644
index 000000000..7e9cfb7d6
--- /dev/null
+++ b/db/migrate/20150730122735_create_import_items.rb
@@ -0,0 +1,10 @@
+class CreateImportItems < ActiveRecord::Migration
+ def change
+ create_table :import_items do |t|
+ t.integer :import_id, :null => false
+ t.integer :position, :null => false
+ t.integer :obj_id
+ t.text :message
+ end
+ end
+end