add managed_price

This commit is contained in:
iVampireSP.com 2022-08-15 18:48:53 +08:00
parent 726aeffa00
commit 64268af6b8
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 35 additions and 1 deletions

View File

@ -21,7 +21,8 @@ class Host extends Model
'user_id',
'price',
'configuration',
'status'
'status',
'managed_price',
];
protected $casts = [

View File

@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('hosts', function (Blueprint $table) {
//
$table->boolean('managed_price')->default(true)->index();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('hosts', function (Blueprint $table) {
//
});
}
};