]> Untitled Git - lemmy.git/blob - migrations/2021-08-17-210508_create_mod_transfer_community/up.sql
Dont use sha hash for password reset token (fixes #3491) (#3795)
[lemmy.git] / migrations / 2021-08-17-210508_create_mod_transfer_community / up.sql
1 -- Add the mod_transfer_community log table
2 CREATE TABLE mod_transfer_community (
3     id serial PRIMARY KEY,
4     mod_person_id int REFERENCES person ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
5     other_person_id int REFERENCES person ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
6     community_id int REFERENCES community ON UPDATE CASCADE ON DELETE CASCADE NOT NULL,
7     removed boolean DEFAULT FALSE,
8     when_ timestamp NOT NULL DEFAULT now()
9 );
10