芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/migrations/20180302182421_widget_created_and_modified_dt_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class WidgetCreatedAndModifiedDtMigration */ class WidgetCreatedAndModifiedDtMigration extends AbstractMigration { /** * */ public function change() { $table = $this->table('widget'); if (!$table->hasColumn('modifiedDt')) { $table ->addColumn('createdDt', 'integer', ['default' => 0]) ->addColumn('modifiedDt', 'integer', ['default' => 0]) ->update(); } } }