Files
Hermes/database/migrations/2026_02_19_142750_create_emotes_table.php
T
2026-02-19 17:45:54 +00:00

38 lines
850 B
PHP

<?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::create('emotes', function (Blueprint $table) {
$table->id();
$table->string('emote_id')->unique();
$table->unsignedBigInteger('guild_id')->index();
$table->string('emote_name');
$table->enum('type', ['STATIC', 'ANIMATED', 'UNICODE']);
$table->timestamps();
$table->charset = 'utf8mb4';
$table->collation = 'utf8mb4_unicode_ci';
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('emotes');
}
};