mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 12:51:18 +00:00
Nutomic
9eee61dd06
* Post scheduling (fixes #234) * clippy * replace map_err with inspect_err * ignore unpublished posts in read queries * add api test * fmt * add some checks * address some review comments * allow updating schedule time * rewrite scheduled task * fmt * machete * compare date in sql, more filters * check for community ban in sql * remove api test (scheduled task only runs every 10 mins) * remove mut * add index * remove Post::read impl * fmt * fix * correctly handle changes to schedule time * normal users can only schedule up to 10 posts
5 lines
149 B
SQL
5 lines
149 B
SQL
ALTER TABLE post
|
|
ADD COLUMN scheduled_publish_time timestamptz;
|
|
|
|
CREATE INDEX idx_post_scheduled_publish_time ON post (scheduled_publish_time);
|
|
|