fix unique name document

This commit is contained in:
aslan 2024-06-11 10:18:02 +03:00
parent 0419aebe18
commit 97f4cd68e6
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ return new class extends Migration
{ {
Schema::create('documents', function (Blueprint $table) { Schema::create('documents', function (Blueprint $table) {
$table->id(); $table->id();
$table->string('name', 255)->unique(); $table->string('name', 255);
$table->string('file_name')->nullable(); $table->string('file_name')->nullable();
$table->text('description')->nullable(); $table->text('description')->nullable();
$table->string('url', 255); $table->string('url', 255);