thumbnail support

This commit is contained in:
2023-07-27 14:36:46 +10:00
parent 0c4c36eb74
commit dd8e59cd4f
6 changed files with 159 additions and 24 deletions

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('media', function (Blueprint $table) {
$table->string('thumbnail')->default('');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('media', function (Blueprint $table) {
$table->dropColumn('thumbnail');
});
}
};