芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/db/migrations/20190521092700_add_report_schedule_task_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class AddReportScheduleTaskMigration */ class AddReportScheduleTaskMigration extends AbstractMigration { /** @inheritdoc */ public function change() { $table = $this->table('task'); if (!$this->fetchRow('SELECT * FROM `task` WHERE name = \'Report Schedule\'')) { $table->insert([ [ 'name' => 'Report Schedule', 'class' => '\Xibo\XTR\ReportScheduleTask', 'options' => '[]', 'schedule' => '*/5 * * * * *', 'isActive' => '1', 'configFile' => '/tasks/report-schedule.task' ], ])->save(); } } }