correct_asnwers fixed column type

This commit is contained in:
Stepan 2025-11-18 19:25:27 +01:00
parent 595332008b
commit 739041b1c6

View File

@ -20,7 +20,7 @@ return new class extends Migration
$table->unsignedBigInteger('category_id')->nullable();
$table->unsignedBigInteger('author_id')->nullable();
$table->text('variants');
$table->text('correct_answers')->default('[]');
$table->json('correct_answers');
$table->foreign('author_id')->references('id')->on('users')->onDelete('set null');
$table->foreign('category_id')->references('id')->on('categories')->onDelete('set null');