From 64268af6b8ac52c8e5aa9ffe73cd04160b2aad80 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Mon, 15 Aug 2022 18:48:53 +0800 Subject: [PATCH] add managed_price --- app/Models/User/Host.php | 3 +- ...04635_add_managed_price_to_hosts_table.php | 33 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 database/migrations/2022_08_15_104635_add_managed_price_to_hosts_table.php diff --git a/app/Models/User/Host.php b/app/Models/User/Host.php index 6923294..e744102 100644 --- a/app/Models/User/Host.php +++ b/app/Models/User/Host.php @@ -21,7 +21,8 @@ class Host extends Model 'user_id', 'price', 'configuration', - 'status' + 'status', + 'managed_price', ]; protected $casts = [ diff --git a/database/migrations/2022_08_15_104635_add_managed_price_to_hosts_table.php b/database/migrations/2022_08_15_104635_add_managed_price_to_hosts_table.php new file mode 100644 index 0000000..8b1043e --- /dev/null +++ b/database/migrations/2022_08_15_104635_add_managed_price_to_hosts_table.php @@ -0,0 +1,33 @@ +boolean('managed_price')->default(true)->index(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('hosts', function (Blueprint $table) { + // + }); + } +};