Skip to content

Commit fc54fa5

Browse files
committed
add index to queued_jobs table
1 parent 01a7583 commit fc54fa5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
use Phinx\Migration\AbstractMigration;
4+
5+
class MigrationAddIndex extends AbstractMigration {
6+
7+
public function change() {
8+
$table = $this->table('queued_jobs');
9+
$table
10+
->addIndex('completed')
11+
->addIndex('job_task')
12+
->update();
13+
}
14+
15+
}

0 commit comments

Comments
 (0)