芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/db/migrations/20190806144729_add_show_content_from_migration.php
. */ use Phinx\Migration\AbstractMigration; class AddShowContentFromMigration extends AbstractMigration { /** @inheritdoc */ public function change() { $userTable = $this->table('user'); if (!$userTable->hasColumn('showContentFrom')) { $userTable ->addColumn('showContentFrom', 'integer', ['limit' => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY, 'default' => 1]) ->save(); } } }