also save images for a later project

This commit is contained in:
Azaria
2026-02-19 18:09:43 +00:00
parent c1ee7d19aa
commit bba1530de1
3 changed files with 76 additions and 0 deletions
@@ -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('emotes', function (Blueprint $table) {
$table->binary('image')->nullable()->after('type');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('emotes', function (Blueprint $table) {
$table->dropColumn('image');
});
}
};