-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(migration): Migrate reports with appropriate default checker ID
The first row in a table with an `AUTOINCREMENT` ID has the value 1, not 0. This was synchronised in the migration script to have `server_default="1"` such that all default constructed `report` rows have a **valid** `FOREIGN KEY` to the `checkers` table (the `__FAKE__` checker). But the hand-written upgrade query filtered for `0` to get a batch of "unhandled rows", essentially preventing appropriate migration.
- Loading branch information
1 parent
fa1d14f
commit 47851be
Showing
1 changed file
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters