add managed_price
This commit is contained in:
parent
726aeffa00
commit
64268af6b8
@ -21,7 +21,8 @@ class Host extends Model
|
||||
'user_id',
|
||||
'price',
|
||||
'configuration',
|
||||
'status'
|
||||
'status',
|
||||
'managed_price',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
|
@ -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) {
|
||||
//
|
||||
});
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user