Commit graph

9 commits

Author SHA1 Message Date
Tomas Kopecek
5bbdc5d539 backward-compatible db conversion
PG <= 9.4 doesn't support INSERT INTO ... ON CONFLICT ... syntax

Fixes: https://pagure.io/koji/issue/1718
2019-10-30 10:52:47 +01:00
Tomas Kopecek
22dc480b18 add all used permissions to db
Fixes: https://pagure.io/koji/issue/1637
2019-10-16 10:01:43 +02:00
Ken Dreyer
f5a845be14 enforce unique content generator names in database
Set a uniqueness constraint on the content generator name in the
database.

Prior to this change, we were only enforcing this in the hub application
layer. Configure this in postgres for safety.
2019-10-14 10:07:41 +02:00
Yuming Zhu
f47d630acd update schema with new table - user_krb_principals 2019-10-10 16:37:56 +02:00
Ben Howard
971b82a9e5 docs/schema-upgrade-1.18-1.19.sql: additional CoreOS artifact types. 2019-09-26 17:36:39 +02:00
Yuming Zhu
417d230277 fix schema.sql introduced by moving owner from tag_packages to another table
related: https://pagure.io/koji/pull-request/1473

fixes: https://pagure.io/koji/issue/956
2019-09-26 17:21:31 +02:00
Tomas Kopecek
3de3f61fbb move tag/package owners to separate table
Changing owner is triggering repo regeneration in kojira. As it is
something which doesn't have any effect on repodata, let's put it to
separate table and let kojira ignore these changes.

Fixes: https://pagure.io/koji/issue/956
2019-08-29 15:44:24 +02:00
Mike McLean
97f8f829ae change moved to 1.18, so adjust schema upgrade scripts 2019-06-26 16:08:04 -04:00
Ben Howard
8d0624bf2f Add raw-gz and compressed QCOW2 archive types. 2019-06-26 16:06:59 -04:00