unify migration scripts

Related: https://pagure.io/koji/issue/3623
This commit is contained in:
Tomas Kopecek 2022-12-12 10:48:40 +01:00
parent d79c865874
commit 669b99f4c5
4 changed files with 6 additions and 6 deletions

View file

@ -4,10 +4,4 @@
BEGIN;
-- clean some unused old indices if they still exist
-- https://pagure.io/koji/issue/3160
DROP INDEX IF EXISTS image_listing_archives;
DROP INDEX IF EXISTS image_listing_rpms;
DROP INDEX IF EXISTS imageinfo_listing_rpms;
COMMIT;

View file

@ -10,4 +10,10 @@ UPDATE archivetypes set compression_type='zip' WHERE name = 'jar';
UPDATE archivetypes set compression_type='zip' WHERE name = 'zip';
UPDATE archivetypes set compression_type='tar' WHERE name = 'tar';
-- clean some unused old indices if they still exist
-- https://pagure.io/koji/issue/3160
DROP INDEX IF EXISTS image_listing_archives;
DROP INDEX IF EXISTS image_listing_rpms;
DROP INDEX IF EXISTS imageinfo_listing_rpms;
COMMIT;