Skip to content

sqlx test fails with 'relation "my_table" does not exist' #3816

Closed Answered by uvizhe
uvizhe asked this question in Q&A
Discussion options

You must be logged in to vote

I found the source of the issue. My tests are located in different crates in a workspace and I forgot to put a symlink for migrations in the crate folder where my failing test is located.

So while it seemed that migration script applies it did not apply for a particular test.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by uvizhe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant