From e9ddf80d10fa0bc600906356a07683b0a5103bc9 Mon Sep 17 00:00:00 2001 From: MartinOscar <40749467+rmartinoscar@users.noreply.github.com> Date: Thu, 1 May 2025 21:26:01 +0200 Subject: [PATCH] Use $id as `primaryKey` for `File` Model (#1323) --- app/Models/File.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/Models/File.php b/app/Models/File.php index 1f4aa8b31..b8d9cfef2 100644 --- a/app/Models/File.php +++ b/app/Models/File.php @@ -12,6 +12,9 @@ use Illuminate\Http\Client\ConnectionException; use Sushi\Sushi; /** + * \App\Models\File. + * + * @property int $id * @property string $name * @property Carbon $created_at * @property Carbon $modified_at @@ -27,12 +30,6 @@ class File extends Model { use Sushi; - protected $primaryKey = 'name'; - - public $incrementing = false; - - protected $keyType = 'string'; - protected int $sushiInsertChunkSize = 100; public const ARCHIVE_MIMES = [