芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/migrations/20200407143200_add_code_column_to_layout_migration.php
. */ use Phinx\Migration\AbstractMigration; class AddCodeColumnToLayoutMigration extends AbstractMigration { /** @inheritdoc */ public function change() { $layoutTable = $this->table('layout'); if (!$layoutTable->hasColumn('code')) { $layoutTable ->addColumn('code', 'string', ['limit' => 50, 'null' => true, 'default' => null]) ->save(); } } }