From e057a8d2ddf4b6e17e7b3bcc7548476ad1e13469 Mon Sep 17 00:00:00 2001 From: pjht Date: Fri, 18 Oct 2024 19:46:02 -0500 Subject: [PATCH] Add schema patch file --- diesel.toml | 1 + server/src/schema.patch | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 server/src/schema.patch diff --git a/diesel.toml b/diesel.toml index 9c675a2..a375dd0 100644 --- a/diesel.toml +++ b/diesel.toml @@ -3,6 +3,7 @@ [print_schema] file = "server/src/schema.rs" +patch_file = "server/src/schema.patch" custom_type_derives = ["diesel::query_builder::QueryId", "Clone"] [migrations_directory] diff --git a/server/src/schema.patch b/server/src/schema.patch new file mode 100644 index 0000000..05683fa --- /dev/null +++ b/server/src/schema.patch @@ -0,0 +1,19 @@ +diff --git a/server/src/schema.rs b/server/src/schema.rs +index cdf1f36..9fa3cc6 100644 +--- a/server/src/schema.rs ++++ b/server/src/schema.rs +@@ -1,13 +1,13 @@ + // @generated automatically by Diesel CLI. + + diesel::table! { + messages (id) { + id -> Integer, + message -> Text, +- time -> Text, ++ time -> TimestamptzSqlite, + user_id -> Integer, + } + } + + diesel::table! { + users (id) {