芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/uol/db/migrations/20190910132520_display_move_cms_migration.php
. */ use Phinx\Migration\AbstractMigration; class DisplayMoveCmsMigration extends AbstractMigration { /** @inheritdoc */ public function change() { $displayTable = $this->table('display'); // Add a two new columns to Display table, newCmsAddress and newCmsKey if (!$displayTable->hasColumn('newCmsAddress')) { $displayTable ->addColumn('newCmsAddress', 'string', ['limit' => 1000, 'default' => null, 'null' => true]) ->addColumn('newCmsKey', 'string', ['limit' => 40, 'default' => null, 'null' => true]) ->save(); } } }