exam add backgrond color

This commit is contained in:
xiaomlove
2024-08-23 04:52:53 +08:00
parent 9b83793c93
commit b8c044d546
8 changed files with 47 additions and 7 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('exams', function (Blueprint $table) {
$table->string("background_color")->default("blue");
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('exams', function (Blueprint $table) {
$table->dropColumn("background_color");
});
}
};