mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 00:34:44 +02:00
Use $id as primaryKey
for File
Model (#1323)
This commit is contained in:
parent
3f1e99f1df
commit
e9ddf80d10
@ -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 = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user