Add a date for sorting threads by last reply

This commit is contained in:
swaggboi 2022-07-31 00:35:50 -04:00
parent 8290eb795a
commit d84176677f
2 changed files with 6 additions and 0 deletions

2
migrations/3/down.sql Normal file
View File

@ -0,0 +1,2 @@
ALTER TABLE threads
DROP COLUMN bump_date;

4
migrations/3/up.sql Normal file
View File

@ -0,0 +1,4 @@
ALTER TABLE threads
ADD COLUMN bump_date TIMESTAMPTZ
NOT NULL
DEFAULT NOW();