-
Notifications
You must be signed in to change notification settings - Fork 501
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
Can't Run sqlx migrate run
"permission denied"
#268
Comments
sqlx migrate run
sqlx migrate run
"permission denied"
I faced the same issue while completing this chapter, and what worked for me is downgrading the database to postgresql 14 (I had to destroy the old database on DigitalOceans platform before reapplying the |
@maciejSzcz thanks for your reply. Yeah I tried the same thing after referencing @LukeMathWalker 's spec.yaml in the root-chapter-5 branch.
|
@currenthandle You are obviously right, js brain took over. https://github.com/maciejSzcz/rs-mailer here is my repo, but your spec seems to be the same |
Thanks! The only difference I see you and and the book have |
5.4.6 One Last Push (zero2prod_20240903.pdf)
My spec.yaml, essentially the same as the book and your repo.
It seems that the
newsletter
db user doesn't have the permissions to run the run a migration.I'm also considered connecting to the db as
doadmin
orroot
but I don't have a password fordoadmin
or see anyway to (re)set it on Digital Ocean.Any ideas why the
newletter
db user doesn't have the permissions to run a migration and how to resolve? Thanks!The text was updated successfully, but these errors were encountered: