update migration for notification optouts

This commit is contained in:
Tomas Kopecek 2019-05-07 11:47:21 +02:00 committed by Mike McLean
parent 7a302ce6ad
commit e14d60b78f
2 changed files with 8 additions and 1 deletions

View file

@ -4,6 +4,14 @@
BEGIN;
-- new table for notifications' optouts
CREATE TABLE build_notifications_block (
id SERIAL NOT NULL PRIMARY KEY,
user_id INTEGER NOT NULL REFERENCES users (id),
package_id INTEGER REFERENCES package (id),
tag_id INTEGER REFERENCES tag (id)
) WITHOUT OIDS;
-- add tgz to list of tar's extensions
UPDATE archivetypes SET extensions = 'tar tar.gz tar.bz2 tar.xz tgz' WHERE name = 'tar';
INSERT INTO archivetypes (name, description, extensions) VALUES ('vhdx', 'Hyper-V Virtual Hard Disk v2 image', 'vhdx');

View file

@ -728,7 +728,6 @@ CREATE TABLE build_notifications_block (
tag_id INTEGER REFERENCES tag (id)
) WITHOUT OIDS;
GRANT SELECT ON build, package, task, tag,
tag_listing, tag_config, tag_inheritance, tag_packages,
rpminfo TO PUBLIC;