Skip to content

Commit 5adb5b7

Browse files
authored
Merge pull request #392 from LordSimal/cake4
add index to queued_jobs table
2 parents 01a7583 + fc54fa5 commit 5adb5b7

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)