芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/migrations/20220117150212_add_layout_exchange_connector_migration.php
. */ use Phinx\Db\Adapter\MysqlAdapter; use Phinx\Migration\AbstractMigration; /** * Add a new column to connectors table (isVisible) * Add a new connector (layoutExchange) to connectors table * @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace */ class AddLayoutExchangeConnectorMigration extends AbstractMigration { public function change() { $this->table('connectors') ->addColumn('isVisible', 'integer', [ 'default' => 1, 'null' => false, 'limit' => MysqlAdapter::INT_TINY ]) ->insert([ 'className' => '\\Xibo\\Connector\\XiboExchangeConnector', 'isEnabled' => 0, 'isVisible' => 1 ]) ->save(); } }