refactor(db): Establish Post->Thread association

This makes it possible to query posts by thread via Diesel.
This commit is contained in:
Vincent Ambo 2018-04-08 18:27:15 +02:00
parent 6e56f8e729
commit 316036b0a8
5 changed files with 15 additions and 7 deletions

View file

@ -0,0 +1 @@
ALTER TABLE posts RENAME COLUMN thread_id TO thread;

View file

@ -0,0 +1 @@
ALTER TABLE posts RENAME COLUMN thread TO thread_id;