PluginProbe
seQura / 4.3.0
seQura v4.3.0
4.3.4 4.3.3 4.3.2 4.3.1 trunk 2.0.0 2.0.10 2.0.11 2.0.12 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0.0 3.0.2 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 4.0.0 All 30 releases
← All changes | src/Repositories/class-queue-item-repository.php +12 -4 3.2.0 → 4.3.0 View file →
@@ -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