芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/migrations/20190626091331_widget_history_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class WidgetHistoryMigration */ class WidgetHistoryMigration extends AbstractMigration { /** @inheritDoc */ public function change() { $table = $this->table('widgethistory'); $table ->addColumn('layoutHistoryId', 'integer') ->addColumn('widgetId', 'integer') ->addColumn('mediaId', 'integer', ['null' => true]) ->addColumn('type', 'string', ['limit' => 50]) ->addColumn('name', 'string', ['limit' => 255, 'null' => true, 'default' => null]) ->addForeignKey('layoutHistoryId', 'layouthistory', 'layoutHistoryId') ->save(); } }