Поддержка тегов шаблонами

This commit is contained in:
brusnitsyn
2025-11-05 16:30:24 +09:00
parent 3e62e0f36d
commit 66d2168836
3 changed files with 37 additions and 2 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('document_templates', function (Blueprint $table) {
$table->json('tags')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('document_templates', function (Blueprint $table) {
$table->dropColumn('tags');
});
}
};