芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/migrations/20200311110512_add_is_drawer_column_migration.php
. */ use Phinx\Migration\AbstractMigration; class AddIsDrawerColumnMigration extends AbstractMigration { /** @inheritdoc */ public function change() { $regionTable = $this->table('region'); if (!$regionTable->hasColumn('isDrawer')) { $regionTable ->addColumn('isDrawer', 'integer', ['limit' => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY, 'null' => false, 'default' => 0]) ->save(); } } }