Database: Add diesel_cli config.
This commit is contained in:
parent
f3fb27005a
commit
5b8b265371
6
hammond-data/diesel.toml
Normal file
6
hammond-data/diesel.toml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# For documentation on how to configure this file,
|
||||||
|
# see diesel.rs/guides/configuring-diesel-cli
|
||||||
|
|
||||||
|
[print_schema]
|
||||||
|
file = "src/schema.rs"
|
||||||
|
patch_file = "src/schema.patch"
|
||||||
29
hammond-data/src/schema.patch
Normal file
29
hammond-data/src/schema.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
diff --git a/hammond-data/src/schema.rs b/hammond-data/src/schema.rs
|
||||||
|
index 03cbed0..88f1622 100644
|
||||||
|
--- a/hammond-data/src/schema.rs
|
||||||
|
+++ b/hammond-data/src/schema.rs
|
||||||
|
@@ -1,8 +1,11 @@
|
||||||
|
+#![allow(warnings)]
|
||||||
|
+
|
||||||
|
table! {
|
||||||
|
episodes (title, show_id) {
|
||||||
|
+ rowid -> Integer,
|
||||||
|
title -> Text,
|
||||||
|
uri -> Nullable<Text>,
|
||||||
|
local_uri -> Nullable<Text>,
|
||||||
|
description -> Nullable<Text>,
|
||||||
|
epoch -> Integer,
|
||||||
|
length -> Nullable<Integer>,
|
||||||
|
@@ -30,11 +33,7 @@ table! {
|
||||||
|
uri -> Text,
|
||||||
|
last_modified -> Nullable<Text>,
|
||||||
|
http_etag -> Nullable<Text>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-allow_tables_to_appear_in_same_query!(
|
||||||
|
- episodes,
|
||||||
|
- shows,
|
||||||
|
- source,
|
||||||
|
-);
|
||||||
|
+allow_tables_to_appear_in_same_query!(episodes, shows, source);
|
||||||
@ -1,3 +1,5 @@
|
|||||||
|
#![allow(warnings)]
|
||||||
|
|
||||||
table! {
|
table! {
|
||||||
episodes (title, show_id) {
|
episodes (title, show_id) {
|
||||||
rowid -> Integer,
|
rowid -> Integer,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user