2024-11-20 11:03:40 +00:00
|
|
|
ALTER TABLE federation_blocklist
|
2024-11-21 15:34:02 +00:00
|
|
|
ADD COLUMN expires timestamptz;
|
2024-11-20 11:03:40 +00:00
|
|
|
|
|
|
|
CREATE TABLE admin_block_instance (
|
|
|
|
id serial PRIMARY KEY,
|
|
|
|
instance_id int NOT NULL REFERENCES instance (id) ON UPDATE CASCADE ON DELETE CASCADE,
|
|
|
|
admin_person_id int NOT NULL REFERENCES person (id) ON UPDATE CASCADE ON DELETE CASCADE,
|
|
|
|
reason text,
|
|
|
|
expires timestamptz,
|
|
|
|
published timestamptz NOT NULL DEFAULT now()
|
|
|
|
);
|
|
|
|
|
2024-11-20 13:29:07 +00:00
|
|
|
CREATE TABLE admin_allow_instance (
|
|
|
|
id serial PRIMARY KEY,
|
|
|
|
instance_id int NOT NULL REFERENCES instance (id) ON UPDATE CASCADE ON DELETE CASCADE,
|
|
|
|
admin_person_id int NOT NULL REFERENCES person (id) ON UPDATE CASCADE ON DELETE CASCADE,
|
|
|
|
reason text,
|
|
|
|
published timestamptz NOT NULL DEFAULT now()
|
|
|
|
);
|
|
|
|
|