芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/db/migrations/20200604103141_command_improvements_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class CommandImprovementsMigration */ class CommandImprovementsMigration extends AbstractMigration { /** * @inheritDoc */ public function change() { $table = $this->table('command'); if (!$table->hasColumn('availableOn')) { $table ->addColumn('availableOn', 'string', ['default' => null, 'null' => true, 'limit' => 50]) ->addColumn('commandString', 'string', ['default' => null, 'null' => true, 'limit' => 1000]) ->addColumn('validationString', 'string', ['default' => null, 'null' => true, 'limit' => 1000]) ->save(); } } }