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
Latest migration changes broke Postgres support #635
Comments
|
Hi, Can you show your setup and the error message during the migration? |
Error:
Ubuntu (in lxd container):
Postgresql:
(Note, the git diff fixes it for me) It looks like the default value isn't applied to the table with sqlalchemy. With pg_dump:
And no The only |
Any update on this? Same issue here with postgresql-11. |
sqlalchemy.exc.IntegrityError: (psycopg2.errors.NotNullViolation) column "confirmed" contains null values [SQL: ALTER TABLE "user" ADD COLUMN confirmed BOOLEAN NOT NULL] So I applied the update manually
Proper fix: Since i've already applied the migration, I don't have lots of motivation to make a PR. |
Same happens with PostgreSQL 13. The patch from @keesbos works, so that can essentially be used as the PR for fixing it (unless someone wants to refine it more).
|
@keesbos I've not checked the migration scripts but it looks to me that it hasn't been fixed. Can you confirm ? |
Related #787 |
… using MySQL databases Fixes PowerDNS-Admin#635 which introduced a breaking change for MySQL databases and resolves PowerDNS-Admin#1446.
… using MySQL databases Fixes PowerDNS-Admin#635 which introduced a breaking change for MySQL databases and resolves PowerDNS-Admin#1446.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. PDA is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide. |
Awesome, thanks! :) |
Roughly 1.5 months ago, the project ran just fine with postgres as database backend. Due to new migrations which have been added, and relevant changes, this is now broken.
This would be a minor change, being a huge improvement nonetheless.
The text was updated successfully, but these errors were encountered: