From 1c8bc655ebcd76f99ff22bdf5d4f9f23ea5c3067 Mon Sep 17 00:00:00 2001 From: saparatayev Date: Wed, 8 Jun 2022 17:13:51 +0500 Subject: [PATCH] made product quantity decimal --- .../components/offerform/second_step_form.htm | 2 +- ...er_table_update_tps_birzha_products_26.php | 23 +++++++++++++++++++ plugins/tps/birzha/updates/version.yaml | 3 +++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 plugins/tps/birzha/updates/builder_table_update_tps_birzha_products_26.php diff --git a/plugins/tps/birzha/components/offerform/second_step_form.htm b/plugins/tps/birzha/components/offerform/second_step_form.htm index a1e6800dd..dfee809d3 100644 --- a/plugins/tps/birzha/components/offerform/second_step_form.htm +++ b/plugins/tps/birzha/components/offerform/second_step_form.htm @@ -29,7 +29,7 @@
-
diff --git a/plugins/tps/birzha/updates/builder_table_update_tps_birzha_products_26.php b/plugins/tps/birzha/updates/builder_table_update_tps_birzha_products_26.php new file mode 100644 index 000000000..2e2f04abd --- /dev/null +++ b/plugins/tps/birzha/updates/builder_table_update_tps_birzha_products_26.php @@ -0,0 +1,23 @@ +decimal('quantity', 10, 2)->nullable()->unsigned(false)->default(null)->change(); + }); + } + + public function down() + { + Schema::table('tps_birzha_products', function($table) + { + $table->integer('quantity')->nullable()->unsigned(false)->default(null)->change(); + }); + } +} diff --git a/plugins/tps/birzha/updates/version.yaml b/plugins/tps/birzha/updates/version.yaml index ebcc8e792..706217233 100644 --- a/plugins/tps/birzha/updates/version.yaml +++ b/plugins/tps/birzha/updates/version.yaml @@ -296,3 +296,6 @@ 1.0.105: - 'Updated table tps_birzha_docs_one' - builder_table_update_tps_birzha_docs_one.php +1.0.106: + - 'Updated table tps_birzha_products' + - builder_table_update_tps_birzha_products_26.php