Commit graph

125 commits

Author SHA1 Message Date
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
Steve Milner
a1a90570c9 docs/schema.sql: update for changes in schema-upgrade-1.18-1.19.sql 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
Tomas Kopecek
f1d2ebc85c move cg_id to build table 2019-07-16 10:11:55 -04:00
Tomas Kopecek
f6a845c870 restrict to cg_id 2019-07-16 10:11:55 -04:00
Tomas Kopecek
f2647a687b use token for reservation 2019-07-16 10:11:54 -04:00
Tomas Kopecek
c775031e9d few more useful indices on tag_packages 2019-07-11 15:22:33 -04:00
Tomas Kopecek
e39d92164f Create db index for listTagged
Fixes: https://pagure.io/koji/issue/1352
2019-07-11 15:22:33 -04:00
Tomas Kopecek
e14d60b78f update migration for notification optouts 2019-07-09 13:34:36 -04:00
Mike McLean
7a302ce6ad new table for notification blocks 2019-07-09 13:34:36 -04:00
Ben Howard
8d0624bf2f Add raw-gz and compressed QCOW2 archive types. 2019-06-26 16:06:59 -04:00
Tomas Kopecek
03bf5554c5 use better index for sessions
Fixes: https://pagure.io/koji/issue/1372
2019-06-13 16:15:40 -04:00
Mike McLean
a190035862 add vhdx archivetype 2019-03-26 10:05:54 -04:00
Tomas Kopecek
3c56e125de add .tgz to list of tar's possible extensions
Fixes: https://pagure.io/koji/issue/1343
2019-03-14 15:21:43 +01:00
Tomas Kopecek
3d6b640c56 Modify SQL update scripts 2018-09-20 12:37:26 -04:00
Mike McLean
3273d249cd merge mode is part of tag connection rather than inherent to repo 2018-09-20 12:37:26 -04:00
Mike McLean
f2b2a82c4b merge_mode field for external repos 2018-09-20 12:37:26 -04:00
mprahl
c21124ee12 Allow longer Build Target names 2018-05-23 18:32:34 -04:00
Mike McLean
5ec9e2379c schema fixes 2018-04-30 11:35:25 -04:00
Tomas Kopecek
b50479abb0 host_channels history 2018-04-30 11:35:25 -04:00
Tomas Kopecek
0f8238dd33 add index 2018-04-30 11:35:25 -04:00
Tomas Kopecek
a5b713e438 update schema.sql for host_config 2018-04-30 11:35:25 -04:00
Mike McLean
c00084285d give the archivetype a unique name 2018-02-26 15:24:25 -05:00
Mike McLean
d1b2e16915 compressed xml archive type 2018-02-26 15:24:25 -05:00
Yuming Zhu
12121dc191 add xjb and yaml type in archivetypes table
to fix [issue#574](https://pagure.io/koji/issue/574)
2017-08-29 18:07:43 +08:00
Tomas Kopecek
d17157cf33 drop unused add_db_logger call and db table
Fixes: https://pagure.io/koji/issue/469
2017-07-06 11:15:00 -04:00
Brendan Reilly
d9280d6945 Increase 50 character limit of tag names 2017-04-25 14:07:52 -04:00
Mike McLean
8346a60976 more renaming 2017-03-30 09:47:20 -04:00
Jay Greguske
9b504a280c add signed flag to repo table 2017-03-30 09:37:56 -04:00
Mike McLean
275aa83b0f more schema updates 2016-09-28 18:20:09 -04:00
Mike McLean
ea84af67ce add btype_id to archiveinfo 2016-09-28 18:20:09 -04:00
Mike McLean
6df2ec8ba4 btypes schema changes 2016-09-28 18:20:09 -04:00
Mike McLean
7b480adeb1 add jnilib archivetype 2016-07-26 11:25:15 -04:00
Mike McLean
d14dbaacaa add tlb archive type 2016-06-14 12:10:45 -04:00
Mike McLean
cbd6ca9ced misc fixes 2016-05-16 14:02:06 -04:00
Fabian Deutsch
4729adc5f9 Add support for liveimg-squashfs
This patch adds support to build squashfs images which are compatible to
anaconda's liveimg directive and dracuts liveimg feature.
The feature is pretty simple, as it just reuses the raw diskimage, and
strips the disklabel, to retrieve the plain filesystem image.

Two open issues:
- Stripping the disk label is a pretty hack
- Database schema upgrade is missing

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2016-03-30 12:18:56 -04:00
Mike McLean
5aa6ed4818 move table drops to schema-clear.sql 2016-02-05 08:58:49 -05:00
Mike McLean
4b98f6bd47 drop tables in reverse creation order 2016-02-05 08:50:49 -05:00
Mike McLean
3b182a096a Merge #22 Drop tables and functions only if exist 2016-02-04 16:10:20 +00:00
Mike McLean
6513039f4d obr archivetype 2016-02-01 09:46:57 -05:00
Pavol Babincak
48c48606fe Drop tables and functions only if exist
At the time of first initialization of Koji database tables and
functions don't exist. This isn't really a problem as SQL commands later
in the script create them.

For non-existent tables or functions psql prints NOTICE instead of an
ERROR. Therefore one can check if database was initialized correctly
with ON_ERROR_STOP set (see psql(1)):

     psql returns 3 if an error occurred in a script and the variable
     ON_ERROR_STOP was set.
2016-01-21 16:57:52 +01:00
Mike McLean
a621081b4e wsdl archivetype 2016-01-15 12:01:51 -05:00
Mike McLean
8168da12cd add rc archivetype 2016-01-04 12:44:35 -05:00
Mike McLean
4d528dfcd4 add missing comma in schema file 2015-12-15 18:55:03 -05:00
Mike McLean
c54ea3312a new archivetypes: shell scripts and batch files 2015-12-10 14:45:37 -05:00
Mike McLean
47189e0c3a Merge branch 'cgen'
Merge in content generator changes

Conflicts:
	hub/kojihub.py
2015-11-18 10:55:21 -05:00
Mike McLean
262ec7a7da add groovy script archive type 2015-11-17 14:43:05 -05:00
Mike McLean
87fb7f46e9 Merge remote-tracking branch 'origin/master' into cgen 2015-11-17 10:52:42 -05:00