Commit graph

160 commits

Author SHA1 Message Date
Tomas Kopecek
23ba4c2c3b Move sql files to schemas directory 2023-09-13 12:17:10 +02:00
Tomas Kopecek
b9e9dd6c4b migration script 2023-05-17 11:02:30 +02:00
Mike McLean
14c2e1b38c avoid upsert in db_lock 2023-05-17 11:02:08 +02:00
Mike McLean
0d61c94250 add db_lock function and locks table 2023-05-17 11:02:08 +02:00
Mike McLean
d82edd9757 track update time in host table 2023-05-16 13:14:16 +02:00
Tomas Kopecek
896b75d4c6 Import koji archive types
Related: https://pagure.io/koji/issue/3736
2023-05-16 12:57:57 +02:00
Jana Cupova
44742bc5f8 Drop default Null for renew_time in sql 2023-05-09 09:16:40 +02:00
Jana Cupova
6a033ea948 Add renew_ts column and check with renew_ts 2023-05-09 09:16:40 +02:00
Jana Cupova
21a4cc4d70 Fix review 2023-02-06 13:17:33 +01:00
Jana Cupova
9bf31de75f Add checksum API
Fixes: https://pagure.io/koji/issue/3627
2023-02-06 13:17:33 +01:00
Tomas Kopecek
067e294c6c retain expired session exclusivity 2023-02-01 15:01:15 +01:00
Tomas Kopecek
35070f6ba2 minor fixes 2023-02-01 15:01:15 +01:00
Jana Cupova
1f0c12930d Add closed column to session table and use it in session 2023-02-01 15:01:15 +01:00
Tomas Kopecek
c11056996b fix different PG capabilities in schema
Related: https://pagure.io/koji/issue/3594
2023-01-12 11:01:24 +01:00
Tomas Kopecek
b9e8c03127 fix default archivetypes extensions
Related: https://pagure.io/koji/issue/3605
2022-12-12 09:09:52 +01:00
Tomas Kopecek
e461659a8a Index for rpm search
Related: https://pagure.io/koji/issue/3448
2022-10-18 12:04:31 +02:00
Jana Cupova
8d3bf008ac Use compression_type in listArchiveFiles
Fixes: https://pagure.io/koji/issue/855
2022-06-27 15:00:32 +02:00
Jana Cupova
1252129136 Add description for permissions
Fixes: https://pagure.io/koji/issue/335
2022-01-31 10:21:58 +01:00
Jana Cupova
bc2a51350d Enable/disable channel
Fixes: https://pagure.io/koji/issue/1851
2021-07-20 10:33:50 +02:00
Jana Cupova
aec9fba121 Add CLI related to channels + add comments to channels
Fixes: https://pagure.io/koji/issue/1711
Fixes: https://pagure.io/koji/issue/1849
2021-06-29 14:44:47 +02:00
Jana Cupova
6a2c6e7586 Repo info with task id
Fixes: https://pagure.io/koji/issue/888
2021-04-19 15:15:10 +02:00
Tomas Kopecek
3f71076eba Revert "PR#2576: db: add debian package archivetype"
This reverts commit b19f1760bf, reversing
changes made to b3f548f803.

We've agreed that adding new archivetypes should be done via API not by
default values in db.

Related: https://pagure.io/koji/issue/2575
Related: https://pagure.io/koji/pull-request/2576
2021-02-04 15:59:17 +01:00
Tomas Kopecek
51f79c5f48 db: add debian package archivetype
Fixes: https://pagure.io/koji/issue/2575
2021-01-13 14:40:05 +01:00
Tomas Kopecek
3491554405 unify sql case 2020-12-14 11:42:01 +01:00
Tomas Kopecek
24bd694865 external repos can have specified arch list
Fixes: https://pagure.io/koji/issue/2538
2020-11-24 13:56:29 +01:00
Tomas Kopecek
5167fee215 proton: missing default value for timestamp
Related: https://pagure.io/koji/issue/2230
2020-10-01 09:21:51 +02:00
Mike McLean
4ddc48e72a avoid message re-insertion, extend test mode, schema and docs updates
include new table in main schema, since this plugin is part of Koji itself

clean up and expand the docs for this plugin

refactor query_from_db() into handle_db_msgs()
* fix lock error cases
* only delete messages from queue if we successfully send them
* handle test_mode

allow test_mode to exercise db queue via test_mode_fail setting
2020-09-30 10:14:49 +02:00
Tomas Kopecek
08494de774 block inherited extra tag info
Fixes: https://pagure.io/koji/issue/2283
2020-09-28 11:03:43 +02:00
Tomas Kopecek
f49d2fdbe9 db: additional index
Fixes: https://pagure.io/koji/issue/2418
2020-08-25 11:27:05 +02:00
Tomas Kopecek
6d41344d38 hub: fix index so it gets used by planner
Fixes: https://pagure.io/koji/issue/2333
2020-06-24 15:02:05 +02:00
Tomas Kopecek
87b8cf718a db: use timestamps with timezone
Fixes: https://pagure.io/koji/issue/2160
2020-06-24 09:44:52 +02:00
Yuming Zhu
944d105571 hub: editTagExternalRepo is able to set merge_mode
fixes: #1857
2020-03-25 13:39:30 +01:00
Tomas Kopecek
b54c32af1a use real time for events
NOW() is time of transaction start. For long transaction, there could be
race and some other transactions which ended earlier can have newer
events. clock_timestamp returns real time (changes during transaction),
so it should be better for this case.

Fixes: https://pagure.io/koji/issue/1747
2020-03-19 14:30:24 +01:00
Mike McLean
51c5c9715a outdated comment 2020-02-05 11:36:34 +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
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