From 7dbed2374c67e59a0a69c95b61dc77f420f42da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A9?= Date: Fri, 17 Sep 2021 14:46:19 +0200 Subject: [PATCH] add sorecop_comment & ean --- db/migrate/20210917122153_add_ean_to_p_product_refs.rb | 5 +++++ .../20210917124338_add_sorecop_comment_to_p_product_refs.rb | 5 +++++ db/schema.rb | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20210917122153_add_ean_to_p_product_refs.rb create mode 100644 db/migrate/20210917124338_add_sorecop_comment_to_p_product_refs.rb diff --git a/db/migrate/20210917122153_add_ean_to_p_product_refs.rb b/db/migrate/20210917122153_add_ean_to_p_product_refs.rb new file mode 100644 index 0000000..43bf5de --- /dev/null +++ b/db/migrate/20210917122153_add_ean_to_p_product_refs.rb @@ -0,0 +1,5 @@ +class AddEanToPProductRefs < ActiveRecord::Migration[6.0] + def change + add_column :p_product_refs, :ean, :integer + end +end diff --git a/db/migrate/20210917124338_add_sorecop_comment_to_p_product_refs.rb b/db/migrate/20210917124338_add_sorecop_comment_to_p_product_refs.rb new file mode 100644 index 0000000..3c239fb --- /dev/null +++ b/db/migrate/20210917124338_add_sorecop_comment_to_p_product_refs.rb @@ -0,0 +1,5 @@ +class AddSorecopCommentToPProductRefs < ActiveRecord::Migration[6.0] + def change + add_column :p_product_refs, :sorecop_comment, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index c81bb6b..490c94d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_09_17_121011) do +ActiveRecord::Schema.define(version: 2021_09_17_124338) do create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| t.string "name" @@ -1799,6 +1799,8 @@ ActiveRecord::Schema.define(version: 2021_09_17_121011) do t.decimal "ca_dee", precision: 10 t.decimal "cc_dee", precision: 10 t.decimal "ct_dee", precision: 10 + t.integer "ean" + t.string "sorecop_comment" end create_table "p_product_specs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|