|
165 | 165 | </createIndex> |
166 | 166 | </changeSet> |
167 | 167 |
|
| 168 | + <changeSet author="ibacher" id="openconceptlab-2025-02-05-1"> |
| 169 | + <preConditions onFail="MARK_RAN"> |
| 170 | + <not><indexExists tableName="openconceptlab_item" columnNames="import_id, state"/></not> |
| 171 | + </preConditions> |
| 172 | + <comment>Add index for querying items by import and state</comment> |
| 173 | + <createIndex tableName="openconceptlab_item" indexName="openconceptlab_item_import_state"> |
| 174 | + <column name="import_id" /> |
| 175 | + <column name="state" /> |
| 176 | + </createIndex> |
| 177 | + </changeSet> |
| 178 | + |
| 179 | + <changeSet author="ibacher" id="openconceptlab-2025-02-05-2"> |
| 180 | + <preConditions onFail="MARK_RAN"> |
| 181 | + <not><indexExists tableName="openconceptlab_item" columnNames="uuid"/></not> |
| 182 | + </preConditions> |
| 183 | + <comment>Add index for querying items by uuid</comment> |
| 184 | + <createIndex tableName="openconceptlab_item" indexName="openconceptlab_item_uuid"> |
| 185 | + <column name="uuid" /> |
| 186 | + </createIndex> |
| 187 | + </changeSet> |
| 188 | + |
| 189 | + <changeSet author="ibacher" id="openconceptlab-2025-02-05-3"> |
| 190 | + <preConditions onFail="MARK_RAN"> |
| 191 | + <not><indexExists tableName="openconceptlab_item" columnNames="type, uuid"/></not> |
| 192 | + </preConditions> |
| 193 | + <comment>Add index for querying items by type and uuid</comment> |
| 194 | + <createIndex tableName="openconceptlab_item" indexName="openconceptlab_item_type_uuid"> |
| 195 | + <column name="type" /> |
| 196 | + <column name="uuid" /> |
| 197 | + </createIndex> |
| 198 | + </changeSet> |
| 199 | + |
| 200 | + <changeSet author="ibacher" id="openconceptlab-2025-02-05-4"> |
| 201 | + <preConditions onFail="MARK_RAN"> |
| 202 | + <not><indexExists tableName="openconceptlab_import" columnNames="uuid"/></not> |
| 203 | + </preConditions> |
| 204 | + <comment>Add index for querying imports by uuid</comment> |
| 205 | + <createIndex tableName="openconceptlab_import" indexName="openconceptlab_import_uuid"> |
| 206 | + <column name="uuid" /> |
| 207 | + </createIndex> |
| 208 | + </changeSet> |
| 209 | + |
| 210 | + <changeSet author="ibacher" id="openconceptlab-2025-02-05-5"> |
| 211 | + <preConditions onFail="MARK_RAN"> |
| 212 | + <not><indexExists tableName="openconceptlab_import" columnNames="local_date_stopped"/></not> |
| 213 | + </preConditions> |
| 214 | + <comment>Add index for querying imports by stopped date</comment> |
| 215 | + <createIndex tableName="openconceptlab_import" indexName="openconceptlab_import_stopped"> |
| 216 | + <column name="local_date_stopped" /> |
| 217 | + </createIndex> |
| 218 | + </changeSet> |
| 219 | + |
168 | 220 | </databaseChangeLog> |
0 commit comments