about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-05-01T18·24+0200
committerVincent Ambo <github@tazj.in>2018-05-01T22·33+0200
commit7a17d532c4ff256b4e8ef4c712135c0e5dd44a4f (patch)
tree0a66eb9d2936d47713c8f730ffedcaa33625442c /src
parenta45da31abc09b5199d2aaefc038b8c59e0c50975 (diff)
fix(schema): Update for author->user_id column rename
Diffstat (limited to 'src')
-rw-r--r--src/schema.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/schema.rs b/src/schema.rs
index af9976dd4dfc..c9ca615e6e10 100644
--- a/src/schema.rs
+++ b/src/schema.rs
@@ -22,7 +22,7 @@ table! {
         thread_id -> Int4,
         body -> Text,
         posted -> Timestamptz,
-        author -> Int4,
+        user_id -> Int4,
     }
 }
 
@@ -32,7 +32,7 @@ table! {
         title -> Varchar,
         posted -> Timestamptz,
         sticky -> Bool,
-        author -> Int4,
+        user_id -> Int4,
     }
 }
 
@@ -60,8 +60,8 @@ table! {
 }
 
 joinable!(posts -> threads (thread_id));
-joinable!(posts -> users (author));
-joinable!(threads -> users (author));
+joinable!(posts -> users (user_id));
+joinable!(threads -> users (user_id));
 
 allow_tables_to_appear_in_same_query!(
     posts,