Seed enrichment_attempts in common third party e2e

The enrichment_attempts column dropped its default after backfill, so
inserts must supply it explicitly. The e2e seed helper omitted the
column and tripped the NOT NULL constraint, failing
TestThirdParty_ImportFromCommon and TestCommonThirdParties_QueryWithLogo.
Set it to 0 in the seed insert.

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-06-12 10:41:39 +02:00
parent 3281f2b81c
commit 474074480a

View File

@@ -80,11 +80,11 @@ func seedCommonThirdParty(t *testing.T, name string) gid.GID {
_, err := conn.Exec(ctx, `
INSERT INTO common_third_parties (
id, name, slug, category, certifications, created_at, updated_at
id, name, slug, category, certifications, enrichment_attempts, created_at, updated_at
) VALUES (
$1, $2, $3, $4, $5, $6, $7
$1, $2, $3, $4, $5, $6, $7, $8
)
`, id, name, slug, "OTHER", []string{}, now, now)
`, id, name, slug, "OTHER", []string{}, 0, now, now)
require.NoError(t, err)
t.Cleanup(func() {