You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add migration upgrade tests for 0015, 0016, 0020 and 0022 #39
area: databaseDrizzle schema, migrations and database clientsgood first issueSmall, well-scoped and a good place to starttestsTest suites and test infrastructure
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)
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.
area: databaseDrizzle schema, migrations and database clientsgood first issueSmall, well-scoped and a good place to starttestsTest suites and test infrastructure
Activity
[-]Add migration upgrade tests for 0015 and 0016[/-][+]Add migration upgrade tests for 0015, 0016, 0020 and 0022[/+]