Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add migration to restart the abilities sequence from 3 #2719

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

CDimonaco
Copy link
Member

@CDimonaco CDimonaco commented Jun 26, 2024

Description

This PR, manually restarts the abilities table primary key sequence from 3.

We forced the ids of the global abilities, with id 1 and id 2.
We need to manually increment the abilities sequence to interact with the records using the postgres sequence mechanism.

Without this change the sequence does not know about record 1 and 2 created, it starts from one, so all the insert will fail.

@CDimonaco CDimonaco added enhancement New feature or request elixir Pull requests that update Elixir code labels Jun 26, 2024
@CDimonaco CDimonaco requested a review from arbulu89 June 26, 2024 13:54
@CDimonaco CDimonaco self-assigned this Jun 26, 2024
Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

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

Interesting. Would this fix flakiness in tests as well? like here for instance

EDIT: nevermind, the CI says no.

Copy link
Contributor

@arbulu89 arbulu89 left a comment

Choose a reason for hiding this comment

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

Good!
Bloody postresql hehe

@CDimonaco
Copy link
Member Author

FORCE MERGE,

ALL TESTS PASSED, COVERRALS IS DOWN

@CDimonaco CDimonaco merged commit 38f0010 into main Jun 26, 2024
75 of 76 checks passed
@CDimonaco CDimonaco deleted the restart_abilities_postgres_sequence branch June 26, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
elixir Pull requests that update Elixir code enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants