AddOrderPaidAtColumn::up PHP Метод

up() публичный Метод

Run the migrations.
public up ( ) : void
Результат 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