diff --git a/database/migrations/2023_01_17_235003_change_decimal_total_to_users_and_modules_table.php b/database/migrations/2023_01_17_235003_change_decimal_total_to_users_and_modules_table.php new file mode 100644 index 0000000..01c2661 --- /dev/null +++ b/database/migrations/2023_01_17_235003_change_decimal_total_to_users_and_modules_table.php @@ -0,0 +1,39 @@ +decimal('balance', 20, 4)->change(); + }); + + Schema::table('modules', function (Blueprint $table) { + $table->decimal('balance', 20, 4)->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->decimal('balance', 10)->change(); + }); + + Schema::table('modules', function (Blueprint $table) { + $table->decimal('balance', 10)->change(); + }); + } +};