Dne 10.1.2017 v 23:57 Mátyás Selmeci napsal(a):
Hi,
I'm trying to upgrade a koji installation from 1.6 to 1.11. The database
migrate scripts work all the way up to 1.10, but
schema-upgrade-1.10-1.11.sql errors out when trying to add the
"container_sane" constraint to the "buildroot" table.
I think what's going on is:
- the constraint is to make sure container_type and container_arch are
either both NULL or neither NULL
- the container_type column is new in 1.11, so when the migration script
adds it, all the values are NULL
- the container_arch column is a renaming of the arch column, where arch
(for us) is either "i386" or "x86_64", never NULL
What do you suggest I do?
Thanks,
-Mat
I've created
https://pagure.io/koji/issue/269 for this. It probably
would be safe to run query mentioned there if you are not using any
container-specific plugins. Nevertheless, it would be better to
document/fix it, so issue filed.
--
Tomas Kopecek <tkopecek(a)redhat.com>
Release Engineering Development, RedHat