aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorAlban Peignier2018-03-05 23:08:45 +0100
committerGitHub2018-03-05 23:08:45 +0100
commit75f50a80a458b1de6d211ee6a98587f1262bc1bf (patch)
tree298111da5f2f3dfccb46e9e142c9ec9d82a8c887 /db
parent4a9b3e5868e379fa41b214b35d3ded60d8464a64 (diff)
parentcfdd12aa6b46331435bc62209c51cc14f470bd38 (diff)
downloadchouette-core-75f50a80a458b1de6d211ee6a98587f1262bc1bf.tar.bz2
Merge pull request #359 from af83/6068-simple-exporter
Simple exporter. Refs #6068
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180301142531_create_simple_exporters.rb7
-rw-r--r--db/schema.rb6
2 files changed, 10 insertions, 3 deletions
diff --git a/db/migrate/20180301142531_create_simple_exporters.rb b/db/migrate/20180301142531_create_simple_exporters.rb
new file mode 100644
index 000000000..c007546c2
--- /dev/null
+++ b/db/migrate/20180301142531_create_simple_exporters.rb
@@ -0,0 +1,7 @@
+class CreateSimpleExporters < ActiveRecord::Migration
+ def change
+ rename_table :simple_importers, :simple_interfaces
+ add_column :simple_interfaces, :type, :string
+ SimpleInterface.update_all type: :SimpleImporter
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 927c80b15..27e38e1b7 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: 20180227151937) do
+ActiveRecord::Schema.define(version: 20180301142531) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -93,7 +93,6 @@ ActiveRecord::Schema.define(version: 20180227151937) do
t.integer "workgroup_id", limit: 8
t.integer "int_day_types"
t.date "excluded_dates", array: true
- t.integer "workgroup_id", limit: 8
end
add_index "calendars", ["organisation_id"], name: "index_calendars_on_organisation_id", using: :btree
@@ -726,11 +725,12 @@ ActiveRecord::Schema.define(version: 20180227151937) do
t.integer "line_id", limit: 8
end
- create_table "simple_importers", id: :bigserial, force: :cascade do |t|
+ create_table "simple_interfaces", id: :bigserial, force: :cascade do |t|
t.string "configuration_name"
t.string "filepath"
t.string "status"
t.json "journal"
+ t.string "type"
end
create_table "stop_area_referential_memberships", id: :bigserial, force: :cascade do |t|