new table for notification blocks

This commit is contained in:
Mike McLean 2019-03-15 12:53:41 -04:00
parent 72554e493c
commit 7a302ce6ad

View file

@ -721,6 +721,14 @@ CREATE TABLE build_notifications (
email TEXT NOT NULL
) WITHOUT OIDS;
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;
GRANT SELECT ON build, package, task, tag,
tag_listing, tag_config, tag_inheritance, tag_packages,
rpminfo TO PUBLIC;