Admin: manual scoring for open-ended questions

This commit is contained in:
jeremy bayse
2026-03-22 22:06:12 +01:00
parent 732d9416f4
commit 2df0d6def0
5 changed files with 105 additions and 20 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('answers', function (Blueprint $table) {
$table->decimal('score', 8, 2)->nullable()->after('text_content');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('answers', function (Blueprint $table) {
$table->dropColumn('score');
});
}
};