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();