芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/migrations/20191024152519_add_schedule_exclusions_table_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class AddScheduleExclusionsTableMigration */ class AddScheduleExclusionsTableMigration extends AbstractMigration { /** @inheritdoc */ public function change() { $table = $this->table('scheduleexclusions', ['id' => 'scheduleExclusionId']); $table ->addColumn('eventId', 'integer') ->addColumn('fromDt', 'integer') ->addColumn('toDt', 'integer') ->addForeignKey('eventId', 'schedule', 'eventId') ->save(); } }