diff options
author | Vincent Ambo <tazjin@gmail.com> | 2018-04-14T15·47+0200 |
---|---|---|
committer | Vincent Ambo <tazjin@gmail.com> | 2018-04-14T15·47+0200 |
commit | d1c45159b9bb23553768b06ce7ad97ec38e8b845 (patch) | |
tree | f6dae457fddcb75bb6a3c65eec699868beb3b89f /src/schema.rs | |
parent | c136d34e798f399c515b31d90fd1194b02005c96 (diff) |
feat(db): Add support for stickies in database
Adds a 'sticky' column to threads and rewrites the thread index to take sticky markings into account when ordering threads. Stickies are not yet highlighted in any way in the forum overview.
Diffstat (limited to 'src/schema.rs')
-rw-r--r-- | src/schema.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/schema.rs b/src/schema.rs index 02392c8fc60c..50a55c786825 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -16,6 +16,7 @@ table! { posted -> Timestamptz, author_name -> Varchar, author_email -> Varchar, + sticky -> Bool, } } @@ -24,9 +25,12 @@ table! { thread_index (thread_id){ thread_id -> Integer, title -> Text, - author_name -> Text, - posted -> Timestamptz, + thread_author -> Text, + created -> Timestamptz, + sticky -> Bool, post_id -> Integer, + post_author -> Text, + posted -> Timestamptz, } } |