Add file attachment functionality to ticket messages

This commit is contained in:
2025-12-07 06:44:36 -05:00
parent 355f435fa1
commit 16c61494c8
5 changed files with 163 additions and 1 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('ticket_messages', function (Blueprint $table) {
$table->json('attachments')->nullable()->after('message');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('ticket_messages', function (Blueprint $table) {
$table->dropColumn('attachments');
});
}
};