move to b64 images

This commit is contained in:
itsAzaria
2026-02-20 14:14:13 +00:00
parent a628eea61f
commit 6cd3504d76
4 changed files with 66 additions and 6 deletions
@@ -0,0 +1,36 @@
<?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->dropColumn('image');
});
Schema::table('emotes', function (Blueprint $table) {
$table->text('image')->nullable()->after('type');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('emotes', function (Blueprint $table) {
$table->dropColumn('image');
});
Schema::table('emotes', function (Blueprint $table) {
$table->binary('image')->nullable()->after('type');
});
}
};