From 994314dbe4673e25bae89c057130c2766edc675b Mon Sep 17 00:00:00 2001 From: IceToast Date: Fri, 22 Jul 2022 01:50:45 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20Added=20migrations=20undo?= =?UTF-8?q?=20last=20patch=20db=20update=20&=20add=20cancelation=20of=20se?= =?UTF-8?q?rvers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...34527_add_cancelation_to_servers_table.php | 32 +++++++++++++++++++ ...022_07_21_234818_undo_decimal_in_price.php | 32 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 database/migrations/2022_07_21_234527_add_cancelation_to_servers_table.php create mode 100644 database/migrations/2022_07_21_234818_undo_decimal_in_price.php diff --git a/database/migrations/2022_07_21_234527_add_cancelation_to_servers_table.php b/database/migrations/2022_07_21_234527_add_cancelation_to_servers_table.php new file mode 100644 index 00000000..b9f75839 --- /dev/null +++ b/database/migrations/2022_07_21_234527_add_cancelation_to_servers_table.php @@ -0,0 +1,32 @@ +boolean('canceled')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('servers', function (Blueprint $table) { + $table->dropColumn('canceled'); + }); + } +} diff --git a/database/migrations/2022_07_21_234818_undo_decimal_in_price.php b/database/migrations/2022_07_21_234818_undo_decimal_in_price.php new file mode 100644 index 00000000..cf4abb69 --- /dev/null +++ b/database/migrations/2022_07_21_234818_undo_decimal_in_price.php @@ -0,0 +1,32 @@ +decimal('price', 15, 4)->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('products', function (Blueprint $table) { + $table->decimal('price',['11','2'])->change(); + }); + } +}