fix(schema): Update for author->user_id column rename
This commit is contained in:
		
							parent
							
								
									a45da31abc
								
							
						
					
					
						commit
						7a17d532c4
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -22,7 +22,7 @@ table! {
 | 
				
			||||||
        thread_id -> Int4,
 | 
					        thread_id -> Int4,
 | 
				
			||||||
        body -> Text,
 | 
					        body -> Text,
 | 
				
			||||||
        posted -> Timestamptz,
 | 
					        posted -> Timestamptz,
 | 
				
			||||||
        author -> Int4,
 | 
					        user_id -> Int4,
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,7 +32,7 @@ table! {
 | 
				
			||||||
        title -> Varchar,
 | 
					        title -> Varchar,
 | 
				
			||||||
        posted -> Timestamptz,
 | 
					        posted -> Timestamptz,
 | 
				
			||||||
        sticky -> Bool,
 | 
					        sticky -> Bool,
 | 
				
			||||||
        author -> Int4,
 | 
					        user_id -> Int4,
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -60,8 +60,8 @@ table! {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
joinable!(posts -> threads (thread_id));
 | 
					joinable!(posts -> threads (thread_id));
 | 
				
			||||||
joinable!(posts -> users (author));
 | 
					joinable!(posts -> users (user_id));
 | 
				
			||||||
joinable!(threads -> users (author));
 | 
					joinable!(threads -> users (user_id));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
allow_tables_to_appear_in_same_query!(
 | 
					allow_tables_to_appear_in_same_query!(
 | 
				
			||||||
    posts,
 | 
					    posts,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue