Compare commits

...

4 Commits

Author SHA1 Message Date
maverickstuder
0ab1fbdbee Migration fixes for 4.3 -> 4.4 2025-01-10 10:25:44 +01:00
maverickstuder
7f535bf44e Merge remote-tracking branch 'origin/RED-10660' into RED-10660 2025-01-10 09:31:31 +01:00
maverickstuder
36bfd8e377 RED-10660: Re-Add deduplication Migration 2025-01-10 09:30:31 +01:00
maverickstuder
373167e568 RED-10660: Re-Add deduplication Migration 2025-01-09 13:42:43 +01:00
5 changed files with 41 additions and 2 deletions

View File

@ -39,6 +39,10 @@ public class AppVersionTracker {
return;
}
if (appVersion.isBlank() || layoutParserVersion.isBlank()) {
log.info("No app version {} / layout parser version {} was provided. Version tracking skipped. ", appVersion, layoutParserVersion);
}
TenantContext.setTenantId(tenant.getTenantId());
try {

View File

@ -0,0 +1,35 @@
package com.iqser.red.service.persistence.management.v1.processor.migration.migrations;
import org.springframework.stereotype.Service;
import com.iqser.red.service.persistence.management.v1.processor.migration.Migration;
import com.iqser.red.service.persistence.management.v1.processor.migration.RankDeDuplicationService;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@Service
public class V32RankDeduplicationMigration extends Migration {
private static final String NAME = "Adding to the migration the rank de-duplication";
private static final long VERSION = 32;
private final RankDeDuplicationService rankDeDuplicationService;
public V32RankDeduplicationMigration(RankDeDuplicationService rankDeDuplicationService) {
super(NAME, VERSION);
this.rankDeDuplicationService = rankDeDuplicationService;
}
@Override
protected void migrate() {
log.info("Migration: Checking for duplicate ranks");
rankDeDuplicationService.deduplicate();
}
}

View File

@ -242,9 +242,9 @@ databaseChangeLog:
- include:
file: db/changelog/tenant/149-remove-based-on-dict-annotation-id-columns.yaml
- include:
file: db/changelog/tenant/150-add-indexes-across-tables-for-performance.yaml
file: db/changelog/tenant/149-add-indexes-across-tables-for-performance.yaml
- include:
file: db/changelog/tenant/151-add-component-mapping-indexes.yaml
file: db/changelog/tenant/150-add-component-mapping-indexes.yaml
- include:
file: db/changelog/tenant/152-add-ai-fields-to-entity.yaml
- include: