diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-24 22:42:38 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-05-24 22:42:38 -0700 |
commit | 0133a3eda3726cc185f6adfdbc995e0f33d55fa5 (patch) | |
tree | 7fcffd3570decbca343b2baa9bb51ef069521b76 /rust/src | |
parent | 2991a4349f86cca8d1dcc978e3506f3032d5ebdd (diff) | |
download | fatcat-0133a3eda3726cc185f6adfdbc995e0f33d55fa5.tar.gz fatcat-0133a3eda3726cc185f6adfdbc995e0f33d55fa5.zip |
revision publish date as Date
Diffstat (limited to 'rust/src')
-rw-r--r-- | rust/src/database_models.rs | 2 | ||||
-rw-r--r-- | rust/src/database_schema.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index 732ceeeb..aaf21ce0 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -122,7 +122,7 @@ pub struct ReleaseRevRow { pub container_ident_id: Option<Uuid>, pub title: String, pub release_type: Option<String>, - pub date: Option<String>, + pub date: Option<chrono::NaiveDate>, pub doi: Option<String>, pub volume: Option<String>, pub pages: Option<String>, diff --git a/rust/src/database_schema.rs b/rust/src/database_schema.rs index 5ce407b6..3ccf5033 100644 --- a/rust/src/database_schema.rs +++ b/rust/src/database_schema.rs @@ -168,7 +168,7 @@ table! { container_ident_id -> Nullable<Uuid>, title -> Text, release_type -> Nullable<Text>, - date -> Nullable<Text>, + date -> Nullable<Date>, doi -> Nullable<Text>, volume -> Nullable<Text>, pages -> Nullable<Text>, |