mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-30 23:01:34 +00:00
32 lines
1,014 B
MySQL
32 lines
1,014 B
MySQL
|
-- Add the admin_purge tables
|
||
|
|
||
|
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()
|
||
|
);
|
||
|
|
||
|
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()
|
||
|
);
|
||
|
|
||
|
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()
|
||
|
);
|
||
|
|
||
|
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()
|
||
|
);
|