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(); + }); + } +}