diff options
| author | Xinhui | 2016-09-02 11:45:19 +0200 |
|---|---|---|
| committer | Xinhui | 2016-09-02 11:45:23 +0200 |
| commit | 4ae538b87f180d69df8768d6ffdd067a3b1beab5 (patch) | |
| tree | 710114f17f724b5f1792613ddfa75c6689d8d202 /db | |
| parent | 3f7531ddfa0d0c0e359d87baffa7097c9ee44d1a (diff) | |
| download | chouette-core-4ae538b87f180d69df8768d6ffdd067a3b1beab5.tar.bz2 | |
Reflex store xml + purge deleted since last sync
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20160902082958_add_status_to_stop_area.rb | 5 | ||||
| -rw-r--r-- | db/migrate/20160902083036_add_import_xml_to_stop_area.rb | 5 | ||||
| -rw-r--r-- | db/migrate/20160902084601_add_import_xml_to_access_points.rb | 5 | ||||
| -rw-r--r-- | db/migrate/20160902093127_add_deleted_at_to_stop_areas.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 10 |
5 files changed, 27 insertions, 3 deletions
diff --git a/db/migrate/20160902082958_add_status_to_stop_area.rb b/db/migrate/20160902082958_add_status_to_stop_area.rb new file mode 100644 index 000000000..d05d9449e --- /dev/null +++ b/db/migrate/20160902082958_add_status_to_stop_area.rb @@ -0,0 +1,5 @@ +class AddStatusToStopArea < ActiveRecord::Migration + def change + add_column :stop_areas, :status, :string + end +end diff --git a/db/migrate/20160902083036_add_import_xml_to_stop_area.rb b/db/migrate/20160902083036_add_import_xml_to_stop_area.rb new file mode 100644 index 000000000..26ba99665 --- /dev/null +++ b/db/migrate/20160902083036_add_import_xml_to_stop_area.rb @@ -0,0 +1,5 @@ +class AddImportXmlToStopArea < ActiveRecord::Migration + def change + add_column :stop_areas, :import_xml, :text + end +end diff --git a/db/migrate/20160902084601_add_import_xml_to_access_points.rb b/db/migrate/20160902084601_add_import_xml_to_access_points.rb new file mode 100644 index 000000000..fd75cd783 --- /dev/null +++ b/db/migrate/20160902084601_add_import_xml_to_access_points.rb @@ -0,0 +1,5 @@ +class AddImportXmlToAccessPoints < ActiveRecord::Migration + def change + add_column :access_points, :import_xml, :text + end +end diff --git a/db/migrate/20160902093127_add_deleted_at_to_stop_areas.rb b/db/migrate/20160902093127_add_deleted_at_to_stop_areas.rb new file mode 100644 index 000000000..036d6a20f --- /dev/null +++ b/db/migrate/20160902093127_add_deleted_at_to_stop_areas.rb @@ -0,0 +1,5 @@ +class AddDeletedAtToStopAreas < ActiveRecord::Migration + def change + add_column :stop_areas, :deleted_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 2aaecbf63..3c6b73b71 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20160831094427) do +ActiveRecord::Schema.define(version: 20160902093127) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -63,6 +63,7 @@ ActiveRecord::Schema.define(version: 20160831094427) do t.integer "stop_area_id", limit: 8 t.string "zip_code" t.string "city_name" + t.text "import_xml" end add_index "access_points", ["objectid"], :name => "access_points_objectid_key", :unique => true @@ -404,10 +405,10 @@ ActiveRecord::Schema.define(version: 20160831094427) do t.integer "object_version" t.datetime "creation_time" t.string "creator_id" - t.spatial "input_geometry", limit: {:srid=>4326, :type=>"line_string"} - t.spatial "processed_geometry", limit: {:srid=>4326, :type=>"line_string"} t.float "distance" t.boolean "no_processing" + t.spatial "input_geometry", limit: {:srid=>4326, :type=>"line_string"} + t.spatial "processed_geometry", limit: {:srid=>4326, :type=>"line_string"} end create_table "routes", force: true do |t| @@ -478,6 +479,9 @@ ActiveRecord::Schema.define(version: 20160831094427) do t.string "url" t.string "time_zone" t.integer "stop_area_referential_id" + t.string "status" + t.text "import_xml" + t.datetime "deleted_at" end add_index "stop_areas", ["objectid"], :name => "stop_areas_objectid_key", :unique => true |
