diff options
| author | Robert Dober | 2017-08-03 11:19:47 +0200 |
|---|---|---|
| committer | GitHub | 2017-08-03 11:19:47 +0200 |
| commit | 494fdfab76e6557018de77dac6861513ffa0502b (patch) | |
| tree | 7488393cfe925334893e78a7a3983ded78167267 /db | |
| parent | 8aba37303c2c2bd95df8c5117173579b3399c2c7 (diff) | |
| parent | 517495a48e2a05c301159fc48573a9994fbff47b (diff) | |
| download | chouette-core-494fdfab76e6557018de77dac6861513ffa0502b.tar.bz2 | |
Merge pull request #50 from af83/3511-cron-job-to-notify-parent-WorkbenchImport-of-sub-import-status--rb201708011853
3511 cron job to notify parent workbench import of sub import status rb201708011853
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20170724094628_add_notified_parent_at_to_imports.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 23 |
2 files changed, 17 insertions, 11 deletions
diff --git a/db/migrate/20170724094628_add_notified_parent_at_to_imports.rb b/db/migrate/20170724094628_add_notified_parent_at_to_imports.rb new file mode 100644 index 000000000..7c6484cfc --- /dev/null +++ b/db/migrate/20170724094628_add_notified_parent_at_to_imports.rb @@ -0,0 +1,5 @@ +class AddNotifiedParentAtToImports < ActiveRecord::Migration + def change + add_column :imports, :notified_parent_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 05a024e1d..05f5c2e87 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -284,11 +284,12 @@ ActiveRecord::Schema.define(version: 20170727130705) do t.datetime "started_at" t.datetime "ended_at" t.string "token_download" - t.string "type", limit: 255 + t.string "type" t.integer "parent_id", limit: 8 t.string "parent_type" - t.integer "current_step", default: 0 - t.integer "total_steps", default: 0 + t.datetime "notified_parent_at" + t.integer "current_step", default: 0 + t.integer "total_steps", default: 0 end add_index "imports", ["referential_id"], name: "index_imports_on_referential_id", using: :btree @@ -606,7 +607,7 @@ ActiveRecord::Schema.define(version: 20170727130705) do create_table "stop_areas", id: :bigserial, force: :cascade do |t| t.integer "parent_id", limit: 8 - t.string "objectid", null: false + t.string "objectid", null: false t.integer "object_version", limit: 8 t.string "creator_id" t.string "name" @@ -615,8 +616,8 @@ ActiveRecord::Schema.define(version: 20170727130705) do t.string "registration_number" t.string "nearest_topic_name" t.integer "fare_code" - t.decimal "longitude", precision: 19, scale: 16 - t.decimal "latitude", precision: 19, scale: 16 + t.decimal "longitude", precision: 19, scale: 16 + t.decimal "latitude", precision: 19, scale: 16 t.string "long_lat_type" t.string "country_code" t.string "street_name" @@ -634,7 +635,7 @@ ActiveRecord::Schema.define(version: 20170727130705) do t.datetime "deleted_at" t.datetime "created_at" t.datetime "updated_at" - t.string "stif_type", limit: 255 + t.string "stif_type" end add_index "stop_areas", ["name"], name: "index_stop_areas_on_name", using: :btree @@ -701,18 +702,18 @@ ActiveRecord::Schema.define(version: 20170727130705) do add_index "time_table_periods", ["time_table_id"], name: "index_time_table_periods_on_time_table_id", using: :btree create_table "time_tables", id: :bigserial, force: :cascade do |t| - t.string "objectid", null: false - t.integer "object_version", limit: 8, default: 1 + t.string "objectid", null: false + t.integer "object_version", limit: 8, default: 1 t.string "creator_id" t.string "version" t.string "comment" - t.integer "int_day_types", default: 0 + t.integer "int_day_types", default: 0 t.date "start_date" t.date "end_date" t.integer "calendar_id", limit: 8 t.datetime "created_at" t.datetime "updated_at" - t.string "color", limit: 255 + t.string "color" t.integer "created_from_id" end |
