2022-06-13 19:15:04 +00:00
|
|
|
-- Add the admin_purge tables
|
2023-08-02 16:44:51 +00:00
|
|
|
CREATE TABLE admin_purge_person (
|
|
|
|
id serial PRIMARY KEY,
|
|
|
|
admin_person_id int REFERENCES person ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
|
|
|
|
reason text,
|
|
|
|
when_ timestamp NOT NULL DEFAULT now()
|
2022-06-13 19:15:04 +00:00
|
|
|
);
|
|
|
|
|
2023-08-02 16:44:51 +00:00
|
|
|
CREATE TABLE admin_purge_community (
|
|
|
|
id serial PRIMARY KEY,
|
|
|
|
admin_person_id int REFERENCES person ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
|
|
|
|
reason text,
|
|
|
|
when_ timestamp NOT NULL DEFAULT now()
|
2022-06-13 19:15:04 +00:00
|
|
|
);
|
|
|
|
|
2023-08-02 16:44:51 +00:00
|
|
|
CREATE TABLE admin_purge_post (
|
|
|
|
id serial PRIMARY KEY,
|
|
|
|
admin_person_id int REFERENCES person ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
|
|
|
|
community_id int REFERENCES community ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
|
|
|
|
reason text,
|
|
|
|
when_ timestamp NOT NULL DEFAULT now()
|
2022-06-13 19:15:04 +00:00
|
|
|
);
|
|
|
|
|
2023-08-02 16:44:51 +00:00
|
|
|
CREATE TABLE admin_purge_comment (
|
|
|
|
id serial PRIMARY KEY,
|
|
|
|
admin_person_id int REFERENCES person ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
|
|
|
|
post_id int REFERENCES post ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
|
|
|
|
reason text,
|
|
|
|
when_ timestamp NOT NULL DEFAULT now()
|
2022-06-13 19:15:04 +00:00
|
|
|
);
|
2023-08-02 16:44:51 +00:00
|
|
|
|