diff --git a/hammond-data/diesel.toml b/hammond-data/diesel.toml new file mode 100644 index 0000000..70ba106 --- /dev/null +++ b/hammond-data/diesel.toml @@ -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" diff --git a/hammond-data/src/schema.patch b/hammond-data/src/schema.patch new file mode 100644 index 0000000..d961594 --- /dev/null +++ b/hammond-data/src/schema.patch @@ -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, + local_uri -> Nullable, + description -> Nullable, + epoch -> Integer, + length -> Nullable, +@@ -30,11 +33,7 @@ table! { + uri -> Text, + last_modified -> Nullable, + http_etag -> Nullable, + } + } + +-allow_tables_to_appear_in_same_query!( +- episodes, +- shows, +- source, +-); ++allow_tables_to_appear_in_same_query!(episodes, shows, source); diff --git a/hammond-data/src/schema.rs b/hammond-data/src/schema.rs index b72e798..88f1622 100644 --- a/hammond-data/src/schema.rs +++ b/hammond-data/src/schema.rs @@ -1,3 +1,5 @@ +#![allow(warnings)] + table! { episodes (title, show_id) { rowid -> Integer,