Changes to documents able to edit them now, also support for auto mail attechemnts

This commit is contained in:
Simon Pocrnjič
2025-10-18 19:04:10 +02:00
parent 761799bdbe
commit 3b1a24287a
19 changed files with 820 additions and 108 deletions
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('email_templates', function (Blueprint $table) {
if (! Schema::hasColumn('email_templates', 'allow_attachments')) {
$table->boolean('allow_attachments')->default(false)->after('entity_types');
}
});
}
public function down(): void
{
Schema::table('email_templates', function (Blueprint $table) {
if (Schema::hasColumn('email_templates', 'allow_attachments')) {
$table->dropColumn('allow_attachments');
}
});
}
};