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(postgres): schema for index and relations #11274
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11274 +/- ##
==========================================
- Coverage 96.31% 94.2% -2.11%
==========================================
Files 94 94
Lines 9106 9115 +9
==========================================
- Hits 8770 8587 -183
- Misses 336 528 +192
Continue to review full report at Codecov.
|
From my perspective this is complete now, please merge it. |
@vanthome I see you did not add any test... Please add at least one simple test that wouldn't pass before your PR and passes after your PR. Thanks. |
Added a test. For whatever reason now the tests fail although they run locally!? |
Seems like MySQL tests fail due to some code that I integrated through rebasing. So will you merge this? |
@vanthome The test you added is running for all dialects, and failing for every dialect which is not postgres. You have to add your test in a way that it will run only for postgres. Let me know if you need further help. |
Relations and Indexes created from models that have set a schema are not properly prefixed with the schema. This patch solves this.
Strange because previously the tests passed I think. Anyways, I have moved it there. |
Now the PG native test seems to fail which has nothing to do with my change. What to do now? |
@vanthome Nothing else to do! That error in postgres-native is an intermittent error that has been happening in Sequelize for a while... We can all ignore it. Thank you very much for the PR! Looks ready to merge. Let's wait for @sushantdhiman |
Great, looking forward. |
@vanthome There are conflicts with master, can you please resolve them? |
Oh crap, I just pushed another update to my local branch, I did not want to add this to this PR. Do you know how I can revert this? |
@vanthome Ah, that explains the last commit 😬 You can just revert the commit normally ( |
I have undone the malicious change. When will this be merged now? |
Hi! There are still conflicts... |
Well this was w/o conflicts. why has it not been merged then? |
Indeed! But as time passes, conflicts may appear, it's normal.
Because maintainers are busy
You don't have to do anything. In open source no one is forced to anything... I, like you, would like to see every PR merged as well. |
I fixed the conflict for you 👍 |
Great, looking forward for a merge. |
🎉 This PR is included in version 5.18.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Relations and Indexes created from models that have set a schema are not properly prefixed with the schema. This patch solves this.
Pull Request check-list
Please make sure to review and check all of these items:
npm run test
ornpm run test-DIALECT
pass with this change (including linting)?Description of change
In several cases, the schema prefix was not applied for generated indexes and related tables. This PR fixes this.
Fixes #11276.