diff --git a/database/migrations/2025_11_11_154002_create_questions_table.php b/database/migrations/2025_11_11_154002_create_questions_table.php index 168dc18..105b8a1 100644 --- a/database/migrations/2025_11_11_154002_create_questions_table.php +++ b/database/migrations/2025_11_11_154002_create_questions_table.php @@ -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');