From f52a4746fda83424ab9c2ce6bb750f69077259cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Thu, 14 May 2026 13:59:38 +0400 Subject: [PATCH] Fix migration after rebase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré Signed-off-by: Émile Ré --- pkg/coredata/migrations/20260513T105453Z.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/coredata/migrations/20260513T105453Z.sql b/pkg/coredata/migrations/20260513T105453Z.sql index 55bc34b75..b7a47e1f8 100644 --- a/pkg/coredata/migrations/20260513T105453Z.sql +++ b/pkg/coredata/migrations/20260513T105453Z.sql @@ -48,13 +48,13 @@ CREATE TABLE common_tracker_patterns ( CREATE UNIQUE INDEX idx_common_tracker_patterns_unique ON common_tracker_patterns (tracker_type, pattern, COALESCE(max_age_seconds, -1)); --- Link tracker_patterns to the common knowledge base and to vendors. +-- Link tracker_patterns to the common knowledge base and to third_parties. ALTER TABLE tracker_patterns ADD COLUMN common_tracker_pattern_id TEXT REFERENCES common_tracker_patterns(id) ON DELETE SET NULL, - ADD COLUMN third_party_id TEXT REFERENCES vendors(id) ON DELETE SET NULL; + ADD COLUMN third_party_id TEXT REFERENCES third_parties(id) ON DELETE SET NULL; --- Link vendors to the common third party they were created from. -ALTER TABLE vendors +-- Link third_parties to the common third party they were created from. +ALTER TABLE third_parties ADD COLUMN common_third_party_id TEXT REFERENCES common_third_parties(id) ON DELETE SET NULL; -- Pre-extracted eTLD+1 for fast domain-based joins in the mapping worker.