AddOrderPaidAtColumn::up PHP Method

up() public method

Run the migrations.
public up ( ) : void
return void
    public function up()
    {
        Schema::connection('mysql-store')->table('orders', function ($table) {
            $table->timestamp('paid_at')->nullable()->after('tracking_code');
            $table->index('paid_at', 'paid_at');
        });
    }
AddOrderPaidAtColumn