芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/migrations/20190628083649_add_stats_migration_task_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class AddStatsMigrationTaskMigration */ class AddStatsMigrationTaskMigration extends AbstractMigration { /** @inheritdoc */ public function change() { $table = $this->table('task'); if (!$this->fetchRow('SELECT * FROM `task` WHERE name = \'Statistics Migration\'')) { $table->insert([ [ 'name' => 'Statistics Migration', 'class' => '\Xibo\XTR\StatsMigrationTask', 'options' => '{"killSwitch":"0","numberOfRecords":"5000","numberOfLoops":"10","pauseBetweenLoops":"1","optimiseOnComplete":"1"}', 'schedule' => '*/10 * * * * *', 'isActive' => '1', 'configFile' => '/tasks/stats-migration.task' ], ])->save(); } } }