about summary refs log tree commit diff
path: root/migrations/2018-04-08-161017_joinable_posts/down.sql
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-08T16·27+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-08T16·30+0200
commit316036b0a89a428e850ea33e07f5fe2362f833c9 (patch)
tree489a4e6c8b7e8f117b054d0087981027f288aad3 /migrations/2018-04-08-161017_joinable_posts/down.sql
parent6e56f8e729551ff14b7a72ca889b8dd38999fb2d (diff)
refactor(db): Establish Post->Thread association
This makes it possible to query posts by thread via Diesel.
Diffstat (limited to 'migrations/2018-04-08-161017_joinable_posts/down.sql')
-rw-r--r--migrations/2018-04-08-161017_joinable_posts/down.sql1
1 files changed, 1 insertions, 0 deletions
diff --git a/migrations/2018-04-08-161017_joinable_posts/down.sql b/migrations/2018-04-08-161017_joinable_posts/down.sql
new file mode 100644
index 000000000000..cc7874b410ee
--- /dev/null
+++ b/migrations/2018-04-08-161017_joinable_posts/down.sql
@@ -0,0 +1 @@
+ALTER TABLE posts RENAME COLUMN thread_id TO thread;