-
Notifications
You must be signed in to change notification settings - Fork 119
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
feat: use user tags to check PSA auth #1008
Conversation
SQL for migrating the existing data from
|
@alexandrastoica could you add the migration SQL to here please? https://github.com/web3-storage/web3.storage/tree/main/packages/db/postgres/migrations |
@alanshaw thanks for pointing that out! We noticed this morning that folder was created 🎉 While I understand this is not the full, polished solution for migrations, (since we're still missing the automation side of it) I do believe moving migrations scripts to version control is a great improvement to what we're doing now. I'm wondering if we should be adding some documentation to make sure developers know what's expected when altering schemas? Do we have an issue tracking the bigger DB migration epic/approach? |
@alanshaw added the migration file. Let me know if this is ok to merge. Thanks! |
Made the changes requested. 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
Runing SQL migration for deploy got:
Looking into it |
@vasco-santos the user_tag enum was created (and values updated) as part of 2 separate PRs from trigram folks, is it possible they haven't created a migration to create the ENUM?
|
@flea89 thanks, you were right! The type was outdated and it was merged without updating the type. We need to improve communication on DB changes |
@vasco-santos i'll take ownership for this in this instance. if you recall the conversations we were having a few weeks ago about naming... i meant to follow up once we were all in agreement and the conversations had died down to avoid unnecessary DB updates in prod, but i forgot to do so. i apologize for that. i also feel this brings to light the need for an automated migration strategy as part of our deployments. |
Removes the old
pinning_authorization
table and uses user tags instead