refactor(attachments): remove is_public field from Attachment model and migration
This commit is contained in:
@@ -14,7 +14,6 @@ use Illuminate\Database\Eloquent\Relations\MorphTo;
|
|||||||
'filename',
|
'filename',
|
||||||
'type',
|
'type',
|
||||||
'mime_type',
|
'mime_type',
|
||||||
'is_public',
|
|
||||||
'extension',
|
'extension',
|
||||||
'size',
|
'size',
|
||||||
])]
|
])]
|
||||||
@@ -28,7 +27,6 @@ class Attachment extends Model
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'attachable_id' => 'integer',
|
'attachable_id' => 'integer',
|
||||||
'is_public' => 'boolean',
|
|
||||||
'size' => 'integer',
|
'size' => 'integer',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ return new class extends Migration
|
|||||||
$table->string('filename');
|
$table->string('filename');
|
||||||
$table->string('type')->nullable();
|
$table->string('type')->nullable();
|
||||||
$table->string('mime_type');
|
$table->string('mime_type');
|
||||||
$table->boolean('is_public')->default(false);
|
|
||||||
$table->string('extension', 20)->nullable();
|
$table->string('extension', 20)->nullable();
|
||||||
$table->unsignedBigInteger('size')->default(0);
|
$table->unsignedBigInteger('size')->default(0);
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|||||||
Reference in New Issue
Block a user