|
112 | 112 | <addForeignKeyConstraint baseColumnNames="created_by" baseTableName="m_journal_entry_aggregation_tracking" constraintName="FK_GL_JOURNAL_ENTRY_AGGREGATION_TRACKING_ON_CREATED_BY" referencedColumnNames="id" referencedTableName="m_appuser"/> |
113 | 113 | <addForeignKeyConstraint baseColumnNames="last_modified_by" baseTableName="m_journal_entry_aggregation_tracking" constraintName="FK_GL_JOURNAL_ENTRY_AGGREGATION_TRACKING_ON_LAST_MODIFIED_BY" referencedColumnNames="id" referencedTableName="m_appuser"/> |
114 | 114 | </changeSet> |
115 | | - <changeSet id="4" author="fineract" runInTransaction="false" context="postgresql"> |
116 | | - <preConditions onFail="MARK_RAN"> |
117 | | - <not> |
118 | | - <indexExists tableName="m_journal_entry_aggregation_tracking" columnNames="submitted_on_date"/> |
119 | | - </not> |
120 | | - </preConditions> |
121 | | - <sql> |
122 | | - create index concurrently idx_m_journal_entry_aggregation_tracking on m_journal_entry_aggregation_tracking(submitted_on_date); |
123 | | - </sql> |
124 | | - </changeSet> |
125 | | - <changeSet id="5" author="fineract" runInTransaction="false" context="postgresql"> |
126 | | - <preConditions onFail="MARK_RAN"> |
127 | | - <not> |
128 | | - <indexExists tableName="m_journal_entry_aggregation_tracking" columnNames="aggregated_on_date_to"/> |
129 | | - </not> |
130 | | - </preConditions> |
131 | | - <sql> |
132 | | - create unique index concurrently idx2_m_journal_entry_aggregation_tracking on m_journal_entry_aggregation_tracking(aggregated_on_date_to); |
133 | | - </sql> |
134 | | - </changeSet> |
135 | 115 |
|
136 | 116 | <changeSet id="6" author="fineract" context="mysql"> |
137 | 117 | <preConditions onFail="MARK_RAN"> |
|
223 | 203 | <addForeignKeyConstraint baseColumnNames="created_by" baseTableName="m_journal_entry_aggregation_tracking" constraintName="FK_GL_JOURNAL_ENTRY_AGGREGATION_TRACKING_ON_CREATED_BY" referencedColumnNames="id" referencedTableName="m_appuser"/> |
224 | 204 | <addForeignKeyConstraint baseColumnNames="last_modified_by" baseTableName="m_journal_entry_aggregation_tracking" constraintName="FK_GL_JOURNAL_ENTRY_AGGREGATION_TRACKING_ON_LAST_MODIFIED_BY" referencedColumnNames="id" referencedTableName="m_appuser"/> |
225 | 205 | </changeSet> |
| 206 | + <changeSet id="4" author="fineract" runInTransaction="false" context="postgresql"> |
| 207 | + <preConditions onFail="MARK_RAN"> |
| 208 | + <not> |
| 209 | + <indexExists tableName="m_journal_entry_aggregation_tracking" columnNames="submitted_on_date"/> |
| 210 | + </not> |
| 211 | + </preConditions> |
| 212 | + <sql> |
| 213 | + create index concurrently idx_m_journal_entry_aggregation_tracking on m_journal_entry_aggregation_tracking(submitted_on_date); |
| 214 | + </sql> |
| 215 | + </changeSet> |
| 216 | + <changeSet id="5" author="fineract" runInTransaction="false" context="postgresql"> |
| 217 | + <preConditions onFail="MARK_RAN"> |
| 218 | + <not> |
| 219 | + <indexExists tableName="m_journal_entry_aggregation_tracking" columnNames="aggregated_on_date_to"/> |
| 220 | + </not> |
| 221 | + </preConditions> |
| 222 | + <sql> |
| 223 | + create unique index concurrently idx2_m_journal_entry_aggregation_tracking on m_journal_entry_aggregation_tracking(aggregated_on_date_to); |
| 224 | + </sql> |
| 225 | + </changeSet> |
226 | 226 | <changeSet id="9" author="fineract" runInTransaction="false" context="mysql"> |
227 | 227 | <preConditions onFail="MARK_RAN"> |
228 | 228 | <not> |
|
243 | 243 | create unique index idx2_m_journal_entry_aggregation_tracking on m_journal_entry_aggregation_tracking(aggregated_on_date_to); |
244 | 244 | </sql> |
245 | 245 | </changeSet> |
| 246 | + <changeSet id="11" author="fineract" runInTransaction="false" context="postgresql"> |
| 247 | + <preConditions onFail="MARK_RAN"> |
| 248 | + <not> |
| 249 | + <indexExists tableName="m_journal_entry_aggregation_tracking" columnNames="job_execution_id"/> |
| 250 | + </not> |
| 251 | + </preConditions> |
| 252 | + <sql> |
| 253 | + create index concurrently idx_m_jour_ent_aggr_trac_job_exec_id on m_journal_entry_aggregation_tracking(job_execution_id); |
| 254 | + </sql> |
| 255 | + </changeSet> |
| 256 | + <changeSet id="12" author="fineract" runInTransaction="false" context="mysql"> |
| 257 | + <preConditions onFail="MARK_RAN"> |
| 258 | + <not> |
| 259 | + <indexExists tableName="m_journal_entry_aggregation_tracking" columnNames="job_execution_id"/> |
| 260 | + </not> |
| 261 | + </preConditions> |
| 262 | + <sql> |
| 263 | + create index idx_m_jour_ent_aggr_trac_job_exec_id on m_journal_entry_aggregation_tracking(job_execution_id); |
| 264 | + </sql> |
| 265 | + </changeSet> |
| 266 | + <changeSet id="13" author="fineract" runInTransaction="false" context="postgresql"> |
| 267 | + <preConditions onFail="MARK_RAN"> |
| 268 | + <not> |
| 269 | + <indexExists tableName="m_journal_entry_aggregation_summary" columnNames="job_execution_id"/> |
| 270 | + </not> |
| 271 | + </preConditions> |
| 272 | + <sql> |
| 273 | + create index concurrently idx_m_jour_ent_aggr_sum_job_exec_id on m_journal_entry_aggregation_summary(job_execution_id); |
| 274 | + </sql> |
| 275 | + </changeSet> |
| 276 | + <changeSet id="14" author="fineract" runInTransaction="false" context="mysql"> |
| 277 | + <preConditions onFail="MARK_RAN"> |
| 278 | + <not> |
| 279 | + <indexExists tableName="m_journal_entry_aggregation_summary" columnNames="job_execution_id"/> |
| 280 | + </not> |
| 281 | + </preConditions> |
| 282 | + <sql> |
| 283 | + create index idx_m_jour_ent_aggr_sum_job_exec_id on m_journal_entry_aggregation_summary(job_execution_id); |
| 284 | + </sql> |
| 285 | + </changeSet> |
| 286 | + <changeSet id="15" author="fineract" runInTransaction="false" context="postgresql"> |
| 287 | + <preConditions onFail="MARK_RAN"> |
| 288 | + <not> |
| 289 | + <indexExists tableName="m_journal_entry_aggregation_summary" columnNames="product_id,entity_type_enum"/> |
| 290 | + </not> |
| 291 | + </preConditions> |
| 292 | + <sql> |
| 293 | + create index concurrently idx_m_jour_ent_aggr_sum_prod_id_entity_type on m_journal_entry_aggregation_summary(product_id, entity_type_enum); |
| 294 | + </sql> |
| 295 | + </changeSet> |
| 296 | + <changeSet id="16" author="fineract" runInTransaction="false" context="mysql"> |
| 297 | + <preConditions onFail="MARK_RAN"> |
| 298 | + <not> |
| 299 | + <indexExists tableName="m_journal_entry_aggregation_summary" columnNames="product_id,entity_type_enum"/> |
| 300 | + </not> |
| 301 | + </preConditions> |
| 302 | + <sql> |
| 303 | + create index idx_m_jour_ent_aggr_sum_prod_id_entity_type on m_journal_entry_aggregation_summary(product_id, entity_type_enum); |
| 304 | + </sql> |
| 305 | + </changeSet> |
| 306 | + <changeSet id="17" author="fineract" runInTransaction="false" context="postgresql"> |
| 307 | + <preConditions onFail="MARK_RAN"> |
| 308 | + <not> |
| 309 | + <indexExists tableName="m_journal_entry_aggregation_summary" columnNames="aggregated_on_date"/> |
| 310 | + </not> |
| 311 | + </preConditions> |
| 312 | + <sql> |
| 313 | + create index concurrently idx_m_jour_ent_aggr_sum_aggr_date on m_journal_entry_aggregation_summary(aggregated_on_date); |
| 314 | + </sql> |
| 315 | + </changeSet> |
| 316 | + <changeSet id="18" author="fineract" runInTransaction="false" context="mysql"> |
| 317 | + <preConditions onFail="MARK_RAN"> |
| 318 | + <not> |
| 319 | + <indexExists tableName="m_journal_entry_aggregation_summary" columnNames="aggregated_on_date"/> |
| 320 | + </not> |
| 321 | + </preConditions> |
| 322 | + <sql> |
| 323 | + create index idx_m_jour_ent_aggr_sum_aggr_date on m_journal_entry_aggregation_summary(aggregated_on_date); |
| 324 | + </sql> |
| 325 | + </changeSet> |
| 326 | + <changeSet id="19" author="fineract" runInTransaction="false" context="postgresql"> |
| 327 | + <preConditions onFail="MARK_RAN"> |
| 328 | + <not> |
| 329 | + <indexExists tableName="m_journal_entry_aggregation_summary" columnNames="office_id"/> |
| 330 | + </not> |
| 331 | + </preConditions> |
| 332 | + <sql> |
| 333 | + create index concurrently idx_m_jour_ent_aggr_sum_office_id on m_journal_entry_aggregation_summary(office_id); |
| 334 | + </sql> |
| 335 | + </changeSet> |
| 336 | + <changeSet id="20" author="fineract" runInTransaction="false" context="mysql"> |
| 337 | + <preConditions onFail="MARK_RAN"> |
| 338 | + <not> |
| 339 | + <indexExists tableName="m_journal_entry_aggregation_summary" columnNames="office_id"/> |
| 340 | + </not> |
| 341 | + </preConditions> |
| 342 | + <sql> |
| 343 | + create index idx_m_jour_ent_aggr_sum_office_id on m_journal_entry_aggregation_summary(office_id); |
| 344 | + </sql> |
| 345 | + </changeSet> |
246 | 346 | </databaseChangeLog> |
0 commit comments