Skip to content

Drop legacy cookies and cookie_patterns tables#1186

Merged
codenem merged 1 commit into
mainfrom
codenem/drop-cookies-cookie-patterns-tables-ad9f
May 13, 2026
Merged

Drop legacy cookies and cookie_patterns tables#1186
codenem merged 1 commit into
mainfrom
codenem/drop-cookies-cookie-patterns-tables-ad9f

Conversation

@codenem
Copy link
Copy Markdown
Contributor

@codenem codenem commented May 13, 2026

Summary

Adds a migration to drop the legacy cookies and cookie_patterns database tables. These tables were superseded by tracker_patterns and detected_trackers in migration 20260505T090000Z, which backfilled all existing data into the new tables.

What changed

  • New migration (20260513T084412Z.sql): DROP TABLE IF EXISTS cookies followed by DROP TABLE IF EXISTS cookie_patterns

What is preserved

  • The cookie_source enum type — still used by tracker_patterns and detected_trackers
  • The cookie_pattern_match_type enum type — still used by tracker_patterns

Verification

  • No Go code, GraphQL schema, MCP specification, or CLI command references the old cookies or cookie_patterns tables
  • Entity types 85 (CookieEntityType) and 88 (CookiePatternEntityType) were already marked as removed in entity_type_reg.go
  • The coredata package compiles and passes tests

Resolves ENG-392

Linear Issue: ENG-392

Open in Web Open in Cursor 

Summary by cubic

Drops legacy cookies and cookie_patterns tables via a new migration to clean up the schema now that data lives in tracker_patterns and detected_trackers. Aligns with ENG-392.

  • Migration
    • Adds pkg/coredata/migrations/20260513T084412Z.sql to drop cookies and cookie_patterns.
    • Keeps cookie_source and cookie_pattern_match_type enums used by tracker_patterns and detected_trackers.
    • No app changes needed; prior migration backfilled data and no code references remain.

Written for commit dec767c. Summary will update on new commits.

@codenem codenem marked this pull request as ready for review May 13, 2026 09:35
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@codenem codenem requested a review from a team May 13, 2026 09:41
These tables were superseded by tracker_patterns and
detected_trackers in migration 20260505T090000Z, which
backfilled all data. The old tables are no longer referenced
by any Go code, GraphQL schema, MCP specification, or CLI
command.

The cookie_source and cookie_pattern_match_type enum types
are retained because tracker_patterns still uses them.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Émile Ré <nemile.re@gmail.com>
@codenem codenem force-pushed the codenem/drop-cookies-cookie-patterns-tables-ad9f branch from c789c24 to dec767c Compare May 13, 2026 10:41
@codenem codenem merged commit dec767c into main May 13, 2026
17 checks passed
@codenem codenem deleted the codenem/drop-cookies-cookie-patterns-tables-ad9f branch May 13, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants