Fixes the configuration file
This commit is contained in:
@@ -16,7 +16,7 @@ public function up(): void
|
||||
Schema::create('screenings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('user_id')->constrained()->cascadeOnDelete();
|
||||
$table->integer('score')->nullable();
|
||||
$table->decimal('score', 4, 1)->nullable();
|
||||
$table->boolean('passed')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Creates the configs table used to store database-driven key/value configuration.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('configs', function (Blueprint $table) {
|
||||
$table->string('key')->primary();
|
||||
$table->json('json_value')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops the configs table on rollback.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('configs');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user