diff --git a/database/migrations/2022_06_16_094402_update_user_price_datatype.php b/database/migrations/2022_06_16_094402_update_user_price_datatype.php new file mode 100644 index 00000000..9b4abb9e --- /dev/null +++ b/database/migrations/2022_06_16_094402_update_user_price_datatype.php @@ -0,0 +1,32 @@ +decimal('credits', 20, 10)->default(0)->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->unsignedFloat('credits')->default(250)->change(); + }); + } +}