From 8383fa03aacb375588a21cbe0b42ad2720fa8ced Mon Sep 17 00:00:00 2001 From: IceToast Date: Thu, 16 Jun 2022 11:56:05 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Added=20Migration=20->=20?= =?UTF-8?q?Updated=20user=20credits=20column=20to=20be=20decimal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...6_16_094402_update_user_price_datatype.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2022_06_16_094402_update_user_price_datatype.php 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(); + }); + } +}