修改 managed price 数据类型

This commit is contained in:
iVampireSP.com 2022-11-19 20:21:07 +08:00
parent f4d6965086
commit bcc49864af
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::raw('ALTER TABLE `hosts` CHANGE `price` `price` DOUBLE(60,8) NULL DEFAULT NULL;');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};