Supply enrichment_attempts in tracker pattern seed
The migration dropped the DEFAULT on common_tracker_patterns.enrichment_attempts, so the column is now NOT NULL with no default and inserts must set it explicitly. The e2e seedCommonTrackerPattern helper still did a raw insert without it, which broke TestThirdParty_ImportFromCommon and TestTrackerPattern_CommonTrackerPatternID with a 23502 violation. Pass 0 for the seeded rows. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -97,6 +97,7 @@ func buildCommonPatternEnrichmentMetadata(
|
||||
}
|
||||
|
||||
thirdPartyStatus := commonPatternFieldStatusNotFound
|
||||
|
||||
switch {
|
||||
case alreadyLinked:
|
||||
thirdPartyStatus = commonPatternFieldStatusExternal
|
||||
|
||||
Reference in New Issue
Block a user