-
Notifications
You must be signed in to change notification settings - Fork 53
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
fix: content_script_version_4.nim: migration failed when dropping unexisting constraint #2672
Conversation
I don't understand. The logs seams to suggest that the error happen because I don't see how this PR would fix that? There's 4 cases here, |
Yeah, I agree with SP, the issue here that the migration failed at a stage when both table existed. Dropping the constraint will not solve this. |
Yes sorry for the confusion guys. I will unset you from reviewers until I have a better fix. |
You can find the image built from this PR at
Built from ebcd370 |
You can find the image built from this PR at
Built from ebcd370 |
02d956f
to
f004b37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on your description of the problem this seams good.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks so much! 😍
…xisting constraing (#2672)
Description
There appeared Postgres schema migration issue when going from schema version 3 to 4.
The problem occurred while trying to remove an index that doesn't seem to exist in version 3.
Aside from that, I'm adding the following line, which is part of the script for version 3, to make sure that index is created in case it doesn't exist. I've notice that when testing in
waku.test
:CREATE INDEX IF NOT EXISTS i_query ON messages (contentTopic, pubsubTopic, storedAt, id);