Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function up(Schema $schema) |
||
19 | { |
||
20 | // run a propose update at 1 am |
||
21 | $this->addSql(' |
||
22 | INSERT INTO |
||
23 | "task" |
||
24 | ( |
||
25 | "command", |
||
26 | "next_run", |
||
27 | "modify", |
||
28 | "status" |
||
29 | ) |
||
30 | VALUES |
||
31 | (?, ?, ?, ?)', |
||
32 | [ |
||
33 | 'animedb:propose-update', |
||
34 | date('Y-m-d 01:00:00', time() + ProposeUpdateCommand::INERVAL_UPDATE), |
||
35 | sprintf('+%s second', ProposeUpdateCommand::INERVAL_UPDATE), |
||
36 | Task::STATUS_ENABLED, |
||
37 | ] |
||
38 | ); |
||
39 | } |
||
40 | |||
51 |