diff --git a/database/migrations/2025_11_26_100100_add_count_fields_to_calendars_table.php b/database/migrations/2025_11_26_100100_add_count_fields_to_calendars_table.php index fe1df14..9a537ab 100644 --- a/database/migrations/2025_11_26_100100_add_count_fields_to_calendars_table.php +++ b/database/migrations/2025_11_26_100100_add_count_fields_to_calendars_table.php @@ -13,8 +13,8 @@ return new class extends Migration { public function up() { Schema::table('calendars', function (Blueprint $table) { - $table->tinyInteger('is_count_days')->default(1)->comment('是否统计天数 0否 1是'); - $table->tinyInteger('is_count_people')->default(1)->comment('是否统计人数 0否 1是'); + $table->tinyInteger('is_count_days')->nullable()->comment('是否统计天数 0否 1是'); + $table->tinyInteger('is_count_people')->nullable()->comment('是否统计人数 0否 1是'); }); }