Skip to content

Conversation

@odarriba
Copy link
Contributor

@odarriba odarriba commented Aug 1, 2024

This MR fixes a bug found on #27 , which arises when your application is configured to use other types of field which is not bigserial for primary keys.

After this change, the migrations needed for the ErrorTracker enforce the type bigserial for its primary keys.


As for people that already tried to implement the library on their systems, they need to down migrate the migration in which they introduced the library and run it again after this change is released.

In normal situations we would run a migration to fix existing systems, but given that the library is less than a week old and this bug avoids using the library at all, it is safe to say that users impacted by this will not have any data stored.


Closes #27

@odarriba odarriba added the bug Something isn't working label Aug 1, 2024
@odarriba odarriba self-assigned this Aug 1, 2024
Copy link
Contributor

@crbelaus crbelaus left a comment

Choose a reason for hiding this comment

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

Perfect. The Error and Occurrence schemas use the default settings so this change enforces that the tables are created with the same structure.

@odarriba odarriba merged commit 6544261 into main Aug 1, 2024
@odarriba odarriba deleted the 27--enforce-primary-key-type branch August 1, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: argument error after insert

3 participants