Skip to content

Add migration upgrade tests for 0015, 0016, 0020 and 0022 #39

Open

Description

@imshashank

Most recent migrations have an upgrade test that seeds data at the previous migration and then applies the next one on PGlite, for example tests/invitations-migration.test.ts (0017), tests/products-migration.test.ts (0018) and tests/linkedin-unique-migration.test.ts (0021). Four do not:

  • drizzle/0015_organization_invitations.sql
  • drizzle/0016_clumsy_talon.sql (tags and amounts on companies and opportunities)
  • drizzle/0020_sequence_archive.sql
  • drizzle/0022_bored_jack_power.sql (file library tables)

tests/production-migration.test.ts applies everything after 0013 in one go, but only asserts the effects of 0018, 0019 and 0021.

Done when

  • Each of the four migrations has a test that seeds representative rows at the previous migration, applies it, and asserts existing data survives and new constraints hold.
  • The tests follow the trimmed-journal pattern in the existing migration tests.

Activity

  1. added
    good first issue
    area: database
    tests
    on Oct 6, 2026
  2. changed the title [-]Add migration upgrade tests for 0015 and 0016[/-] [+]Add migration upgrade tests for 0015, 0016, 0020 and 0022[/+] on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: databasegood first issuetests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions