[Laravel] migration 으로 column default 를 current_timestamp로 변경하기 public function up() { Schema::table('users', function (Blueprint $table) { // 생성 $table->timestamp('created_at')->useCurrent(); // 업데이트 $table->dateTime('created_at')->default('CURRENT_TIMESTAMP')->nullable()->change(); }); } Laravel 2022.03.23