update migration for notification optouts
This commit is contained in:
parent
7a302ce6ad
commit
e14d60b78f
2 changed files with 8 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue