From 023ee3d8625fb48059988ed097b57586a75c5935 Mon Sep 17 00:00:00 2001 From: liutk <961510893@qq.com> Date: Mon, 20 May 2024 16:39:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2024_05_16_114837_create_activity_games_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2024_05_16_114837_create_activity_games_table.php b/database/migrations/2024_05_16_114837_create_activity_games_table.php index bbf729a..15aaadb 100644 --- a/database/migrations/2024_05_16_114837_create_activity_games_table.php +++ b/database/migrations/2024_05_16_114837_create_activity_games_table.php @@ -21,7 +21,7 @@ return new class extends Migration $table->string('away')->comment('客场'); $table->string('away_logo')->comment('客场logo'); $table->timestamp('game_at')->comment('比赛时间'); - $table->unsignedTinyInteger('state')->comment('状态:0未发布,1已发布,2已公布'); + $table->unsignedTinyInteger('state')->default(0)->comment('状态:0未发布,1已发布,2已公布'); $table->unsignedInteger('mark')->comment('分数'); $table->enum('score', Score::options())->nullable()->comment('比赛结果'); $table->timestamps();