-
Notifications
You must be signed in to change notification settings - Fork 103
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
Database Problems with upgrade script 6.1.23 -> 6.2.36 (table exclusion_table column family_exclusion; NULL and primary key) #442
Comments
Hi @c-holtermann, I found this information:
|
That looks like it. old server: new server: |
@c-holtermann, thanks for confirming. The bug may be fixed by the PR above. Note on your workaround:
Thanks for reporting bug! |
Thank you for the correction. |
family_exclusion field can break not_null constraint during upgrade #442
Distributions should backport this commit to their packages. |
I encountered the same issue with a postgresql database, when upgrading from sympa 6.1.23 to 6.2.36 on a Debian system. The workaround worked, ie replacing null values by an empty string |
For your information, this fix is included in the sympa version (checked in 6.2.40) available in Debian Buster. |
This issue came up when I did a migration and upgrade at the same time.
Version
6.1.23 to 6.2.36
Installation method
From Sympa debian .deb to compiled from source
Expected behavior
normale upgrade
Actual behavior
sympa.pl --upgrade stopped issuing the error:
Additional information
Database before migration was MySQL. Used mysqldump. Migrate to MariaDB.
I couldn't run the upgrade script with mysql. But I ran the upgrade command
on the original machine. MySQL accepts it. Even if I dump this and reimport to MariaDB I get the same error. I could only make it work when doing:
then
now
The problem seems to be setting family_exclusion as primary key when null values are in the database.
The text was updated successfully, but these errors were encountered: