8000 Fix db migration by eguerrant · Pull Request #305 · discord/access · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix db migration #305

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

Merged
merged 3 commits into from
Jun 30, 2025
Merged

Fix db migration #305

merged 3 commits into from
Jun 30, 2025

Conversation

eguerrant
Copy link
Contributor
@eguerrant eguerrant commented Jun 27, 2025

The Alembic migration for the do not renew functionality set the server default to 0 for the should_expire fields. This works fine for sqlite but does not work for postgres. Updating the migration to use server_default=expression.false() instead

@eguerrant eguerrant requested a review from savathoon June 27, 2025 21:04
@eguerrant eguerrant changed the title Fix migration? Fix db migration Jun 30, 2025
@eguerrant eguerrant merged commit ce06fbf into main Jun 30, 2025
6 checks passed
@eguerrant eguerrant deleted the fix_migration branch June 30, 2025 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0