add champ value_json jsonb column
This commit is contained in:
parent
d68129b34d
commit
354735ace4
34 changed files with 38 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
# row :integer
|
# row :integer
|
||||||
# type :string
|
# type :string
|
||||||
# value :string
|
# value :string
|
||||||
|
# value_json :jsonb
|
||||||
# created_at :datetime
|
# created_at :datetime
|
||||||
# updated_at :datetime
|
# updated_at :datetime
|
||||||
# dossier_id :integer
|
# dossier_id :integer
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddValueJSONColumnToChamp < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
add_column :champs, :value_json, :jsonb
|
||||||
|
end
|
||||||
|
end
|
|
@ -189,6 +189,7 @@ ActiveRecord::Schema.define(version: 2021_10_06_164955) do
|
||||||
t.jsonb "data"
|
t.jsonb "data"
|
||||||
t.string "external_id"
|
t.string "external_id"
|
||||||
t.string "fetch_external_data_exceptions", array: true
|
t.string "fetch_external_data_exceptions", array: true
|
||||||
|
t.jsonb "value_json"
|
||||||
t.index ["dossier_id"], name: "index_champs_on_dossier_id"
|
t.index ["dossier_id"], name: "index_champs_on_dossier_id"
|
||||||
t.index ["parent_id"], name: "index_champs_on_parent_id"
|
t.index ["parent_id"], name: "index_champs_on_parent_id"
|
||||||
t.index ["private"], name: "index_champs_on_private"
|
t.index ["private"], name: "index_champs_on_private"
|
||||||
|
|
Loading…
Reference in a new issue