We need to include a pinned_count column to the threads table in MariaDB in order to include it in the thread info in a later diff. Modifications to the client db and the new thread types / persist migration will come in the next two diffs
Part of
https://linear.app/comm/issue/ENG-3396/store-the-number-of-pinned-messages-in-threadinfo
Depends on D6924