<?php use Phinx\Db\Adapter\MysqlAdapter; use bff\db\migrations\Migration; class MpV3x0x1 extends Migration { public function init() { parent::init(); $this->setSteps([ 'currencies' => ['t' => 'Add fields to table currencies'], ]); } public function migrate() { if ($this->startStep('currencies')) { $this->currencies(); } } public function rollback() { } protected function currencies() { $this->table(Site::TABLE_CURRENCIES) ->addColumn('extra', 'text', ['limit' => MysqlAdapter::TEXT_REGULAR, 'null' => true, 'default' => null]) ->update(); } }