コード例 #1
0
 public function up()
 {
     Schema::table('responsiv_campaign_subscribers', function ($table) {
         $table->string('created_ip_address')->nullable();
         $table->string('confirmed_ip_address')->nullable();
         $table->timestamp('confirmed_at')->nullable();
         $table->string('message_type')->nullable()->default('html');
     });
     SubscriberModel::whereNull('confirmed_at')->update(['confirmed_at' => new Carbon()]);
 }