Add schema patch file

This commit is contained in:
pjht 2024-10-18 19:46:02 -05:00
parent a1856aaeaa
commit e057a8d2dd
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E
2 changed files with 20 additions and 0 deletions

View File

@ -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]

19
server/src/schema.patch Normal file
View File

@ -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) {