| @@ -15,8 +15,9 @@ | ||
| 15 | 15 | use SeQura\Core\Infrastructure\TaskExecution\Exceptions\QueueItemSaveException; |
| 16 | 16 | use SeQura\Core\Infrastructure\TaskExecution\Interfaces\Priority; |
| 17 | 17 | use SeQura\Core\Infrastructure\TaskExecution\QueueItem; |
| 18 | 18 | use SeQura\WC\Dto\Table_Index; |
| 19 | +use SeQura\WC\Dto\Table_Index_Column; | |
| 19 | 20 | |
| 20 | 21 | /** |
| 21 | 22 | * Queue item repository. |
| 22 | 23 | */ |
| @@ -179,15 +180,22 @@ | ||
| 179 | 180 | * |
| 180 | 181 | * @return Table_Index[] The list of indexes. |
| 181 | 182 | */ |
| 182 | 183 | public function get_required_indexes() { |
| 184 | + | |
| 185 | + $type_col = new Table_Index_Column( 'type', 64 ); | |
| 186 | + $index_1_col = new Table_Index_Column( 'index_1', 64 ); | |
| 187 | + $index_2_col = new Table_Index_Column( 'index_2', 64 ); | |
| 188 | + $index_3_col = new Table_Index_Column( 'index_3', 64 ); | |
| 189 | + $index_4_col = new Table_Index_Column( 'index_4', 64 ); | |
| 190 | + | |
| 183 | 191 | return array_merge( |
| 184 | 192 | parent::get_required_indexes(), |
| 185 | 193 | array( |
| 186 | - new Table_Index( $this->get_table_name() . '_type_index_1', array( 'type', 'index_1' ) ), | |
| 187 | - new Table_Index( $this->get_table_name() . '_type_index_2', array( 'type', 'index_2' ) ), | |
| 188 | - new Table_Index( $this->get_table_name() . '_type_index_3', array( 'type', 'index_3' ) ), | |
| 189 | - new Table_Index( $this->get_table_name() . '_type_index_4', array( 'type', 'index_4' ) ), | |
| 194 | + new Table_Index( $this->get_table_name() . '_type_index_1', array( $type_col, $index_1_col ) ), | |
| 195 | + new Table_Index( $this->get_table_name() . '_type_index_2', array( $type_col, $index_2_col ) ), | |
| 196 | + new Table_Index( $this->get_table_name() . '_type_index_3', array( $type_col, $index_3_col ) ), | |
| 197 | + new Table_Index( $this->get_table_name() . '_type_index_4', array( $type_col, $index_4_col ) ), | |
| 190 | 198 | ) |
| 191 | 199 | ); |
| 192 | 200 | } |
| 193 | 201 | |