Skip to content

Commit

Permalink
magento/magento2#: Add a new index for cron_schedule table
Browse files Browse the repository at this point in the history
  • Loading branch information
atwixfirster committed Mar 22, 2020
1 parent a95a465 commit 652971e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/code/Magento/Cron/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@
<column name="scheduled_at"/>
<column name="status"/>
</index>
<index referenceId="CRON_SCHEDULE_SCHEDULE_ID_STATUS" indexType="btree">
<column name="schedule_id"/>
<column name="status"/>
</index>
</table>
</schema>
5 changes: 3 additions & 2 deletions app/code/Magento/Cron/etc/db_schema_whitelist.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
},
"index": {
"CRON_SCHEDULE_JOB_CODE": true,
"CRON_SCHEDULE_SCHEDULED_AT_STATUS": true
"CRON_SCHEDULE_SCHEDULED_AT_STATUS": true,
"CRON_SCHEDULE_SCHEDULE_ID_STATUS": true
},
"constraint": {
"PRIMARY": true
}
}
}
}

0 comments on commit 652971e

Please sign in to comment.