diff options
| author | Michel Etienne | 2012-06-13 09:40:38 +0200 |
|---|---|---|
| committer | Michel Etienne | 2012-06-13 09:40:38 +0200 |
| commit | 1b9b836f25cd7af78c0ec5f48b999e1dea27fa97 (patch) | |
| tree | 1a9bbea9c68e1c083d707925513e2223b07c87c9 /db | |
| parent | 132e0d11e9f6d558a420a9ef6ce0a355222e67ec (diff) | |
| download | chouette-core-1b9b836f25cd7af78c0ec5f48b999e1dea27fa97.tar.bz2 | |
show import log for Neptune and CSV formats
Diffstat (limited to 'db')
4 files changed, 22 insertions, 3 deletions
diff --git a/db/migrate/20120611090254_resize_argument_to_import_log_messages.rb b/db/migrate/20120611090254_resize_argument_to_import_log_messages.rb new file mode 100644 index 000000000..c5636329a --- /dev/null +++ b/db/migrate/20120611090254_resize_argument_to_import_log_messages.rb @@ -0,0 +1,5 @@ +class ResizeArgumentToImportLogMessages < ActiveRecord::Migration + def change + change_column :import_log_messages, :arguments, :string, :limit => 1000 + end +end diff --git a/db/migrate/20120611090325_resize_argument_to_export_log_messages.rb b/db/migrate/20120611090325_resize_argument_to_export_log_messages.rb new file mode 100644 index 000000000..7b51be073 --- /dev/null +++ b/db/migrate/20120611090325_resize_argument_to_export_log_messages.rb @@ -0,0 +1,5 @@ +class ResizeArgumentToExportLogMessages < ActiveRecord::Migration + def change + change_column :export_log_messages, :arguments, :string, :limit => 1000 + end +end diff --git a/db/migrate/20120612071936_add_file_type_to_import.rb b/db/migrate/20120612071936_add_file_type_to_import.rb new file mode 100644 index 000000000..fccd91cce --- /dev/null +++ b/db/migrate/20120612071936_add_file_type_to_import.rb @@ -0,0 +1,8 @@ +class AddFileTypeToImport < ActiveRecord::Migration + def change + change_table :imports do |t| + t.string :file_type + end + Import.update_all :file_type => "zip" + end +end diff --git a/db/schema.rb b/db/schema.rb index bad1719eb..7d1d92845 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20120607064625) do +ActiveRecord::Schema.define(:version => 20120612071936) do create_table "access_links", :force => true do |t| t.integer "access_point_id", :limit => 8 @@ -123,7 +123,7 @@ ActiveRecord::Schema.define(:version => 20120607064625) do create_table "export_log_messages", :force => true do |t| t.integer "export_id" t.string "key" - t.string "arguments" + t.string "arguments", :limit => 1000 t.integer "position" t.string "severity" t.datetime "created_at" @@ -193,7 +193,7 @@ ActiveRecord::Schema.define(:version => 20120607064625) do create_table "import_log_messages", :force => true do |t| t.integer "import_id" t.string "key" - t.string "arguments" + t.string "arguments", :limit => 1000 t.integer "position" t.string "severity" t.datetime "created_at" @@ -209,6 +209,7 @@ ActiveRecord::Schema.define(:version => 20120607064625) do t.datetime "updated_at" t.string "type" t.string "options" + t.string "file_type" end add_index "imports", ["referential_id"], :name => "index_imports_on_referential_id" |
