From 0ab401df8d871fe966bff5d5baa1eea10788e1f2 Mon Sep 17 00:00:00 2001 From: Dedan Date: Thu, 5 Sep 2024 22:38:02 +0300 Subject: [PATCH] Changes to files: app/Models/Partner.php database/migrations/2024_09_03_144351_add_deleted_at_to_partner_type_table.php --- app/Models/Partner.php | 4 ++-- ...024_09_05_144351_add_deleted_at_to_partner_type_table.php} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename database/migrations/{2024_09_03_144351_add_deleted_at_to_partner_type_table.php => 2024_09_05_144351_add_deleted_at_to_partner_type_table.php} (86%) diff --git a/app/Models/Partner.php b/app/Models/Partner.php index d2c2348..7630908 100755 --- a/app/Models/Partner.php +++ b/app/Models/Partner.php @@ -2,11 +2,11 @@ namespace Modules\Partner\Models; +use App\Models\User; use Modules\Base\Models\BaseModel; use Modules\Core\Models\Country; use Modules\Core\Models\Currency; use Modules\Partner\Models\Meta; -use App\Models\User;s class Partner extends BaseModel { @@ -26,7 +26,7 @@ class Partner extends BaseModel * * @var string */ - protected $table = "partner"; + protected $table = "partner_partner"; /** * Add relationship to Meta diff --git a/database/migrations/2024_09_03_144351_add_deleted_at_to_partner_type_table.php b/database/migrations/2024_09_05_144351_add_deleted_at_to_partner_type_table.php similarity index 86% rename from database/migrations/2024_09_03_144351_add_deleted_at_to_partner_type_table.php rename to database/migrations/2024_09_05_144351_add_deleted_at_to_partner_type_table.php index 0ceeb6a..adca40f 100644 --- a/database/migrations/2024_09_03_144351_add_deleted_at_to_partner_type_table.php +++ b/database/migrations/2024_09_05_144351_add_deleted_at_to_partner_type_table.php @@ -12,7 +12,7 @@ public function up(): void { Schema::table('partner_type', function (Blueprint $table) { - + $table->softDeletes(); }); } @@ -22,7 +22,7 @@ public function up(): void public function down(): void { Schema::table('partner_type', function (Blueprint $table) { - + $table->dropColumn('deleted_at'); }); } };