Final V2 Changes (#212)

* Redo dependencies, add rejection reasons, make notifications more readable

* Fix errors, add dependency route, finish PR

* Fix clippy errors
This commit is contained in:
Geometrically
2021-06-16 09:05:35 -07:00
committed by GitHub
parent 2a4caa856e
commit d2c2503cfa
39 changed files with 2365 additions and 1303 deletions

View File

@@ -0,0 +1,18 @@
INSERT INTO statuses (status) VALUES ('archived');
ALTER TABLE notifications
ADD COLUMN type varchar(256);
ALTER TABLE mods
ADD COLUMN rejection_reason varchar(2000),
ADD COLUMN rejection_body varchar(65536);
DROP TABLE dependencies;
CREATE TABLE dependencies (
id serial PRIMARY KEY,
dependent_id bigint REFERENCES versions ON UPDATE CASCADE NOT NULL,
dependency_type varchar(255) NOT NULL,
dependency_id bigint REFERENCES versions ON UPDATE CASCADE,
mod_dependency_id bigint REFERENCES mods ON UPDATE CASCADE
);