From acd5ab3c4c1d03150caeaf51b78d333ab2aeeb1e Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 7 Jul 2024 13:44:22 +0200 Subject: [PATCH] diesel: Do not automatically generate schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It currently can’t handle views, so it has to be updated manually based on diesel print-schema. --- diesel.toml | 1 - src/schema.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/diesel.toml b/diesel.toml index 889b2b9..9e2faa8 100644 --- a/diesel.toml +++ b/diesel.toml @@ -6,7 +6,6 @@ # see https://diesel.rs/guides/configuring-diesel-cli [print_schema] -file = "src/schema.rs" custom_type_derives = ["diesel::query_builder::QueryId"] [migrations_directory] diff --git a/src/schema.rs b/src/schema.rs index 12efc5c..2db38b5 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -2,8 +2,6 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -// @generated automatically by Diesel CLI. - diesel::table! { items (id) { id -> Uuid,