add details to import
This commit is contained in:
parent
c691229555
commit
cdb200f4a4
5
db/migrate/20211014081433_add_genecode_to_p_products.rb
Normal file
5
db/migrate/20211014081433_add_genecode_to_p_products.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class AddGenecodeToPProducts < ActiveRecord::Migration[6.0]
|
||||||
|
def change
|
||||||
|
add_column :p_products, :genecode, :string
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,22 @@
|
|||||||
|
class AddImportFieldToPProductRefs < ActiveRecord::Migration[6.0]
|
||||||
|
def change
|
||||||
|
add_column :p_product_refs, :manufacturer_ref, :string
|
||||||
|
add_column :p_product_refs, :used_state, :string
|
||||||
|
add_column :p_product_refs, :i_code_hs, :string
|
||||||
|
add_column :p_product_refs, :prepair_score, :decimal, precision: 10, scale: 2
|
||||||
|
add_column :p_product_refs, :part_delay, :string
|
||||||
|
add_column :p_product_refs, :das_head, :string
|
||||||
|
add_column :p_product_refs, :das_body, :string
|
||||||
|
add_column :p_product_refs, :das_membre, :string
|
||||||
|
add_column :p_product_refs, :nb_pcs_colis, :integer
|
||||||
|
add_column :p_product_refs, :code_om, :string
|
||||||
|
add_column :p_product_refs, :gbh_code_971, :string
|
||||||
|
add_column :p_product_refs, :gbh_code_972, :string
|
||||||
|
add_column :p_product_refs, :gbh_code_973, :string
|
||||||
|
add_column :p_product_refs, :code_art, :string
|
||||||
|
add_column :p_product_refs, :i_comment, :string
|
||||||
|
add_column :p_product_refs, :i_pmp_hors_sorecop, :string
|
||||||
|
add_column :p_product_refs, :i_target_hors_sorecop, :string
|
||||||
|
add_column :p_product_refs, :p_fournisseur_id, :integer
|
||||||
|
end
|
||||||
|
end
|
21
db/schema.rb
21
db/schema.rb
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 2021_10_05_134955) do
|
ActiveRecord::Schema.define(version: 2021_10_14_134444) do
|
||||||
|
|
||||||
create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
@ -1818,6 +1818,24 @@ ActiveRecord::Schema.define(version: 2021_10_05_134955) do
|
|||||||
t.decimal "ct_deee", precision: 10, scale: 2
|
t.decimal "ct_deee", precision: 10, scale: 2
|
||||||
t.string "ean"
|
t.string "ean"
|
||||||
t.string "sorecop_comment"
|
t.string "sorecop_comment"
|
||||||
|
t.string "manufacturer_ref"
|
||||||
|
t.string "used_state"
|
||||||
|
t.string "i_code_hs"
|
||||||
|
t.decimal "prepair_score", precision: 10, scale: 2
|
||||||
|
t.string "part_delay"
|
||||||
|
t.string "das_head"
|
||||||
|
t.string "das_body"
|
||||||
|
t.string "das_membre"
|
||||||
|
t.integer "nb_pcs_colis"
|
||||||
|
t.string "code_om"
|
||||||
|
t.string "gbh_code_971"
|
||||||
|
t.string "gbh_code_972"
|
||||||
|
t.string "gbh_code_973"
|
||||||
|
t.string "code_art"
|
||||||
|
t.string "i_comment"
|
||||||
|
t.string "i_pmp_hors_sorecop"
|
||||||
|
t.string "i_target_hors_sorecop"
|
||||||
|
t.integer "p_fournisseur_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "p_product_specs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
create_table "p_product_specs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
||||||
@ -1908,6 +1926,7 @@ ActiveRecord::Schema.define(version: 2021_10_05_134955) do
|
|||||||
t.boolean "conserve_proportion", default: false
|
t.boolean "conserve_proportion", default: false
|
||||||
t.boolean "frontpage", default: true
|
t.boolean "frontpage", default: true
|
||||||
t.integer "sorecop_cat_id"
|
t.integer "sorecop_cat_id"
|
||||||
|
t.string "genecode"
|
||||||
t.index ["p_product_cat_id"], name: "index_p_products_on_p_product_cat_id"
|
t.index ["p_product_cat_id"], name: "index_p_products_on_p_product_cat_id"
|
||||||
t.index ["s_brand_id"], name: "index_p_products_on_s_brand_id"
|
t.index ["s_brand_id"], name: "index_p_products_on_s_brand_id"
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user